com.ibm.commons.util.io.json
Class JsonJavaObjectI

java.lang.Object
  extended by java.util.AbstractMap<K,V>
      extended by java.util.HashMap<java.lang.String,java.lang.Object>
          extended by com.ibm.commons.util.io.json.JsonJavaObject
              extended by com.ibm.commons.util.io.json.JsonJavaObjectI
All Implemented Interfaces:
JsonObject, java.io.Serializable, java.lang.Cloneable, java.util.Map<java.lang.String,java.lang.Object>

public class JsonJavaObjectI
extends JsonJavaObject

JSON implementation for a JsonObject in Java that has its properties name case insensitive.

Note that this implementation, and because of the limitation in the Java HashMap implementation, the property names are converted and stored as lowercase. This means that the initial case of the property names is lost.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class java.util.AbstractMap
java.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>
 
Constructor Summary
JsonJavaObjectI()
           
 
Method Summary
 boolean containsKey(java.lang.Object key)
           
static java.lang.Object convertKey(java.lang.Object o)
           
static java.lang.String convertKey(java.lang.String s)
           
 java.lang.Object get(java.lang.Object key)
           
 java.lang.Object get(java.lang.String key)
           
 java.lang.Object put(java.lang.String property, java.lang.Object value)
           
 java.lang.Object remove(java.lang.Object key)
           
 void remove(java.lang.String key)
           
 
Methods inherited from class com.ibm.commons.util.io.json.JsonJavaObject
getAsArray, getAsBoolean, getAsDouble, getAsInt, getAsList, getAsLong, getAsMap, getAsObject, getAsString, getBoolean, getDouble, getInt, getJavaDate, getJsonObject, getJsonProperties, getJsonProperty, getLong, getProperties, getString, isEmpty, putArray, putBoolean, putDouble, putInt, putJavaDate, putJsonProperty, putList, putLong, putMap, putObject, putString, putString, removeAll, toString
 
Methods inherited from class java.util.HashMap
clear, clone, containsValue, entrySet, keySet, putAll, size, values
 
Methods inherited from class java.util.AbstractMap
equals, hashCode
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Map
equals, hashCode
 

Constructor Detail

JsonJavaObjectI

public JsonJavaObjectI()
Method Detail

get

public java.lang.Object get(java.lang.Object key)
Specified by:
get in interface java.util.Map<java.lang.String,java.lang.Object>
Overrides:
get in class java.util.HashMap<java.lang.String,java.lang.Object>

get

public java.lang.Object get(java.lang.String key)
Overrides:
get in class JsonJavaObject

put

public java.lang.Object put(java.lang.String property,
                            java.lang.Object value)
Specified by:
put in interface java.util.Map<java.lang.String,java.lang.Object>
Overrides:
put in class JsonJavaObject

containsKey

public boolean containsKey(java.lang.Object key)
Specified by:
containsKey in interface java.util.Map<java.lang.String,java.lang.Object>
Overrides:
containsKey in class java.util.HashMap<java.lang.String,java.lang.Object>

remove

public java.lang.Object remove(java.lang.Object key)
Specified by:
remove in interface java.util.Map<java.lang.String,java.lang.Object>
Overrides:
remove in class java.util.HashMap<java.lang.String,java.lang.Object>

remove

public void remove(java.lang.String key)
Overrides:
remove in class JsonJavaObject

convertKey

public static java.lang.Object convertKey(java.lang.Object o)

convertKey

public static java.lang.String convertKey(java.lang.String s)