Class JsonObjectImpl

    • Constructor Detail

      • JsonObjectImpl

        public JsonObjectImpl​(javax.json.JsonObject rawObject)
    • Method Detail

      • getRawObject

        public javax.json.JsonObject getRawObject()
      • getJsonArray

        public JsonArray getJsonArray​(java.lang.String 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​(java.lang.String 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​(java.lang.String 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​(java.lang.String 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 java.lang.String getString​(java.lang.String 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 java.lang.String getString​(java.lang.String name,
                                          java.lang.String defaultValue)
        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​(java.lang.String 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​(java.lang.String name,
                          int defaultValue)
        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​(java.lang.String 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​(java.lang.String name,
                                  boolean defaultValue)
        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​(java.lang.String name)
        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 java.util.Map<java.lang.String,​JsonValue>
      • isEmpty

        public boolean isEmpty()
        Specified by:
        isEmpty in interface java.util.Map<java.lang.String,​JsonValue>
      • containsKey

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

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

        public JsonValue get​(java.lang.Object key)
        Specified by:
        get in interface java.util.Map<java.lang.String,​JsonValue>
      • put

        public JsonValue put​(java.lang.String key,
                             JsonValue value)
        Specified by:
        put in interface java.util.Map<java.lang.String,​JsonValue>
      • remove

        public JsonValue remove​(java.lang.Object key)
        Specified by:
        remove in interface java.util.Map<java.lang.String,​JsonValue>
      • putAll

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

        public void clear()
        Specified by:
        clear in interface java.util.Map<java.lang.String,​JsonValue>
      • keySet

        public java.util.Set<java.lang.String> keySet()
        Specified by:
        keySet in interface java.util.Map<java.lang.String,​JsonValue>
      • values

        public java.util.Collection<JsonValue> values()
        Specified by:
        values in interface java.util.Map<java.lang.String,​JsonValue>
      • entrySet

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