com.esri.arcgis.system
Class JSONObject

java.lang.Object
  extended by com.esri.arcgis.system.JSONObject
All Implemented Interfaces:
com.esri.arcgis.interop.RemoteObjRef, IJSONObject, IJSONObject2, ISupportErrorInfo, java.io.Serializable

public class JSONObject
extends java.lang.Object
implements com.esri.arcgis.interop.RemoteObjRef, IJSONObject, IJSONObject2, ISupportErrorInfo

COM Class 'JSONObject'. Generated 3/19/2015 1:20:47 PM from 'C:\ArcGIS\COM\esriSystem.olb'

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 =

See Also:
Serialized Form

Field Summary
 
Fields inherited from interface com.esri.arcgis.system.IJSONObject2
IID, IID2bbe5286_7c65_4fe4_9d51_c9f2a764dc10, xxDummy
 
Fields inherited from interface com.esri.arcgis.system.IJSONObject
IIDeea70515_fa6b_4dee_ab79_d7935bf3a838
 
Fields inherited from interface com.esri.arcgis.system.ISupportErrorInfo
IID, IIDdf0b3d60_548f_101b_8e65_08002b2bd119, xxDummy
 
Constructor Summary
JSONObject()
          Constructs a JSONObject using ArcGIS Engine.
JSONObject(java.lang.Object obj)
          Deprecated. As of ArcGIS 9.2, replaced by normal Java casts.
JSONObject theJSONObject = (JSONObject) obj;
 
Method Summary
 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 addInt64(java.lang.String name, long value)
          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 addUInt64(java.lang.String name, long 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.
 boolean equals(java.lang.Object o)
          Compare this object with another
static java.lang.String getClsid()
          getClsid.
 com.esri.arcgis.interop.Dispatch getJintegraDispatch()
          Deprecated. Internal use only.
 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.
 int hashCode()
          the hashcode for this object
 void interfaceSupportsErrorInfo(GUID riid)
          interfaceSupportsErrorInfo
 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 release()
          Release a JSONObject.
 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 tryGetValueAsInt64(java.lang.String name, long[] value)
          Returns member value for a given name as LONGLONG.
 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.
 boolean tryGetValueAsUInt64(java.lang.String name, long[] value)
          Returns member value for a given name as ULONGLONG.
 boolean tryGetValueAsVariant(java.lang.String name, int variantType, java.lang.Object[] value)
          Returns member valuefor a given name as a VARIANT of the requested type.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JSONObject

public JSONObject()
           throws java.io.IOException,
                  java.net.UnknownHostException
Constructs a JSONObject using ArcGIS Engine.

Throws:
java.io.IOException - if there are interop problems
java.net.UnknownHostException - if there are interop problems

JSONObject

public JSONObject(java.lang.Object obj)
           throws java.io.IOException
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts.
JSONObject theJSONObject = (JSONObject) obj;

Construct a JSONObject using a reference to such an object returned from ArcGIS Engine or Server. This is semantically equivalent to casting obj to JSONObject.

Parameters:
obj - an object returned from ArcGIS Engine or Server
Throws:
java.io.IOException - if there are interop problems
Method Detail

getClsid

public static java.lang.String getClsid()
getClsid.


equals

public boolean equals(java.lang.Object o)
Compare this object with another

Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
the hashcode for this object

Overrides:
hashCode in class java.lang.Object

getJintegraDispatch

public com.esri.arcgis.interop.Dispatch getJintegraDispatch()
Deprecated. Internal use only.

Specified by:
getJintegraDispatch in interface com.esri.arcgis.interop.RemoteObjRef

release

public void release()
Release a JSONObject.

Specified by:
release in interface com.esri.arcgis.interop.RemoteObjRef

parseString

public void parseString(java.lang.String json)
                 throws java.io.IOException,
                        AutomationException
Parses JSON object from string into memory.

Specified by:
parseString in interface IJSONObject
Parameters:
json - The json (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

parseJSON

public void parseJSON(IJSONReader pReader)
               throws java.io.IOException,
                      AutomationException
Parses JSON object from IJSONReader into memory. Useful if you want to have random access to just a part of a JSON.

Specified by:
parseJSON in interface IJSONObject
Parameters:
pReader - A reference to a com.esri.arcgis.system.IJSONReader (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

isCaseSensitiveNames

public boolean isCaseSensitiveNames()
                             throws java.io.IOException,
                                    AutomationException
Returns true if member name lookups are case-sensitive. Default value is true. Methods affected by this state change: MemberExists, IsValueNull and all TryGet... methods.

Specified by:
isCaseSensitiveNames in interface IJSONObject
Returns:
The case_sensitive
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setCaseSensitiveNames

public void setCaseSensitiveNames(boolean case_sensitive)
                           throws java.io.IOException,
                                  AutomationException
Returns true if member name lookups are case-sensitive. Default value is true. Methods affected by this state change: MemberExists, IsValueNull and all TryGet... methods.

Specified by:
setCaseSensitiveNames in interface IJSONObject
Parameters:
case_sensitive - The case_sensitive (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

memberExists

public boolean memberExists(java.lang.String name)
                     throws java.io.IOException,
                            AutomationException
Checks if a member with the given name exists.

Specified by:
memberExists in interface IJSONObject
Parameters:
name - The name (in)
Returns:
The exists
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

isValueNull

public boolean isValueNull(java.lang.String name)
                    throws java.io.IOException,
                           AutomationException
Returns VARIANT_TRUE if member is undefined or member's value is null. Returns VARIANT_FALSE if member exists and its value is not null.

Specified by:
isValueNull in interface IJSONObject
Parameters:
name - The name (in)
Returns:
The isNull
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getMemberCount

public int getMemberCount()
                   throws java.io.IOException,
                          AutomationException
Returns size of member collection.

Specified by:
getMemberCount in interface IJSONObject
Returns:
The count
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getMemberAt

public void getMemberAt(int index,
                        java.lang.String[] name,
                        java.lang.Object[] value)
                 throws java.io.IOException,
                        AutomationException
Returns member name and value at a given index.

Specified by:
getMemberAt in interface IJSONObject
Parameters:
index - The index (in)
name - The name (out: use single element array)
value - A Variant (out: use single element array)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

tryGetValue

public boolean tryGetValue(java.lang.String name,
                           java.lang.Object[] value)
                    throws java.io.IOException,
                           AutomationException
Returns member value for a given name. If member does not exist, returns VARIANT_FALSE in 'success' parameter.

Specified by:
tryGetValue in interface IJSONObject
Parameters:
name - The name (in)
value - A Variant (out: use single element array)
Returns:
The success
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

tryGetValueAsDate

public boolean tryGetValueAsDate(java.lang.String name,
                                 java.util.Date[] value)
                          throws java.io.IOException,
                                 AutomationException
Returns member value for a given name as DATE. If member does not exist or type coercion fails, returns VARIANT_FALSE in 'success' parameter.

Specified by:
tryGetValueAsDate in interface IJSONObject
Parameters:
name - The name (in)
value - The value (out: use single element array)
Returns:
The success
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

tryGetValueAsBoolean

public boolean tryGetValueAsBoolean(java.lang.String name,
                                    boolean[] value)
                             throws java.io.IOException,
                                    AutomationException
Returns member value for a given name as boolean. If member does not exist or type coercion fails, returns VARIANT_FALSE in 'success' parameter.

Specified by:
tryGetValueAsBoolean in interface IJSONObject
Parameters:
name - The name (in)
value - The value (out: use single element array)
Returns:
The success
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

tryGetValueAsLong

public boolean tryGetValueAsLong(java.lang.String name,
                                 int[] value)
                          throws java.io.IOException,
                                 AutomationException
Returns member value for a given name as long. If member does not exist or type coercion fails, returns VARIANT_FALSE in 'success' parameter.

Specified by:
tryGetValueAsLong in interface IJSONObject
Parameters:
name - The name (in)
value - The value (out: use single element array)
Returns:
The success
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

tryGetValueAsDouble

public boolean tryGetValueAsDouble(java.lang.String name,
                                   double[] value)
                            throws java.io.IOException,
                                   AutomationException
Returns member value for a given name as double. If member does not exist or type coercion fails, returns VARIANT_FALSE in 'success' parameter.

Specified by:
tryGetValueAsDouble in interface IJSONObject
Parameters:
name - The name (in)
value - The value (out: use single element array)
Returns:
The success
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

tryGetValueAsString

public boolean tryGetValueAsString(java.lang.String name,
                                   java.lang.String[] value)
                            throws java.io.IOException,
                                   AutomationException
Returns member value for a given name as string. If member does not exist or type coercion fails, returns VARIANT_FALSE in 'success' parameter.

Specified by:
tryGetValueAsString in interface IJSONObject
Parameters:
name - The name (in)
value - The value (out: use single element array)
Returns:
The success
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

tryGetValueAsObject

public boolean tryGetValueAsObject(java.lang.String name,
                                   IJSONObject[] value)
                            throws java.io.IOException,
                                   AutomationException
Returns member value for a given name as IJSONObject. If member does not exist or type coercion fails, returns VARIANT_FALSE in 'success' parameter.

Specified by:
tryGetValueAsObject in interface IJSONObject
Parameters:
name - The name (in)
value - A reference to a com.esri.arcgis.system.IJSONObject (out: use single element array)
Returns:
The success
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

tryGetValueAsArray

public boolean tryGetValueAsArray(java.lang.String name,
                                  IJSONArray[] value)
                           throws java.io.IOException,
                                  AutomationException
Returns member value for a given name as IJSONArray. If member does not exist or type coercion fails, returns VARIANT_FALSE in 'success' parameter.

Specified by:
tryGetValueAsArray in interface IJSONObject
Parameters:
name - The name (in)
value - A reference to a com.esri.arcgis.system.IJSONArray (out: use single element array)
Returns:
The success
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

addDate

public void addDate(java.lang.String name,
                    java.util.Date value)
             throws java.io.IOException,
                    AutomationException
Adds new member name-value pair to the member collection. Returns E_FAIL if duplicate member is found.

Specified by:
addDate in interface IJSONObject
Parameters:
name - The name (in)
value - The value (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

addBoolean

public void addBoolean(java.lang.String name,
                       boolean value)
                throws java.io.IOException,
                       AutomationException
Adds new member name-value pair to the member collection. Returns E_FAIL if duplicate member is found.

Specified by:
addBoolean in interface IJSONObject
Parameters:
name - The name (in)
value - The value (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

addLong

public void addLong(java.lang.String name,
                    int value)
             throws java.io.IOException,
                    AutomationException
Adds new member name-value pair to the member collection. Returns E_FAIL if duplicate member is found.

Specified by:
addLong in interface IJSONObject
Parameters:
name - The name (in)
value - The value (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

addDouble

public void addDouble(java.lang.String name,
                      double value)
               throws java.io.IOException,
                      AutomationException
Adds new member name-value pair to the member collection. Returns E_FAIL if duplicate member is found.

Specified by:
addDouble in interface IJSONObject
Parameters:
name - The name (in)
value - The value (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

addString

public void addString(java.lang.String name,
                      java.lang.String value)
               throws java.io.IOException,
                      AutomationException
Adds new member name-value pair to the member collection. Returns E_FAIL if duplicate member is found.

Specified by:
addString in interface IJSONObject
Parameters:
name - The name (in)
value - The value (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

addNull

public void addNull(java.lang.String name)
             throws java.io.IOException,
                    AutomationException
Adds new member with the value of null to the member collection. Returns E_FAIL if duplicate member is found.

Specified by:
addNull in interface IJSONObject
Parameters:
name - The name (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

add

public void add(java.lang.String name,
                java.lang.Object value)
         throws java.io.IOException,
                AutomationException
Adds new member name-value pair to the member collection. Returns E_FAIL if duplicate member is found.

Specified by:
add in interface IJSONObject
Parameters:
name - The name (in)
value - A Variant (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

addJSONObject

public void addJSONObject(java.lang.String name,
                          IJSONObject value)
                   throws java.io.IOException,
                          AutomationException
Adds new member name-value pair to the member collection. Returns E_FAIL if duplicate member is found.

Specified by:
addJSONObject in interface IJSONObject
Parameters:
name - The name (in)
value - A reference to a com.esri.arcgis.system.IJSONObject (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

addJSONArray

public void addJSONArray(java.lang.String name,
                         IJSONArray value)
                  throws java.io.IOException,
                         AutomationException
Adds new member name-value pair to the member collection. Returns E_FAIL if duplicate member is found.

Specified by:
addJSONArray in interface IJSONObject
Parameters:
name - The name (in)
value - A reference to a com.esri.arcgis.system.IJSONArray (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

createMemberObject

public void createMemberObject(java.lang.String name,
                               IJSONObject[] value)
                        throws java.io.IOException,
                               AutomationException
Creates and adds new member name-value pair to the member collection. Returns E_FAIL if duplicate member is found.

Specified by:
createMemberObject in interface IJSONObject
Parameters:
name - The name (in)
value - A reference to a com.esri.arcgis.system.IJSONObject (out: use single element array)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

createMemberArray

public void createMemberArray(java.lang.String name,
                              IJSONArray[] value)
                       throws java.io.IOException,
                              AutomationException
Creates and adds new member name-value pair to the member collection. Returns E_FAIL if duplicate member is found.

Specified by:
createMemberArray in interface IJSONObject
Parameters:
name - The name (in)
value - A reference to a com.esri.arcgis.system.IJSONArray (out: use single element array)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

makeValueNull

public void makeValueNull(java.lang.String name)
                   throws java.io.IOException,
                          AutomationException
Make a designated member NULL.

Specified by:
makeValueNull in interface IJSONObject
Parameters:
name - The name (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

toJSONString

public java.lang.String toJSONString(IPropertySet props)
                              throws java.io.IOException,
                                     AutomationException
Converts IJSONObject to JSON representation using IJSONWriter internally. 'props' parameter is to control IJSONWriter properties. It's safe to set it to NULL.

Specified by:
toJSONString in interface IJSONObject
Parameters:
props - A reference to a com.esri.arcgis.system.IPropertySet (in)
Returns:
The outStr
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

toJSON

public void toJSON(java.lang.String objectName,
                   IJSONWriter pWriter)
            throws java.io.IOException,
                   AutomationException
Converts IJSONObject to JSON representation using provided IJSONWriter. Useful when you have complex JSON response you want to combine from the output of several methods.

Specified by:
toJSON in interface IJSONObject
Parameters:
objectName - The objectName (in)
pWriter - A reference to a com.esri.arcgis.system.IJSONWriter (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

removeMember

public void removeMember(java.lang.String name)
                  throws java.io.IOException,
                         AutomationException
Remove a member from the member collection.

Specified by:
removeMember in interface IJSONObject
Parameters:
name - The name (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

clearAll

public void clearAll()
              throws java.io.IOException,
                     AutomationException
Removes all members.

Specified by:
clearAll in interface IJSONObject
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

addDoubleEx

public void addDoubleEx(java.lang.String name,
                        double value,
                        int precision)
                 throws java.io.IOException,
                        AutomationException
Adds new member name-value pair to the member collection. Stores precision for use in ToJSON and ToJSONString. Returns E_FAIL if duplicate member is found.

Specified by:
addDoubleEx in interface IJSONObject
Parameters:
name - The name (in)
value - The value (in)
precision - The precision (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

addInt64

public void addInt64(java.lang.String name,
                     long value)
              throws java.io.IOException,
                     AutomationException
Adds new member name-value pair to the member collection. Returns E_FAIL if duplicate member is found.

Specified by:
addInt64 in interface IJSONObject2
Parameters:
name - The name (in)
value - Signed 64-bit int (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

addUInt64

public void addUInt64(java.lang.String name,
                      long value)
               throws java.io.IOException,
                      AutomationException
Adds new member name-value pair to the member collection. Returns E_FAIL if duplicate member is found.

Specified by:
addUInt64 in interface IJSONObject2
Parameters:
name - The name (in)
value - Unsigned 64-bit int (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

tryGetValueAsInt64

public boolean tryGetValueAsInt64(java.lang.String name,
                                  long[] value)
                           throws java.io.IOException,
                                  AutomationException
Returns member value for a given name as LONGLONG. If member does not exist or type coercion fails, returns VARIANT_FALSE in 'success' parameter.

Specified by:
tryGetValueAsInt64 in interface IJSONObject2
Parameters:
name - The name (in)
value - Signed 64-bit int (in)
Returns:
The success
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

tryGetValueAsUInt64

public boolean tryGetValueAsUInt64(java.lang.String name,
                                   long[] value)
                            throws java.io.IOException,
                                   AutomationException
Returns member value for a given name as ULONGLONG. If member does not exist or type coercion fails, returns VARIANT_FALSE in 'success' parameter.

Specified by:
tryGetValueAsUInt64 in interface IJSONObject2
Parameters:
name - The name (in)
value - Unsigned 64-bit int (in)
Returns:
The success
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

tryGetValueAsVariant

public boolean tryGetValueAsVariant(java.lang.String name,
                                    int variantType,
                                    java.lang.Object[] value)
                             throws java.io.IOException,
                                    AutomationException
Returns member valuefor a given name as a VARIANT of the requested type. If member does not exist, returns VARIANT_FALSE in 'success' parameter.

Specified by:
tryGetValueAsVariant in interface IJSONObject2
Parameters:
name - The name (in)
variantType - The variantType (in)
value - A Variant (out: use single element array)
Returns:
The success
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

interfaceSupportsErrorInfo

public void interfaceSupportsErrorInfo(GUID riid)
                                throws java.io.IOException,
                                       AutomationException
interfaceSupportsErrorInfo

Specified by:
interfaceSupportsErrorInfo in interface ISupportErrorInfo
Parameters:
riid - A Structure: com.esri.arcgis.support.ms.stdole.GUID (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.