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

public class JsonObjectImpl extends JsonValueImpl implements JsonObject
  • Constructor Details

    • JsonObjectImpl

      public JsonObjectImpl(javax.json.JsonObject rawObject)
  • Method Details

    • getRawObject

      public javax.json.JsonObject getRawObject()
    • getJsonArray

      public JsonArray getJsonArray(String name)
      Description copied from interface: JsonObject
      Returns the JsonArray with the given name or null if there is no attribute with that name.
      Specified by:
      getJsonArray in interface JsonObject
      Returns:
      the JsonArray with the given name or null if there is no attribute with that name
    • getJsonObject

      public JsonObject getJsonObject(String name)
      Description copied from interface: JsonObject
      Returns the JsonObject with the given name or null if there is no attribute with that name.
      Specified by:
      getJsonObject in interface JsonObject
      Returns:
      the JsonObject with the given name or null if there is no attribute with that name
    • getJsonNumber

      public JsonNumber getJsonNumber(String name)
      Description copied from interface: JsonObject
      Returns the JsonNumber with the given name or null if there is no attribute with that name.
      Specified by:
      getJsonNumber in interface JsonObject
      Returns:
      the JsonNumber with the given name or null if there is no attribute with that name
    • getJsonString

      public JsonString getJsonString(String name)
      Description copied from interface: JsonObject
      Returns the JsonString with the given name or null if there is no attribute with that name.
      Specified by:
      getJsonString in interface JsonObject
      Returns:
      the JsonString with the given name or null if there is no attribute with that name
    • getString

      public String getString(String name)
      Description copied from interface: JsonObject
      Returns the native string with the given name or null if there is no attribute with that name.
      Specified by:
      getString in interface JsonObject
      Returns:
      the native string with the given name or null if there is no attribute with that name
    • getString

      public String getString(String name, String defaultValue)
      Description copied from interface: JsonObject
      Returns the native string with the given name or the default value if there is no attribute with that name.
      Specified by:
      getString in interface JsonObject
      Returns:
      the native string with the given name or the default value if there is no attribute with that name
    • getInt

      public int getInt(String name)
      Description copied from interface: JsonObject
      Returns the int with the given name or null if there is no attribute with that name.
      Specified by:
      getInt in interface JsonObject
      Returns:
      the int with the given name or null if there is no attribute with that name
    • getInt

      public int getInt(String name, int defaultValue)
      Description copied from interface: JsonObject
      Returns the int with the given name or the default value if there is no attribute with that name.
      Specified by:
      getInt in interface JsonObject
      Returns:
      the int with the given name or the default value if there is no attribute with that name
    • getBoolean

      public boolean getBoolean(String name)
      Description copied from interface: JsonObject
      Returns the boolean with the given name or null if there is no attribute with that name.
      Specified by:
      getBoolean in interface JsonObject
      Returns:
      the boolean with the given name or null if there is no attribute with that name
    • getBoolean

      public boolean getBoolean(String name, boolean defaultValue)
      Description copied from interface: JsonObject
      Returns the boolean with the given name or the default value if there is no attribute with that name.
      Specified by:
      getBoolean in interface JsonObject
      Returns:
      the boolean with the given name or the default value if there is no attribute with that name
    • isNull

      public boolean isNull(String name)
      Description copied from interface: JsonObject
      Returns whether the attribute with the given name is JsonValue.NULL.
      Specified by:
      isNull in interface JsonObject
      Returns:
      whether the attribute with the given name is JsonValue.NULL
    • size

      public int size()
      Specified by:
      size in interface Map<String,JsonValue>
    • isEmpty

      public boolean isEmpty()
      Specified by:
      isEmpty in interface Map<String,JsonValue>
    • containsKey

      public boolean containsKey(Object key)
      Specified by:
      containsKey in interface Map<String,JsonValue>
    • containsValue

      public boolean containsValue(Object value)
      Specified by:
      containsValue in interface Map<String,JsonValue>
    • get

      public JsonValue get(Object key)
      Specified by:
      get in interface Map<String,JsonValue>
    • put

      public JsonValue put(String key, JsonValue value)
      Specified by:
      put in interface Map<String,JsonValue>
    • remove

      public JsonValue remove(Object key)
      Specified by:
      remove in interface Map<String,JsonValue>
    • putAll

      public void putAll(Map<? extends String,? extends JsonValue> m)
      Specified by:
      putAll in interface Map<String,JsonValue>
    • clear

      public void clear()
      Specified by:
      clear in interface Map<String,JsonValue>
    • keySet

      public Set<String> keySet()
      Specified by:
      keySet in interface Map<String,JsonValue>
    • values

      public Collection<JsonValue> values()
      Specified by:
      values in interface Map<String,JsonValue>
    • entrySet

      public Set<Map.Entry<String,JsonValue>> entrySet()
      Specified by:
      entrySet in interface Map<String,JsonValue>