com.esri.arcgis.system
Class IJSONObjectProxy

java.lang.Object
  extended by com.esri.arcgis.interop.Dispatch
      extended by com.esri.arcgis.system.IJSONObjectProxy
All Implemented Interfaces:
IJSONObject, java.io.Externalizable, java.io.Serializable
Direct Known Subclasses:
IJSONObject2Proxy

Deprecated. Internal use only. Proxy for COM Interface 'IJSONObject'. Generated 3/19/2015 1:20:52 PM from 'C:\ArcGIS\COM\esriSystem.olb'

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 =

public class IJSONObjectProxy
extends com.esri.arcgis.interop.Dispatch
implements IJSONObject, java.io.Serializable

Internal use class

See Also:
Serialized Form

Field Summary
 boolean noncastable
          Deprecated.  
static java.lang.Class targetClass
          Deprecated.  
 
Fields inherited from class com.esri.arcgis.interop.Dispatch
DISPATCH_METHOD, DISPATCH_PROPERTYGET, DISPATCH_PROPERTYPUT, DISPATCH_PROPERTYPUTREF, objRef
 
Fields inherited from interface com.esri.arcgis.system.IJSONObject
IID, IIDeea70515_fa6b_4dee_ab79_d7935bf3a838
 
Constructor Summary
  IJSONObjectProxy()
          Deprecated. For internal use only
  IJSONObjectProxy(java.lang.Object obj)
          Deprecated.  
protected IJSONObjectProxy(java.lang.Object obj, java.lang.String iid)
          Deprecated.  
  IJSONObjectProxy(java.lang.String CLSID, java.lang.String host, com.esri.arcgis.interop.AuthInfo authInfo)
          Deprecated.  
protected IJSONObjectProxy(java.lang.String CLSID, java.lang.String iid, java.lang.String host, com.esri.arcgis.interop.AuthInfo authInfo)
          Deprecated.  
 
Method Summary
 void add(java.lang.String name, java.lang.Object value)
          Deprecated. Adds new member name-value pair to the member collection.
 void addBoolean(java.lang.String name, boolean value)
          Deprecated. Adds new member name-value pair to the member collection.
 void addDate(java.lang.String name, java.util.Date value)
          Deprecated. Adds new member name-value pair to the member collection.
 void addDouble(java.lang.String name, double value)
          Deprecated. Adds new member name-value pair to the member collection.
 void addDoubleEx(java.lang.String name, double value, int precision)
          Deprecated. Adds new member name-value pair to the member collection.
 void addJSONArray(java.lang.String name, IJSONArray value)
          Deprecated. Adds new member name-value pair to the member collection.
 void addJSONObject(java.lang.String name, IJSONObject value)
          Deprecated. Adds new member name-value pair to the member collection.
 void addListener(java.lang.String iidStr, java.lang.Object theListener, java.lang.Object theSource)
          Deprecated.  
 void addLong(java.lang.String name, int value)
          Deprecated. Adds new member name-value pair to the member collection.
 void addNull(java.lang.String name)
          Deprecated. Adds new member with the value of null to the member collection.
 void addString(java.lang.String name, java.lang.String value)
          Deprecated. Adds new member name-value pair to the member collection.
 void clearAll()
          Deprecated. Removes all members.
 void createMemberArray(java.lang.String name, IJSONArray[] value)
          Deprecated. Creates and adds new member name-value pair to the member collection.
 void createMemberObject(java.lang.String name, IJSONObject[] value)
          Deprecated. Creates and adds new member name-value pair to the member collection.
 void getMemberAt(int index, java.lang.String[] name, java.lang.Object[] value)
          Deprecated. Returns member name and value at a given index.
 int getMemberCount()
          Deprecated. Returns size of member collection.
 boolean isCaseSensitiveNames()
          Deprecated. Returns true if member name lookups are case-sensitive.
 boolean isValueNull(java.lang.String name)
          Deprecated. Returns VARIANT_TRUE if member is undefined or member's value is null.
 void makeValueNull(java.lang.String name)
          Deprecated. Make a designated member NULL.
 boolean memberExists(java.lang.String name)
          Deprecated. Checks if a member with the given name exists.
 void parseJSON(IJSONReader pReader)
          Deprecated. Parses JSON object from IJSONReader into memory.
 void parseString(java.lang.String json)
          Deprecated. Parses JSON object from string into memory.
 void removeListener(java.lang.String iidStr, java.lang.Object theListener)
          Deprecated.  
 void removeMember(java.lang.String name)
          Deprecated. Remove a member from the member collection.
 void setCaseSensitiveNames(boolean case_sensitive)
          Deprecated. Returns true if member name lookups are case-sensitive.
 void toJSON(java.lang.String objectName, IJSONWriter pWriter)
          Deprecated. Converts IJSONObject to JSON representation using provided IJSONWriter.
 java.lang.String toJSONString(IPropertySet props)
          Deprecated. Converts IJSONObject to JSON representation using IJSONWriter internally.
 boolean tryGetValue(java.lang.String name, java.lang.Object[] value)
          Deprecated. Returns member value for a given name.
 boolean tryGetValueAsArray(java.lang.String name, IJSONArray[] value)
          Deprecated. Returns member value for a given name as IJSONArray.
 boolean tryGetValueAsBoolean(java.lang.String name, boolean[] value)
          Deprecated. Returns member value for a given name as boolean.
 boolean tryGetValueAsDate(java.lang.String name, java.util.Date[] value)
          Deprecated. Returns member value for a given name as DATE.
 boolean tryGetValueAsDouble(java.lang.String name, double[] value)
          Deprecated. Returns member value for a given name as double.
 boolean tryGetValueAsLong(java.lang.String name, int[] value)
          Deprecated. Returns member value for a given name as long.
 boolean tryGetValueAsObject(java.lang.String name, IJSONObject[] value)
          Deprecated. Returns member value for a given name as IJSONObject.
 boolean tryGetValueAsString(java.lang.String name, java.lang.String[] value)
          Deprecated. Returns member value for a given name as string.
 
Methods inherited from class com.esri.arcgis.interop.Dispatch
bindUsingMoniker, constructVtblPosTable, convertToNative, cookieForListener, createDispatch, createObjrefMonikerDisplayName, equals, getActiveObject, getActiveObject, getDefaultProperty, getDispatchIdOfName, getLastErrorCode, getMtsObjectContext, getObjRef, getPropertyByName, getPropertyByName, getVtblPos, hashCode, initDispatch, invoke, invokeMethodByName, invokeMethodByName, invokeMethodByName, invokePropertyGetByName, invokePropertyPutByName, invokePropertyPutByRefByName, isNativeMode, isObjRef, optimizedVtblInvoke, queryInterface, readExternal, release, setNativeMode, setPropertyByName, toString, vtblInvoke, writeExternal
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

targetClass

public static final java.lang.Class targetClass
Deprecated. 

noncastable

public boolean noncastable
Deprecated. 
Constructor Detail

IJSONObjectProxy

public IJSONObjectProxy(java.lang.String CLSID,
                        java.lang.String host,
                        com.esri.arcgis.interop.AuthInfo authInfo)
                 throws java.net.UnknownHostException,
                        java.io.IOException
Deprecated. 
Throws:
java.net.UnknownHostException
java.io.IOException

IJSONObjectProxy

public IJSONObjectProxy()
Deprecated. 
For internal use only


IJSONObjectProxy

public IJSONObjectProxy(java.lang.Object obj)
                 throws java.io.IOException
Deprecated. 
Throws:
java.io.IOException

IJSONObjectProxy

protected IJSONObjectProxy(java.lang.Object obj,
                           java.lang.String iid)
                    throws java.io.IOException
Deprecated. 
Throws:
java.io.IOException

IJSONObjectProxy

protected IJSONObjectProxy(java.lang.String CLSID,
                           java.lang.String iid,
                           java.lang.String host,
                           com.esri.arcgis.interop.AuthInfo authInfo)
                    throws java.io.IOException
Deprecated. 
Throws:
java.io.IOException
Method Detail

addListener

public void addListener(java.lang.String iidStr,
                        java.lang.Object theListener,
                        java.lang.Object theSource)
                 throws java.io.IOException
Deprecated. 
Overrides:
addListener in class com.esri.arcgis.interop.Dispatch
Throws:
java.io.IOException

removeListener

public void removeListener(java.lang.String iidStr,
                           java.lang.Object theListener)
                    throws java.io.IOException
Deprecated. 
Overrides:
removeListener in class com.esri.arcgis.interop.Dispatch
Throws:
java.io.IOException

parseString

public void parseString(java.lang.String json)
                 throws java.io.IOException,
                        AutomationException
Deprecated. 
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
Deprecated. 
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
Deprecated. 
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
Deprecated. 
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
Deprecated. 
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
Deprecated. 
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
Deprecated. 
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
Deprecated. 
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
Deprecated. 
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
Deprecated. 
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
Deprecated. 
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
Deprecated. 
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
Deprecated. 
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
Deprecated. 
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
Deprecated. 
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
Deprecated. 
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
Deprecated. 
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
Deprecated. 
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
Deprecated. 
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
Deprecated. 
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
Deprecated. 
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
Deprecated. 
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
Deprecated. 
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
Deprecated. 
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
Deprecated. 
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
Deprecated. 
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
Deprecated. 
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
Deprecated. 
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
Deprecated. 
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
Deprecated. 
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
Deprecated. 
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
Deprecated. 
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
Deprecated. 
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.