Class JsonObjectImpl
java.lang.Object
org.apache.activemq.artemis.json.impl.JsonValueImpl
org.apache.activemq.artemis.json.impl.JsonObjectImpl
- All Implemented Interfaces:
Map<String,,JsonValue> JsonObject,JsonValue
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.activemq.artemis.json.JsonValue
JsonValue.ValueType -
Field Summary
Fields inherited from interface org.apache.activemq.artemis.json.JsonValue
EMPTY_JSON_ARRAY, EMPTY_JSON_OBJECT, FALSE, NULL, TRUE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()booleancontainsKey(Object key) booleancontainsValue(Object value) entrySet()booleangetBoolean(String name) Returns the boolean with the given name ornullif there is no attribute with that name.booleangetBoolean(String name, boolean defaultValue) Returns the boolean with the given name or the default value if there is no attribute with that name.intReturns the int with the given name ornullif there is no attribute with that name.intReturns the int with the given name or the default value if there is no attribute with that name.getJsonArray(String name) Returns the JsonArray with the given name ornullif there is no attribute with that name.getJsonNumber(String name) Returns the JsonNumber with the given name ornullif there is no attribute with that name.getJsonObject(String name) Returns the JsonObject with the given name ornullif there is no attribute with that name.getJsonString(String name) Returns the JsonString with the given name ornullif there is no attribute with that name.javax.json.JsonObjectReturns the native string with the given name ornullif there is no attribute with that name.Returns the native string with the given name or the default value if there is no attribute with that name.booleanisEmpty()booleanReturns whether the attribute with the given name isJsonValue.NULL.keySet()voidintsize()values()Methods inherited from class org.apache.activemq.artemis.json.impl.JsonValueImpl
asJsonArray, asJsonObject, equals, getRawValue, getValueType, hashCode, toString, wrapMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.activemq.artemis.json.JsonValue
asJsonArray, asJsonObject, getValueType, toStringMethods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replace, replaceAll
-
Constructor Details
-
JsonObjectImpl
public JsonObjectImpl(javax.json.JsonObject rawObject)
-
-
Method Details
-
getRawObject
public javax.json.JsonObject getRawObject() -
getJsonArray
Description copied from interface:JsonObjectReturns the JsonArray with the given name ornullif there is no attribute with that name.- Specified by:
getJsonArrayin interfaceJsonObject- Returns:
- the JsonArray with the given name or
nullif there is no attribute with that name
-
getJsonObject
Description copied from interface:JsonObjectReturns the JsonObject with the given name ornullif there is no attribute with that name.- Specified by:
getJsonObjectin interfaceJsonObject- Returns:
- the JsonObject with the given name or
nullif there is no attribute with that name
-
getJsonNumber
Description copied from interface:JsonObjectReturns the JsonNumber with the given name ornullif there is no attribute with that name.- Specified by:
getJsonNumberin interfaceJsonObject- Returns:
- the JsonNumber with the given name or
nullif there is no attribute with that name
-
getJsonString
Description copied from interface:JsonObjectReturns the JsonString with the given name ornullif there is no attribute with that name.- Specified by:
getJsonStringin interfaceJsonObject- Returns:
- the JsonString with the given name or
nullif there is no attribute with that name
-
getString
Description copied from interface:JsonObjectReturns the native string with the given name ornullif there is no attribute with that name.- Specified by:
getStringin interfaceJsonObject- Returns:
- the native string with the given name or
nullif there is no attribute with that name
-
getString
Description copied from interface:JsonObjectReturns the native string with the given name or the default value if there is no attribute with that name.- Specified by:
getStringin interfaceJsonObject- Returns:
- the native string with the given name or the default value if there is no attribute with that name
-
getInt
Description copied from interface:JsonObjectReturns the int with the given name ornullif there is no attribute with that name.- Specified by:
getIntin interfaceJsonObject- Returns:
- the int with the given name or
nullif there is no attribute with that name
-
getInt
Description copied from interface:JsonObjectReturns the int with the given name or the default value if there is no attribute with that name.- Specified by:
getIntin interfaceJsonObject- Returns:
- the int with the given name or the default value if there is no attribute with that name
-
getBoolean
Description copied from interface:JsonObjectReturns the boolean with the given name ornullif there is no attribute with that name.- Specified by:
getBooleanin interfaceJsonObject- Returns:
- the boolean with the given name or
nullif there is no attribute with that name
-
getBoolean
Description copied from interface:JsonObjectReturns the boolean with the given name or the default value if there is no attribute with that name.- Specified by:
getBooleanin interfaceJsonObject- Returns:
- the boolean with the given name or the default value if there is no attribute with that name
-
isNull
Description copied from interface:JsonObjectReturns whether the attribute with the given name isJsonValue.NULL.- Specified by:
isNullin interfaceJsonObject- Returns:
- whether the attribute with the given name is
JsonValue.NULL
-
size
public int size() -
isEmpty
public boolean isEmpty() -
containsKey
- Specified by:
containsKeyin interfaceMap<String,JsonValue>
-
containsValue
- Specified by:
containsValuein interfaceMap<String,JsonValue>
-
get
-
put
-
remove
-
putAll
-
clear
public void clear() -
keySet
-
values
-
entrySet
-