| 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface IJSONObject
Provides simplified DOM-like JSON serialization and de-serialization API.
| Method Summary | |
|---|---|
 void | 
add(String name,
    Object value)
Adds new member name-value pair to the member collection.  | 
 void | 
addBoolean(String name,
           boolean value)
Adds new member name-value pair to the member collection.  | 
 void | 
addDate(String name,
        Date value)
Adds new member name-value pair to the member collection.  | 
 void | 
addDouble(String name,
          double value)
Adds new member name-value pair to the member collection.  | 
 void | 
addDoubleEx(String name,
            double value,
            int precision)
Adds new member name-value pair to the member collection.  | 
 void | 
addJSONArray(String name,
             IJSONArray value)
Adds new member name-value pair to the member collection.  | 
 void | 
addJSONObject(String name,
              IJSONObject value)
Adds new member name-value pair to the member collection.  | 
 void | 
addLong(String name,
        int value)
Adds new member name-value pair to the member collection.  | 
 void | 
addNull(String name)
Adds new member with the value of null to the member collection.  | 
 void | 
addString(String name,
          String value)
Adds new member name-value pair to the member collection.  | 
 void | 
clearAll()
Removes all members.  | 
 void | 
createMemberArray(String name,
                  IJSONArray[] value)
Creates and adds new member name-value pair to the member collection.  | 
 void | 
createMemberObject(String name,
                   IJSONObject[] value)
Creates and adds new member name-value pair to the member collection.  | 
 void | 
getMemberAt(int index,
            String[] name,
            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(String name)
Returns VARIANT_TRUE if member is undefined or member's value is null.  | 
 void | 
makeValueNull(String name)
Make a designated member NULL.  | 
 boolean | 
memberExists(String name)
Checks if a member with the given name exists.  | 
 void | 
parseJSON(IJSONReader pReader)
Parses JSON object from IJSONReader into memory.  | 
 void | 
parseString(String json)
Parses JSON object from string into memory.  | 
 void | 
removeMember(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(String objectName,
       IJSONWriter pWriter)
Converts IJSONObject to JSON representation using provided IJSONWriter.  | 
 String | 
toJSONString(IPropertySet props)
Converts IJSONObject to JSON representation using IJSONWriter internally.  | 
 boolean | 
tryGetValue(String name,
            Object[] value)
Returns member value for a given name.  | 
 boolean | 
tryGetValueAsArray(String name,
                   IJSONArray[] value)
Returns member value for a given name as IJSONArray.  | 
 boolean | 
tryGetValueAsBoolean(String name,
                     boolean[] value)
Returns member value for a given name as boolean.  | 
 boolean | 
tryGetValueAsDate(String name,
                  Date[] value)
Returns member value for a given name as DATE.  | 
 boolean | 
tryGetValueAsDouble(String name,
                    double[] value)
Returns member value for a given name as double.  | 
 boolean | 
tryGetValueAsLong(String name,
                  int[] value)
Returns member value for a given name as long.  | 
 boolean | 
tryGetValueAsObject(String name,
                    IJSONObject[] value)
Returns member value for a given name as IJSONObject.  | 
 boolean | 
tryGetValueAsString(String name,
                    String[] value)
Returns member value for a given name as string.  | 
| Method Detail | 
|---|
void parseString(String json)
                 throws IOException,
                        AutomationException
json - The json  (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
void parseJSON(IJSONReader pReader)
               throws IOException,
                      AutomationException
pReader - A reference to a com.esri.arcgis.system.IJSONReader  (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
boolean isCaseSensitiveNames()
                             throws IOException,
                                    AutomationException
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
void setCaseSensitiveNames(boolean case_sensitive)
                           throws IOException,
                                  AutomationException
case_sensitive - The case_sensitive  (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
boolean memberExists(String name)
                     throws IOException,
                            AutomationException
name - The name  (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
boolean isValueNull(String name)
                    throws IOException,
                           AutomationException
name - The name  (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
int getMemberCount()
                   throws IOException,
                          AutomationException
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
void getMemberAt(int index,
                 String[] name,
                 Object[] value)
                 throws IOException,
                        AutomationException
index - The index  (in)name - The name  (out: use single element array)value - A Variant  (out: use single element array)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
boolean tryGetValue(String name,
                    Object[] value)
                    throws IOException,
                           AutomationException
name - The name  (in)value - A Variant  (out: use single element array)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
boolean tryGetValueAsDate(String name,
                          Date[] value)
                          throws IOException,
                                 AutomationException
name - The name  (in)value - The value  (out: use single element array)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
boolean tryGetValueAsBoolean(String name,
                             boolean[] value)
                             throws IOException,
                                    AutomationException
name - The name  (in)value - The value  (out: use single element array)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
boolean tryGetValueAsLong(String name,
                          int[] value)
                          throws IOException,
                                 AutomationException
name - The name  (in)value - The value  (out: use single element array)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
boolean tryGetValueAsDouble(String name,
                            double[] value)
                            throws IOException,
                                   AutomationException
name - The name  (in)value - The value  (out: use single element array)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
boolean tryGetValueAsString(String name,
                            String[] value)
                            throws IOException,
                                   AutomationException
name - The name  (in)value - The value  (out: use single element array)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
boolean tryGetValueAsObject(String name,
                            IJSONObject[] value)
                            throws IOException,
                                   AutomationException
name - The name  (in)value - A reference to a com.esri.arcgis.system.IJSONObject  (out: use single element array)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
boolean tryGetValueAsArray(String name,
                           IJSONArray[] value)
                           throws IOException,
                                  AutomationException
name - The name  (in)value - A reference to a com.esri.arcgis.system.IJSONArray  (out: use single element array)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
void addDate(String name,
             Date value)
             throws IOException,
                    AutomationException
name - The name  (in)value - The value  (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
void addBoolean(String name,
                boolean value)
                throws IOException,
                       AutomationException
name - The name  (in)value - The value  (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
void addLong(String name,
             int value)
             throws IOException,
                    AutomationException
name - The name  (in)value - The value  (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
void addDouble(String name,
               double value)
               throws IOException,
                      AutomationException
name - The name  (in)value - The value  (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
void addString(String name,
               String value)
               throws IOException,
                      AutomationException
name - The name  (in)value - The value  (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
void addNull(String name)
             throws IOException,
                    AutomationException
name - The name  (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
void add(String name,
         Object value)
         throws IOException,
                AutomationException
name - The name  (in)value - A Variant  (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
void addJSONObject(String name,
                   IJSONObject value)
                   throws IOException,
                          AutomationException
name - The name  (in)value - A reference to a com.esri.arcgis.system.IJSONObject  (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
void addJSONArray(String name,
                  IJSONArray value)
                  throws IOException,
                         AutomationException
name - The name  (in)value - A reference to a com.esri.arcgis.system.IJSONArray  (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
void createMemberObject(String name,
                        IJSONObject[] value)
                        throws IOException,
                               AutomationException
name - The name  (in)value - A reference to a com.esri.arcgis.system.IJSONObject  (out: use single element array)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
void createMemberArray(String name,
                       IJSONArray[] value)
                       throws IOException,
                              AutomationException
name - The name  (in)value - A reference to a com.esri.arcgis.system.IJSONArray  (out: use single element array)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
void makeValueNull(String name)
                   throws IOException,
                          AutomationException
name - The name  (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
String toJSONString(IPropertySet props)
                    throws IOException,
                           AutomationException
props - A reference to a com.esri.arcgis.system.IPropertySet  (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
void toJSON(String objectName,
            IJSONWriter pWriter)
            throws IOException,
                   AutomationException
objectName - The objectName  (in)pWriter - A reference to a com.esri.arcgis.system.IJSONWriter  (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
void removeMember(String name)
                  throws IOException,
                         AutomationException
name - The name  (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
void clearAll()
              throws IOException,
                     AutomationException
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
void addDoubleEx(String name,
                 double value,
                 int precision)
                 throws IOException,
                        AutomationException
name - The name  (in)value - The value  (in)precision - The precision  (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||