|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.util.AbstractCollection<E> java.util.AbstractList<E> java.util.Vector<JSON._KeyValue> org.opengts.util.JSON._Object
public static class JSON._Object
JSON Object class
Field Summary |
---|
Fields inherited from class java.util.Vector |
---|
capacityIncrement, elementCount, elementData |
Fields inherited from class java.util.AbstractList |
---|
modCount |
Constructor Summary | |
---|---|
JSON._Object()
Constructor |
|
JSON._Object(JSON._KeyValue... kv)
Constructor |
|
JSON._Object(java.util.Vector<JSON._KeyValue> list)
Constructor |
Method Summary | |
---|---|
boolean |
add(JSON._KeyValue kv)
|
boolean |
addKeyValue(JSON._KeyValue kv)
Adds a key/value pair to this object |
boolean |
addKeyValue(java.lang.String key,
boolean value)
Adds a key/value pair to this object |
boolean |
addKeyValue(java.lang.String key,
double value)
Adds a key/value pair to this object |
boolean |
addKeyValue(java.lang.String key,
int value)
Adds a key/value pair to this object |
boolean |
addKeyValue(java.lang.String key,
JSON._Array value)
Adds a key/value pair to this object |
boolean |
addKeyValue(java.lang.String key,
JSON._Object value)
Adds a key/value pair to this object |
boolean |
addKeyValue(java.lang.String key,
JSON._Value value)
Adds a key/value pair to this object |
boolean |
addKeyValue(java.lang.String key,
long value)
Adds a key/value pair to this object |
boolean |
addKeyValue(java.lang.String key,
java.lang.String value)
Adds a key/value pair to this object |
void |
debugDisplayObject(int level)
Print object contents (for debug purposes only) |
JSON._Array |
getArrayForName(java.lang.String[] name,
JSON._Array dft)
Gets the JSON._Array for the specified name |
JSON._Array |
getArrayForName(java.lang.String name,
JSON._Array dft)
Gets the JSON._Array for the specified name |
boolean |
getBooleanForName(java.lang.String[] name,
boolean dft)
Gets the String value for the specified name |
boolean |
getBooleanForName(java.lang.String name,
boolean dft)
Gets the String value for the specified name |
double |
getDoubleForName(java.lang.String[] name,
double dft)
Gets the Double value for the specified name |
double |
getDoubleForName(java.lang.String name,
double dft)
Gets the Double value for the specified name |
int |
getIntForName(java.lang.String[] name,
int dft)
Gets the Integer value for the specified name |
int |
getIntForName(java.lang.String name,
int dft)
Gets the Integer value for the specified name |
java.util.Collection<java.lang.String> |
getKeyNames()
Gets a list of all key names in this object |
JSON._KeyValue |
getKeyValue(java.lang.String n)
Gets the key/value pair for the specified name |
JSON._KeyValue |
getKeyValueAt(int ndx)
Gets the key/value pair at the specified index |
int |
getKeyValueCount()
Gets the number of key/value pairs in this object |
long |
getLongForName(java.lang.String[] name,
long dft)
Gets the Long value for the specified name |
long |
getLongForName(java.lang.String name,
long dft)
Gets the Long value for the specified name |
JSON._Object |
getObjectForName(java.lang.String[] name,
JSON._Object dft)
Gets the JSON._Object value for the specified name |
JSON._Object |
getObjectForName(java.lang.String name,
JSON._Object dft)
Gets the JSON._Object value for the specified name |
java.lang.String[] |
getStringArrayForName(java.lang.String[] name,
java.lang.String[] dft)
Gets the JSON._Array for the specified name |
java.lang.String[] |
getStringArrayForName(java.lang.String name,
java.lang.String[] dft)
Gets the JSON._Array for the specified name |
java.lang.String |
getStringForName(java.lang.String[] name,
java.lang.String dft)
Gets the String value for the specified name |
java.lang.String |
getStringForName(java.lang.String name,
java.lang.String dft)
Gets the String value for the specified name |
JSON._Value |
getValueForName(java.lang.String n)
Gets the JSON._Value for the specified name |
JSON._Value |
getValueForName(java.lang.String[] name)
Gets the JSON._Value for the specified name |
JSON._Object |
setFormatIndent(boolean indent)
Set format indent state |
java.lang.String |
toString()
Returns a String representation of this instance |
java.lang.String |
toString(boolean inclPrefix)
Returns a String representation of this instance |
java.lang.StringBuffer |
toStringBuffer(int prefix,
java.lang.StringBuffer sb)
Write a String representation of this instance to the StringBuffer |
Methods inherited from class java.util.Vector |
---|
add, addAll, addAll, addElement, capacity, clear, clone, contains, containsAll, copyInto, elementAt, elements, ensureCapacity, equals, firstElement, get, hashCode, indexOf, indexOf, insertElementAt, isEmpty, lastElement, lastIndexOf, lastIndexOf, remove, remove, removeAll, removeAllElements, removeElement, removeElementAt, removeRange, retainAll, set, setElementAt, setSize, size, subList, toArray, toArray, trimToSize |
Methods inherited from class java.util.AbstractList |
---|
iterator, listIterator, listIterator |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.List |
---|
iterator, listIterator, listIterator |
Constructor Detail |
---|
public JSON._Object()
public JSON._Object(java.util.Vector<JSON._KeyValue> list)
public JSON._Object(JSON._KeyValue... kv)
Method Detail |
---|
public boolean addKeyValue(JSON._KeyValue kv)
public boolean add(JSON._KeyValue kv)
add
in interface java.util.Collection<JSON._KeyValue>
add
in interface java.util.List<JSON._KeyValue>
add
in class java.util.Vector<JSON._KeyValue>
public boolean addKeyValue(java.lang.String key, java.lang.String value)
public boolean addKeyValue(java.lang.String key, int value)
public boolean addKeyValue(java.lang.String key, long value)
public boolean addKeyValue(java.lang.String key, double value)
public boolean addKeyValue(java.lang.String key, boolean value)
public boolean addKeyValue(java.lang.String key, JSON._Array value)
public boolean addKeyValue(java.lang.String key, JSON._Object value)
public boolean addKeyValue(java.lang.String key, JSON._Value value)
public int getKeyValueCount()
public JSON._KeyValue getKeyValueAt(int ndx)
public JSON._KeyValue getKeyValue(java.lang.String n)
public JSON._Value getValueForName(java.lang.String n)
public JSON._Value getValueForName(java.lang.String[] name)
public JSON._Array getArrayForName(java.lang.String name, JSON._Array dft)
public JSON._Array getArrayForName(java.lang.String[] name, JSON._Array dft)
public java.lang.String[] getStringArrayForName(java.lang.String name, java.lang.String[] dft)
public java.lang.String[] getStringArrayForName(java.lang.String[] name, java.lang.String[] dft)
public JSON._Object getObjectForName(java.lang.String name, JSON._Object dft)
public JSON._Object getObjectForName(java.lang.String[] name, JSON._Object dft)
public java.lang.String getStringForName(java.lang.String name, java.lang.String dft)
public java.lang.String getStringForName(java.lang.String[] name, java.lang.String dft)
public int getIntForName(java.lang.String name, int dft)
public int getIntForName(java.lang.String[] name, int dft)
public long getLongForName(java.lang.String name, long dft)
public long getLongForName(java.lang.String[] name, long dft)
public double getDoubleForName(java.lang.String name, double dft)
public double getDoubleForName(java.lang.String[] name, double dft)
public boolean getBooleanForName(java.lang.String name, boolean dft)
public boolean getBooleanForName(java.lang.String[] name, boolean dft)
public java.util.Collection<java.lang.String> getKeyNames()
public void debugDisplayObject(int level)
public JSON._Object setFormatIndent(boolean indent)
public java.lang.StringBuffer toStringBuffer(int prefix, java.lang.StringBuffer sb)
public java.lang.String toString()
toString
in class java.util.Vector<JSON._KeyValue>
public java.lang.String toString(boolean inclPrefix)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |