com.alkacon.geranium.client.util
public final class JSONMap extends com.google.gwt.core.client.JavaScriptObject
| Modifier | Constructor and Description |
|---|---|
protected |
JSONMap()
Not directly instantiable.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsKey(java.lang.String key)
Returns if the given key is present in the map.
|
static JSONMap |
createJSONMap()
Creates a native javascript object to be used as a JSON map.
|
boolean |
getBoolean(java.lang.String key)
Returns the value to the given key.
|
boolean[] |
getBooleanArray(java.lang.String key)
Returns the value to the given key.
|
double |
getDouble(java.lang.String key)
Returns the value to the given key.
|
double[] |
getDoubleArray(java.lang.String key)
Returns the value to the given key.
|
int |
getInt(java.lang.String key)
Returns the value to the given key.
|
int[] |
getIntArray(java.lang.String key)
Returns the value to the given key.
|
com.google.gwt.core.client.JavaScriptObject |
getJavaScriptObject(java.lang.String key)
Returns the value to the given key.
|
com.google.gwt.core.client.JavaScriptObject[] |
getJavaScriptObjectArray(java.lang.String key)
Returns the value to the given key.
|
java.lang.String |
getString(java.lang.String key)
Returns the value to the given key.
|
java.lang.String[] |
getStringArray(java.lang.String key)
Returns the value to the given key.
|
void |
put(java.lang.String key,
boolean value)
Puts the value into the map.
|
void |
put(java.lang.String key,
boolean[] value)
Puts the value into the map.
|
void |
put(java.lang.String key,
double value)
Puts the value into the map.
|
void |
put(java.lang.String key,
double[] value)
Puts the value into the map.
|
void |
put(java.lang.String key,
int value)
Puts the value into the map.
|
void |
put(java.lang.String key,
int[] value)
Puts the value into the map.
|
void |
put(java.lang.String key,
com.google.gwt.core.client.JavaScriptObject value)
Puts the value into the map.
|
void |
put(java.lang.String key,
com.google.gwt.core.client.JavaScriptObject[] value)
Puts the value into the map.
|
void |
put(java.lang.String key,
java.lang.String value)
Puts the value into the map.
|
void |
put(java.lang.String key,
java.lang.String[] value)
Puts the value into the map.
|
protected JSONMap()
public static JSONMap createJSONMap()
public boolean containsKey(java.lang.String key)
key - the keytrue if the map contains the keypublic boolean getBoolean(java.lang.String key)
key - the keypublic boolean[] getBooleanArray(java.lang.String key)
key - the keypublic double getDouble(java.lang.String key)
key - the keypublic double[] getDoubleArray(java.lang.String key)
key - the keypublic int getInt(java.lang.String key)
key - the keypublic int[] getIntArray(java.lang.String key)
key - the keypublic com.google.gwt.core.client.JavaScriptObject getJavaScriptObject(java.lang.String key)
key - the keypublic com.google.gwt.core.client.JavaScriptObject[] getJavaScriptObjectArray(java.lang.String key)
key - the keypublic java.lang.String getString(java.lang.String key)
key - the keypublic java.lang.String[] getStringArray(java.lang.String key)
key - the keypublic void put(java.lang.String key,
boolean value)
key - the keyvalue - the valuepublic void put(java.lang.String key,
boolean[] value)
key - the keyvalue - the valuepublic void put(java.lang.String key,
double value)
key - the keyvalue - the valuepublic void put(java.lang.String key,
double[] value)
key - the keyvalue - the valuepublic void put(java.lang.String key,
int value)
key - the keyvalue - the valuepublic void put(java.lang.String key,
int[] value)
key - the keyvalue - the valuepublic void put(java.lang.String key,
com.google.gwt.core.client.JavaScriptObject value)
key - the keyvalue - the valuepublic void put(java.lang.String key,
com.google.gwt.core.client.JavaScriptObject[] value)
key - the keyvalue - the valuepublic void put(java.lang.String key,
java.lang.String value)
key - the keyvalue - the valuepublic void put(java.lang.String key,
java.lang.String[] value)
key - the keyvalue - the value