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
-
Method Summary
Modifier and TypeMethodDescriptionboolean
containsKey
(String key) Returns if the given key is present in the map.static CmsJSONMap
Creates a native javascript object to be used as a JSON map.boolean
getBoolean
(String key) Returns the value to the given key.boolean[]
getBooleanArray
(String key) Returns the value to the given key.double
Returns the value to the given key.double[]
getDoubleArray
(String key) Returns the value to the given key.int
Returns the value to the given key.int[]
getIntArray
(String key) Returns the value to the given key.com.google.gwt.core.client.JavaScriptObject
Returns 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.void
Puts the value into the map.void
Puts the value into the map.void
Puts the value into the map.void
Puts the value into the map.void
Puts the value into the map.void
Puts the value into the map.void
Puts the value into the map.void
Puts the value into the map.void
Puts the value into the map.void
Puts 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:
true
if 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
-