org.directwebremoting.json.types
Class JsonObject
java.lang.Object
org.directwebremoting.json.types.JsonValue
org.directwebremoting.json.types.JsonObject
- All Implemented Interfaces:
- java.util.Map<java.lang.String,JsonValue>
public class JsonObject
- extends JsonValue
- implements java.util.Map<java.lang.String,JsonValue>
In official JSON parlance this should be called Object, however this would
cause confusion with Object which is auto-imported.
- Author:
- Joe Walker [joe at getahead dot ltd dot uk]
| Nested classes/interfaces inherited from interface java.util.Map |
java.util.Map.Entry<K,V> |
| Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
JsonObject
public JsonObject()
toExternalRepresentation
public java.lang.String toExternalRepresentation()
- Description copied from class:
JsonValue
- i.e. How do we send this from one system to another?
- Specified by:
toExternalRepresentation in class JsonValue
- Returns:
- A string representing the portable version of this data
clear
public void clear()
- Specified by:
clear in interface java.util.Map<java.lang.String,JsonValue>
containsKey
public boolean containsKey(java.lang.Object key)
- Specified by:
containsKey in interface java.util.Map<java.lang.String,JsonValue>
containsValue
public boolean containsValue(java.lang.Object value)
- Specified by:
containsValue in interface java.util.Map<java.lang.String,JsonValue>
entrySet
public java.util.Set<java.util.Map.Entry<java.lang.String,JsonValue>> entrySet()
- Specified by:
entrySet in interface java.util.Map<java.lang.String,JsonValue>
get
public JsonValue get(java.lang.Object key)
- Specified by:
get in interface java.util.Map<java.lang.String,JsonValue>
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty in interface java.util.Map<java.lang.String,JsonValue>
keySet
public java.util.Set<java.lang.String> keySet()
- Specified by:
keySet in interface java.util.Map<java.lang.String,JsonValue>
put
public JsonValue put(java.lang.String key,
JsonValue value)
- Specified by:
put in interface java.util.Map<java.lang.String,JsonValue>
putAll
public void putAll(java.util.Map<? extends java.lang.String,? extends JsonValue> otherMap)
- Specified by:
putAll in interface java.util.Map<java.lang.String,JsonValue>
remove
public JsonValue remove(java.lang.Object key)
- Specified by:
remove in interface java.util.Map<java.lang.String,JsonValue>
size
public int size()
- Specified by:
size in interface java.util.Map<java.lang.String,JsonValue>
values
public java.util.Collection<JsonValue> values()
- Specified by:
values in interface java.util.Map<java.lang.String,JsonValue>
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object
equals
public boolean equals(java.lang.Object o)
- Specified by:
equals in interface java.util.Map<java.lang.String,JsonValue>- Overrides:
equals in class java.lang.Object
hashCode
public int hashCode()
- Specified by:
hashCode in interface java.util.Map<java.lang.String,JsonValue>- Overrides:
hashCode in class java.lang.Object