Class JsonObjectBuilderImpl

    • Constructor Detail

      • JsonObjectBuilderImpl

        public JsonObjectBuilderImpl​(javax.json.JsonObjectBuilder rawObjectBuilder)
    • Method Detail

      • getRawObjectBuilder

        public javax.json.JsonObjectBuilder getRawObjectBuilder()
      • add

        public JsonObjectBuilder add​(java.lang.String name,
                                     JsonValue value)
        Description copied from interface: JsonObjectBuilder
        Add the given JsonValue value to the JsonObject to be created. If a value with that name already exists it will be replaced by the new value.
        Specified by:
        add in interface JsonObjectBuilder
        Parameters:
        name - the JSON attribute name
        value - the JsonValue to add
        Returns:
        the current JsonObjectBuilder
      • add

        public JsonObjectBuilder add​(java.lang.String name,
                                     java.lang.String value)
        Description copied from interface: JsonObjectBuilder
        Add the given String value to the JsonObject to be created. If a value with that name already exists it will be replaced by the new value.
        Specified by:
        add in interface JsonObjectBuilder
        Parameters:
        name - the JSON attribute name
        value - the String value to add
        Returns:
        the current JsonObjectBuilder
      • add

        public JsonObjectBuilder add​(java.lang.String name,
                                     java.math.BigInteger value)
        Description copied from interface: JsonObjectBuilder
        Add the given BigInteger value to the JsonObject to be created. If a value with that name already exists it will be replaced by the new value.
        Specified by:
        add in interface JsonObjectBuilder
        Parameters:
        name - the JSON attribute name
        value - the BigInteger value to add
        Returns:
        the current JsonObjectBuilder
      • add

        public JsonObjectBuilder add​(java.lang.String name,
                                     java.math.BigDecimal value)
        Description copied from interface: JsonObjectBuilder
        Add the given BigDecimal value to the JsonObject to be created. If a value with that name already exists it will be replaced by the new value.
        Specified by:
        add in interface JsonObjectBuilder
        Parameters:
        name - the JSON attribute name
        value - the BigDecimal value to add
        Returns:
        the current JsonObjectBuilder
      • add

        public JsonObjectBuilder add​(java.lang.String name,
                                     int value)
        Description copied from interface: JsonObjectBuilder
        Add the given int value to the JsonObject to be created. If a value with that name already exists it will be replaced by the new value.
        Specified by:
        add in interface JsonObjectBuilder
        Parameters:
        name - the JSON attribute name
        value - to add
        Returns:
        the current JsonObjectBuilder
      • add

        public JsonObjectBuilder add​(java.lang.String name,
                                     long value)
        Description copied from interface: JsonObjectBuilder
        Add the given long value to the JsonObject to be created. If a value with that name already exists it will be replaced by the new value.
        Specified by:
        add in interface JsonObjectBuilder
        Parameters:
        name - the JSON attribute name
        value - to add
        Returns:
        the current JsonObjectBuilder
      • add

        public JsonObjectBuilder add​(java.lang.String name,
                                     double value)
        Description copied from interface: JsonObjectBuilder
        Add the given double value to the JsonObject to be created. If a value with that name already exists it will be replaced by the new value.
        Specified by:
        add in interface JsonObjectBuilder
        Parameters:
        name - the JSON attribute name
        value - to add
        Returns:
        the current JsonObjectBuilder
      • add

        public JsonObjectBuilder add​(java.lang.String name,
                                     boolean value)
        Description copied from interface: JsonObjectBuilder
        Add the given boolean value to the JsonObject to be created. If a value with that name already exists it will be replaced by the new value.
        Specified by:
        add in interface JsonObjectBuilder
        Parameters:
        name - the JSON attribute name
        value - to add
        Returns:
        the current JsonObjectBuilder
      • addNull

        public JsonObjectBuilder addNull​(java.lang.String name)
        Description copied from interface: JsonObjectBuilder
        Add a JsonValue.NULL value to the JsonObject to be created. If a value with that name already exists it will be replaced by the null value.
        Specified by:
        addNull in interface JsonObjectBuilder
        Parameters:
        name - the JSON attribute name
        Returns:
        the current JsonObjectBuilder
      • add

        public JsonObjectBuilder add​(java.lang.String name,
                                     JsonObjectBuilder builder)
        Description copied from interface: JsonObjectBuilder
        Use the given JsonObjectBuilder to create a JsonObject which will be added to the JsonObject to be created by this builder. If a value with that name already exists it will be replaced by the new value.
        Specified by:
        add in interface JsonObjectBuilder
        Parameters:
        name - the JSON attribute name
        builder - for creating the JsonObject to add
        Returns:
        the current JsonObjectBuilder
      • add

        public JsonObjectBuilder add​(java.lang.String name,
                                     JsonArrayBuilder builder)
        Description copied from interface: JsonObjectBuilder
        Use the given JsonArrayBuilder to create a JsonArray which will be added to the JsonObject to be created by this builder. If a value with that name already exists it will be replaced by the new value.
        Specified by:
        add in interface JsonObjectBuilder
        Parameters:
        name - the JSON attribute name
        builder - for creating the JsonArray to add
        Returns:
        the current JsonObjectBuilder