public class JSONArray extends java.lang.Object implements com.esri.arcgis.interop.RemoteObjRef, IJSONArray, IJSONArray2, ISupportErrorInfo
Description 'Simplified JSON API coclass' Generator Options: PromptForTypeLibraries = False ClashPrefix = esri_ LowerCaseMemberNames = True IDispatchOnly = False RetryOnReject = False AwtForOcxs = True ArraysAsObjects = False DontRenameSameMethods = False ImplementConflictingInterfaces = True ReuseMethods = True RenameConflictingInterfaceMethods = True GenBeanInfo = True GenerateJavadoc =
IID, IID71208a81_c9e0_48c9_a81a_18558cb6ea2e, xxDummy
IID4abe3bc0_6d3c_4fba_9c55_c9ac7c32d9b1
IID, IIDdf0b3d60_548f_101b_8e65_08002b2bd119, xxDummy
Constructor and Description |
---|
JSONArray()
Constructs a JSONArray using ArcGIS Engine.
|
JSONArray(java.lang.Object obj)
Deprecated.
As of ArcGIS 9.2, replaced by normal Java casts.
JSONArray theJSONArray = (JSONArray) obj; |
Modifier and Type | Method and Description |
---|---|
void |
add(java.lang.Object value)
Adds new variant value to the array.
|
void |
addBoolean(boolean value)
Adds new boolean value to the array.
|
void |
addDate(java.util.Date value)
Adds new DATE value to the array.
|
void |
addDouble(double value)
Adds new double value to the array.
|
void |
addDoubleEx(double value,
int precision)
Adds new double value to the array.
|
void |
addInt64(long value)
Adds new variant value to the array.
|
void |
addJSONArray(IJSONArray value)
Adds new nested array to the array.
|
void |
addJSONObject(IJSONObject value)
Adds new nested object to the array.
|
void |
addLong(int value)
Adds new long value to the array.
|
void |
addNull()
Adds new null value to the array.
|
void |
addString(java.lang.String value)
Adds new string value to the array.
|
void |
addUInt64(long value)
Adds new variant value to the array.
|
void |
clearAll()
Removes all values.
|
void |
createMemberArray(IJSONArray[] value)
Creates and adds new member to the member collection.
|
void |
createMemberObject(IJSONObject[] value)
Creates and adds new member to the member collection.
|
boolean |
equals(java.lang.Object o)
Compare this object with another
|
static java.lang.String |
getClsid()
getClsid.
|
int |
getCount()
Returns an array size.
|
com.esri.arcgis.interop.Dispatch |
getJintegraDispatch()
Gets a reference to a com.esri.arcgis.interop.Dispatch which can be used to access the COM object that support for this
interface indicates the implementing class references.
|
java.lang.Object |
getValue(int index)
Returns an array value at a given index.
|
int |
hashCode()
the hashcode for this object
|
void |
interfaceSupportsErrorInfo(GUID riid)
interfaceSupportsErrorInfo
|
boolean |
isValueNull(int index)
Checks if an array value at a given index is NULL.
|
void |
parseJSON(IJSONReader pReader)
Parses JSON array from IJSONReader into memory.
|
void |
parseString(java.lang.String json)
Parses JSON array from string into memory.
|
void |
release()
Release this COM object reference
|
void |
removeValue(int index)
Remove a value from the member collection.
|
void |
toJSON(java.lang.String objectName,
IJSONWriter pWriter)
Converts IJSONArray to JSON representation using provided IJSONWriter.
|
java.lang.String |
toJSONString(IPropertySet props)
Converts IJSONArray to JSON representation using IJSONWriter internally.
|
boolean |
tryGetValueAsArray(int index,
IJSONArray[] value)
Returns array value at a given index as IJSONArray.
|
boolean |
tryGetValueAsBoolean(int index,
boolean[] value)
Returns array value at a given index as boolean.
|
boolean |
tryGetValueAsDate(int index,
java.util.Date[] value)
Returns array value at a given index as DATE.
|
boolean |
tryGetValueAsDouble(int index,
double[] value)
Returns array value at a given index as double.
|
boolean |
tryGetValueAsInt64(int index,
long[] value)
Returns array value at a given index as LONGLONG.
|
boolean |
tryGetValueAsLong(int index,
int[] value)
Returns array value at a given index as long.
|
boolean |
tryGetValueAsObject(int index,
IJSONObject[] value)
Returns array value at a given index as IJSONObject.
|
boolean |
tryGetValueAsString(int index,
java.lang.String[] value)
Returns array value at a given index as string.
|
boolean |
tryGetValueAsUInt64(int index,
long[] value)
Returns array value at a given index as ULONGLONG.
|
boolean |
tryGetValueAsVariant(int index,
int variantType,
java.lang.Object[] value)
Returns array value at a given index as a VARIANT of the requested type.
|
public JSONArray() throws java.io.IOException, java.net.UnknownHostException
java.io.IOException
- if there are interop problemsjava.net.UnknownHostException
- if there are interop problemspublic JSONArray(java.lang.Object obj) throws java.io.IOException
JSONArray theJSONArray = (JSONArray) obj;
obj
to JSONArray
.obj
- an object returned from ArcGIS Engine or Serverjava.io.IOException
- if there are interop problemspublic static java.lang.String getClsid()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public com.esri.arcgis.interop.Dispatch getJintegraDispatch()
getJintegraDispatch
in interface com.esri.arcgis.interop.RemoteObjRef
public void release()
release
in interface com.esri.arcgis.interop.RemoteObjRef
public void parseString(java.lang.String json) throws java.io.IOException, AutomationException
parseString
in interface IJSONArray
json
- The json (in)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public void parseJSON(IJSONReader pReader) throws java.io.IOException, AutomationException
parseJSON
in interface IJSONArray
pReader
- A reference to a com.esri.arcgis.system.IJSONReader (in)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public int getCount() throws java.io.IOException, AutomationException
getCount
in interface IJSONArray
java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public java.lang.Object getValue(int index) throws java.io.IOException, AutomationException
getValue
in interface IJSONArray
index
- The index (in)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public boolean isValueNull(int index) throws java.io.IOException, AutomationException
isValueNull
in interface IJSONArray
index
- The index (in)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public boolean tryGetValueAsDate(int index, java.util.Date[] value) throws java.io.IOException, AutomationException
tryGetValueAsDate
in interface IJSONArray
index
- The index (in)value
- The value (out: use single element array)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public boolean tryGetValueAsBoolean(int index, boolean[] value) throws java.io.IOException, AutomationException
tryGetValueAsBoolean
in interface IJSONArray
index
- The index (in)value
- The value (out: use single element array)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public boolean tryGetValueAsLong(int index, int[] value) throws java.io.IOException, AutomationException
tryGetValueAsLong
in interface IJSONArray
index
- The index (in)value
- The value (out: use single element array)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public boolean tryGetValueAsDouble(int index, double[] value) throws java.io.IOException, AutomationException
tryGetValueAsDouble
in interface IJSONArray
index
- The index (in)value
- The value (out: use single element array)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public boolean tryGetValueAsString(int index, java.lang.String[] value) throws java.io.IOException, AutomationException
tryGetValueAsString
in interface IJSONArray
index
- The index (in)value
- The value (out: use single element array)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public boolean tryGetValueAsObject(int index, IJSONObject[] value) throws java.io.IOException, AutomationException
tryGetValueAsObject
in interface IJSONArray
index
- The index (in)value
- A reference to a com.esri.arcgis.system.IJSONObject (out: use single element array)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public boolean tryGetValueAsArray(int index, IJSONArray[] value) throws java.io.IOException, AutomationException
tryGetValueAsArray
in interface IJSONArray
index
- The index (in)value
- A reference to a com.esri.arcgis.system.IJSONArray (out: use single element array)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public void add(java.lang.Object value) throws java.io.IOException, AutomationException
add
in interface IJSONArray
value
- A Variant (in)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public void addDate(java.util.Date value) throws java.io.IOException, AutomationException
addDate
in interface IJSONArray
value
- The value (in)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public void addBoolean(boolean value) throws java.io.IOException, AutomationException
addBoolean
in interface IJSONArray
value
- The value (in)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public void addLong(int value) throws java.io.IOException, AutomationException
addLong
in interface IJSONArray
value
- The value (in)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public void addDouble(double value) throws java.io.IOException, AutomationException
addDouble
in interface IJSONArray
value
- The value (in)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public void addString(java.lang.String value) throws java.io.IOException, AutomationException
addString
in interface IJSONArray
value
- The value (in)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public void addNull() throws java.io.IOException, AutomationException
addNull
in interface IJSONArray
java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public void addJSONObject(IJSONObject value) throws java.io.IOException, AutomationException
addJSONObject
in interface IJSONArray
value
- A reference to a com.esri.arcgis.system.IJSONObject (in)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public void addJSONArray(IJSONArray value) throws java.io.IOException, AutomationException
addJSONArray
in interface IJSONArray
value
- A reference to a com.esri.arcgis.system.IJSONArray (in)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public void createMemberObject(IJSONObject[] value) throws java.io.IOException, AutomationException
createMemberObject
in interface IJSONArray
value
- A reference to a com.esri.arcgis.system.IJSONObject (out: use single element array)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public void createMemberArray(IJSONArray[] value) throws java.io.IOException, AutomationException
createMemberArray
in interface IJSONArray
value
- A reference to a com.esri.arcgis.system.IJSONArray (out: use single element array)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public java.lang.String toJSONString(IPropertySet props) throws java.io.IOException, AutomationException
toJSONString
in interface IJSONArray
props
- A reference to a com.esri.arcgis.system.IPropertySet (in)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public void toJSON(java.lang.String objectName, IJSONWriter pWriter) throws java.io.IOException, AutomationException
toJSON
in interface IJSONArray
objectName
- The objectName (in)pWriter
- A reference to a com.esri.arcgis.system.IJSONWriter (in)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public void removeValue(int index) throws java.io.IOException, AutomationException
removeValue
in interface IJSONArray
index
- The index (in)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public void clearAll() throws java.io.IOException, AutomationException
clearAll
in interface IJSONArray
java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public void addDoubleEx(double value, int precision) throws java.io.IOException, AutomationException
addDoubleEx
in interface IJSONArray
value
- The value (in)precision
- The precision (in)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public void addInt64(long value) throws java.io.IOException, AutomationException
addInt64
in interface IJSONArray2
value
- Signed 64-bit int (in)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public void addUInt64(long value) throws java.io.IOException, AutomationException
addUInt64
in interface IJSONArray2
value
- Unsigned 64-bit int (in)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public boolean tryGetValueAsInt64(int index, long[] value) throws java.io.IOException, AutomationException
tryGetValueAsInt64
in interface IJSONArray2
index
- The index (in)value
- Signed 64-bit int (out: use single element array)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public boolean tryGetValueAsUInt64(int index, long[] value) throws java.io.IOException, AutomationException
tryGetValueAsUInt64
in interface IJSONArray2
index
- The index (in)value
- Unsigned 64-bit int (out: use single element array)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public boolean tryGetValueAsVariant(int index, int variantType, java.lang.Object[] value) throws java.io.IOException, AutomationException
tryGetValueAsVariant
in interface IJSONArray2
index
- The index (in)variantType
- The variantType (in)value
- A Variant (out: use single element array)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public void interfaceSupportsErrorInfo(GUID riid) throws java.io.IOException, AutomationException
interfaceSupportsErrorInfo
in interface ISupportErrorInfo
riid
- A Structure: com.esri.arcgis.support.ms.stdole.GUID (in)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.