Package org.opencms.gwt.client.util
Class CmsJSONMap
java.lang.Object
com.google.gwt.core.client.JavaScriptObject
org.opencms.gwt.client.util.CmsJSONMap
Class to create native JSON maps.
- Since:
- 8.0.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsKey(String key) Returns if the given key is present in the map.static CmsJSONMapCreates a native javascript object to be used as a JSON map.booleangetBoolean(String key) Returns the value to the given key.boolean[]getBooleanArray(String key) Returns the value to the given key.doubleReturns the value to the given key.double[]getDoubleArray(String key) Returns the value to the given key.intReturns the value to the given key.int[]getIntArray(String key) Returns the value to the given key.com.google.gwt.core.client.JavaScriptObjectReturns the value to the given key.com.google.gwt.core.client.JavaScriptObject[]Returns the value to the given key.Returns the value to the given key.String[]getStringArray(String key) Returns the value to the given key.voidPuts the value into the map.voidPuts the value into the map.voidPuts the value into the map.voidPuts the value into the map.voidPuts the value into the map.voidPuts the value into the map.voidPuts the value into the map.voidPuts the value into the map.voidPuts the value into the map.voidPuts the value into the map.Methods inherited from class com.google.gwt.core.client.JavaScriptObject
cast, createArray, createArray, createFunction, createObject, equals, hashCode, toSource, toString
-
Constructor Details
-
CmsJSONMap
protected CmsJSONMap()Not directly instantiable. All subclasses must also define a protected, empty, no-arg constructor.
-
-
Method Details
-
createJSONMap
Creates a native javascript object to be used as a JSON map.- Returns:
- the JSON map
-
containsKey
Returns if the given key is present in the map.- Parameters:
key- the key- Returns:
trueif the map contains the key
-
getBoolean
Returns the value to the given key.- Parameters:
key- the key- Returns:
- the value
-
getBooleanArray
Returns the value to the given key.- Parameters:
key- the key- Returns:
- the value
-
getDouble
Returns the value to the given key.- Parameters:
key- the key- Returns:
- the value
-
getDoubleArray
Returns the value to the given key.- Parameters:
key- the key- Returns:
- the value
-
getInt
Returns the value to the given key.- Parameters:
key- the key- Returns:
- the value
-
getIntArray
Returns the value to the given key.- Parameters:
key- the key- Returns:
- the value
-
getJavaScriptObject
Returns the value to the given key.- Parameters:
key- the key- Returns:
- the value
-
getJavaScriptObjectArray
Returns the value to the given key.- Parameters:
key- the key- Returns:
- the value
-
getString
Returns the value to the given key.- Parameters:
key- the key- Returns:
- the value
-
getStringArray
Returns the value to the given key.- Parameters:
key- the key- Returns:
- the value
-
put
Puts the value into the map.- Parameters:
key- the keyvalue- the value
-
put
Puts the value into the map.- Parameters:
key- the keyvalue- the value
-
put
Puts the value into the map.- Parameters:
key- the keyvalue- the value
-
put
Puts the value into the map.- Parameters:
key- the keyvalue- the value
-
put
Puts the value into the map.- Parameters:
key- the keyvalue- the value
-
put
Puts the value into the map.- Parameters:
key- the keyvalue- the value
-
put
Puts the value into the map.- Parameters:
key- the keyvalue- the value
-
put
Puts the value into the map.- Parameters:
key- the keyvalue- the value
-
put
Puts the value into the map.- Parameters:
key- the keyvalue- the value
-
put
Puts the value into the map.- Parameters:
key- the keyvalue- the value
-