public interface IJSONArray
extends java.io.Serializable
Description: 'Provides simplified DOM-like JSON serialization and de-serialization API.' 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 =
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
IID
Deprecated.
Internal use only
|
static int |
IID4abe3bc0_6d3c_4fba_9c55_c9ac7c32d9b1 |
static int |
xxDummy
Deprecated.
Internal use only
|
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 |
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 |
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.
|
int |
getCount()
Returns an array size.
|
java.lang.Object |
getValue(int index)
Returns an array value at a given index.
|
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 |
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 |
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.
|
static final int IID4abe3bc0_6d3c_4fba_9c55_c9ac7c32d9b1
static final int xxDummy
static final java.lang.String IID
void parseString(java.lang.String json) throws java.io.IOException, AutomationException
json
- The json (in)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.void parseJSON(IJSONReader pReader) throws java.io.IOException, AutomationException
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.int getCount() throws java.io.IOException, AutomationException
java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.java.lang.Object getValue(int index) throws java.io.IOException, AutomationException
index
- The index (in)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.boolean isValueNull(int index) throws java.io.IOException, AutomationException
index
- The index (in)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.boolean tryGetValueAsDate(int index, java.util.Date[] value) throws java.io.IOException, AutomationException
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.boolean tryGetValueAsBoolean(int index, boolean[] value) throws java.io.IOException, AutomationException
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.boolean tryGetValueAsLong(int index, int[] value) throws java.io.IOException, AutomationException
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.boolean tryGetValueAsDouble(int index, double[] value) throws java.io.IOException, AutomationException
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.boolean tryGetValueAsString(int index, java.lang.String[] value) throws java.io.IOException, AutomationException
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.boolean tryGetValueAsObject(int index, IJSONObject[] value) throws java.io.IOException, AutomationException
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.boolean tryGetValueAsArray(int index, IJSONArray[] value) throws java.io.IOException, AutomationException
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.void add(java.lang.Object value) throws java.io.IOException, AutomationException
value
- A Variant (in)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.void addDate(java.util.Date value) throws java.io.IOException, AutomationException
value
- The value (in)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.void addBoolean(boolean value) throws java.io.IOException, AutomationException
value
- The value (in)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.void addLong(int value) throws java.io.IOException, AutomationException
value
- The value (in)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.void addDouble(double value) throws java.io.IOException, AutomationException
value
- The value (in)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.void addString(java.lang.String value) throws java.io.IOException, AutomationException
value
- The value (in)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.void addNull() throws java.io.IOException, AutomationException
java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.void addJSONObject(IJSONObject value) throws java.io.IOException, AutomationException
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.void addJSONArray(IJSONArray value) throws java.io.IOException, AutomationException
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.void createMemberObject(IJSONObject[] value) throws java.io.IOException, AutomationException
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.void createMemberArray(IJSONArray[] value) throws java.io.IOException, AutomationException
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.java.lang.String toJSONString(IPropertySet props) throws java.io.IOException, AutomationException
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.void toJSON(java.lang.String objectName, IJSONWriter pWriter) throws java.io.IOException, AutomationException
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.void removeValue(int index) throws java.io.IOException, AutomationException
index
- The index (in)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.void clearAll() throws java.io.IOException, AutomationException
java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.void addDoubleEx(double value, int precision) throws java.io.IOException, AutomationException
value
- The value (in)precision
- The precision (in)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.