public interface IJSONObject
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 |
IIDeea70515_fa6b_4dee_ab79_d7935bf3a838 |
static int |
xxDummy
Deprecated.
Internal use only
|
Modifier and Type | Method and Description |
---|---|
void |
add(java.lang.String name,
java.lang.Object value)
Adds new member name-value pair to the member collection.
|
void |
addBoolean(java.lang.String name,
boolean value)
Adds new member name-value pair to the member collection.
|
void |
addDate(java.lang.String name,
java.util.Date value)
Adds new member name-value pair to the member collection.
|
void |
addDouble(java.lang.String name,
double value)
Adds new member name-value pair to the member collection.
|
void |
addDoubleEx(java.lang.String name,
double value,
int precision)
Adds new member name-value pair to the member collection.
|
void |
addJSONArray(java.lang.String name,
IJSONArray value)
Adds new member name-value pair to the member collection.
|
void |
addJSONObject(java.lang.String name,
IJSONObject value)
Adds new member name-value pair to the member collection.
|
void |
addLong(java.lang.String name,
int value)
Adds new member name-value pair to the member collection.
|
void |
addNull(java.lang.String name)
Adds new member with the value of null to the member collection.
|
void |
addString(java.lang.String name,
java.lang.String value)
Adds new member name-value pair to the member collection.
|
void |
clearAll()
Removes all members.
|
void |
createMemberArray(java.lang.String name,
IJSONArray[] value)
Creates and adds new member name-value pair to the member collection.
|
void |
createMemberObject(java.lang.String name,
IJSONObject[] value)
Creates and adds new member name-value pair to the member collection.
|
void |
getMemberAt(int index,
java.lang.String[] name,
java.lang.Object[] value)
Returns member name and value at a given index.
|
int |
getMemberCount()
Returns size of member collection.
|
boolean |
isCaseSensitiveNames()
Returns true if member name lookups are case-sensitive.
|
boolean |
isValueNull(java.lang.String name)
Returns VARIANT_TRUE if member is undefined or member's value is null.
|
void |
makeValueNull(java.lang.String name)
Make a designated member NULL.
|
boolean |
memberExists(java.lang.String name)
Checks if a member with the given name exists.
|
void |
parseJSON(IJSONReader pReader)
Parses JSON object from IJSONReader into memory.
|
void |
parseString(java.lang.String json)
Parses JSON object from string into memory.
|
void |
removeMember(java.lang.String name)
Remove a member from the member collection.
|
void |
setCaseSensitiveNames(boolean case_sensitive)
Returns true if member name lookups are case-sensitive.
|
void |
toJSON(java.lang.String objectName,
IJSONWriter pWriter)
Converts IJSONObject to JSON representation using provided IJSONWriter.
|
java.lang.String |
toJSONString(IPropertySet props)
Converts IJSONObject to JSON representation using IJSONWriter internally.
|
boolean |
tryGetValue(java.lang.String name,
java.lang.Object[] value)
Returns member value for a given name.
|
boolean |
tryGetValueAsArray(java.lang.String name,
IJSONArray[] value)
Returns member value for a given name as IJSONArray.
|
boolean |
tryGetValueAsBoolean(java.lang.String name,
boolean[] value)
Returns member value for a given name as boolean.
|
boolean |
tryGetValueAsDate(java.lang.String name,
java.util.Date[] value)
Returns member value for a given name as DATE.
|
boolean |
tryGetValueAsDouble(java.lang.String name,
double[] value)
Returns member value for a given name as double.
|
boolean |
tryGetValueAsLong(java.lang.String name,
int[] value)
Returns member value for a given name as long.
|
boolean |
tryGetValueAsObject(java.lang.String name,
IJSONObject[] value)
Returns member value for a given name as IJSONObject.
|
boolean |
tryGetValueAsString(java.lang.String name,
java.lang.String[] value)
Returns member value for a given name as string.
|
static final int IIDeea70515_fa6b_4dee_ab79_d7935bf3a838
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.boolean isCaseSensitiveNames() throws java.io.IOException, AutomationException
java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.void setCaseSensitiveNames(boolean case_sensitive) throws java.io.IOException, AutomationException
case_sensitive
- The case_sensitive (in)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.boolean memberExists(java.lang.String name) throws java.io.IOException, AutomationException
name
- The name (in)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.boolean isValueNull(java.lang.String name) throws java.io.IOException, AutomationException
name
- The name (in)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.int getMemberCount() throws java.io.IOException, AutomationException
java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.void getMemberAt(int index, java.lang.String[] name, java.lang.Object[] value) throws java.io.IOException, AutomationException
index
- The index (in)name
- The name (out: use single element array)value
- A Variant (out: use single element array)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.boolean tryGetValue(java.lang.String name, java.lang.Object[] value) throws java.io.IOException, AutomationException
name
- The name (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.boolean tryGetValueAsDate(java.lang.String name, java.util.Date[] value) throws java.io.IOException, AutomationException
name
- The name (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(java.lang.String name, boolean[] value) throws java.io.IOException, AutomationException
name
- The name (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(java.lang.String name, int[] value) throws java.io.IOException, AutomationException
name
- The name (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(java.lang.String name, double[] value) throws java.io.IOException, AutomationException
name
- The name (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(java.lang.String name, java.lang.String[] value) throws java.io.IOException, AutomationException
name
- The name (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(java.lang.String name, IJSONObject[] value) throws java.io.IOException, AutomationException
name
- The name (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(java.lang.String name, IJSONArray[] value) throws java.io.IOException, AutomationException
name
- The name (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 addDate(java.lang.String name, java.util.Date value) throws java.io.IOException, AutomationException
name
- The name (in)value
- The value (in)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.void addBoolean(java.lang.String name, boolean value) throws java.io.IOException, AutomationException
name
- The name (in)value
- The value (in)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.void addLong(java.lang.String name, int value) throws java.io.IOException, AutomationException
name
- The name (in)value
- The value (in)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.void addDouble(java.lang.String name, double value) throws java.io.IOException, AutomationException
name
- The name (in)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 name, java.lang.String value) throws java.io.IOException, AutomationException
name
- The name (in)value
- The value (in)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.void addNull(java.lang.String name) throws java.io.IOException, AutomationException
name
- The name (in)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.void add(java.lang.String name, java.lang.Object value) throws java.io.IOException, AutomationException
name
- The name (in)value
- A Variant (in)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.void addJSONObject(java.lang.String name, IJSONObject value) throws java.io.IOException, AutomationException
name
- The name (in)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(java.lang.String name, IJSONArray value) throws java.io.IOException, AutomationException
name
- The name (in)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(java.lang.String name, IJSONObject[] value) throws java.io.IOException, AutomationException
name
- The name (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.void createMemberArray(java.lang.String name, IJSONArray[] value) throws java.io.IOException, AutomationException
name
- The name (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 makeValueNull(java.lang.String name) throws java.io.IOException, AutomationException
name
- The name (in)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 removeMember(java.lang.String name) throws java.io.IOException, AutomationException
name
- The name (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(java.lang.String name, double value, int precision) throws java.io.IOException, AutomationException
name
- The name (in)value
- The value (in)precision
- The precision (in)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.