Uses of Interface
javax.json.JsonObjectBuilder
-
Packages that use JsonObjectBuilder Package Description javax.json Provides an object model API to process JSON.javax.json.spi Service Provider Interface (SPI) to plug in implementations for JSON processing objects.javax.json.stream Provides a streaming API to parse and generate JSON.org.glassfish.json -
-
Uses of JsonObjectBuilder in javax.json
Methods in javax.json that return JsonObjectBuilder Modifier and Type Method Description JsonObjectBuilder
JsonObjectBuilder. add(java.lang.String name, boolean value)
Adds a name/JsonValue#TRUE
or name/JsonValue#FALSE
pair to the JSON object associated with this object builder.JsonObjectBuilder
JsonObjectBuilder. add(java.lang.String name, double value)
Adds a name/JsonNumber
pair to the JSON object associated with this object builder.JsonObjectBuilder
JsonObjectBuilder. add(java.lang.String name, int value)
Adds a name/JsonNumber
pair to the JSON object associated with this object builder.JsonObjectBuilder
JsonObjectBuilder. add(java.lang.String name, long value)
Adds a name/JsonNumber
pair to the JSON object associated with this object builder.JsonObjectBuilder
JsonObjectBuilder. add(java.lang.String name, java.lang.String value)
Adds a name/JsonString
pair to the JSON object associated with this object builder.JsonObjectBuilder
JsonObjectBuilder. add(java.lang.String name, java.math.BigDecimal value)
Adds a name/JsonNumber
pair to the JSON object associated with this object builder.JsonObjectBuilder
JsonObjectBuilder. add(java.lang.String name, java.math.BigInteger value)
Adds a name/JsonNumber
pair to the JSON object associated with this object builder.JsonObjectBuilder
JsonObjectBuilder. add(java.lang.String name, JsonArrayBuilder builder)
Adds a name/JsonArray
pair to the JSON object associated with this object builder.JsonObjectBuilder
JsonObjectBuilder. add(java.lang.String name, JsonObjectBuilder builder)
Adds a name/JsonObject
pair to the JSON object associated with this object builder.JsonObjectBuilder
JsonObjectBuilder. add(java.lang.String name, JsonValue value)
Adds a name/JsonValue
pair to the JSON object associated with this object builder.default JsonObjectBuilder
JsonObjectBuilder. addAll(JsonObjectBuilder builder)
Adds all name/value pairs in the JSON object associated with the specified object builder to the JSON object associated with this object builder.JsonObjectBuilder
JsonObjectBuilder. addNull(java.lang.String name)
Adds a name/JsonValue#NULL
pair to the JSON object associated with this object builder where the value isnull
.static JsonObjectBuilder
Json. createObjectBuilder()
Creates a JSON object builderstatic JsonObjectBuilder
Json. createObjectBuilder(java.util.Map<java.lang.String,java.lang.Object> map)
Creates a JSON object builder, initialized with the data from specifiedmap
.static JsonObjectBuilder
Json. createObjectBuilder(JsonObject object)
Creates a JSON object builder, initialized with the specified object.JsonObjectBuilder
JsonBuilderFactory. createObjectBuilder()
Creates aJsonObjectBuilder
instance that is used to buildJsonObject
.default JsonObjectBuilder
JsonBuilderFactory. createObjectBuilder(java.util.Map<java.lang.String,java.lang.Object> object)
Creates aJsonObjectBuilder
instance, initialized with the specified object.default JsonObjectBuilder
JsonBuilderFactory. createObjectBuilder(JsonObject object)
Creates aJsonObjectBuilder
instance, initialized with an object.default JsonObjectBuilder
JsonObjectBuilder. remove(java.lang.String name)
Remove the name/value pair from the JSON object associated with this object builder if it is present.Methods in javax.json with parameters of type JsonObjectBuilder Modifier and Type Method Description default JsonArrayBuilder
JsonArrayBuilder. add(int index, JsonObjectBuilder builder)
Adds aJsonObject
from an object builder to the array at the specified position.JsonArrayBuilder
JsonArrayBuilder. add(JsonObjectBuilder builder)
Adds aJsonObject
from an object builder to the array.JsonObjectBuilder
JsonObjectBuilder. add(java.lang.String name, JsonObjectBuilder builder)
Adds a name/JsonObject
pair to the JSON object associated with this object builder.default JsonObjectBuilder
JsonObjectBuilder. addAll(JsonObjectBuilder builder)
Adds all name/value pairs in the JSON object associated with the specified object builder to the JSON object associated with this object builder.default JsonArrayBuilder
JsonArrayBuilder. set(int index, JsonObjectBuilder builder)
Replaces a value in the array with the specified value as aJsonObject
from an object builder at the specified position. -
Uses of JsonObjectBuilder in javax.json.spi
Methods in javax.json.spi that return JsonObjectBuilder Modifier and Type Method Description abstract JsonObjectBuilder
JsonProvider. createObjectBuilder()
Creates a JSON object builder.JsonObjectBuilder
JsonProvider. createObjectBuilder(java.util.Map<java.lang.String,java.lang.Object> map)
Creates a JSON object builder, initialized with the data from specifiedmap
.JsonObjectBuilder
JsonProvider. createObjectBuilder(JsonObject object)
Creates a JSON object builder, initialized with the specified object. -
Uses of JsonObjectBuilder in javax.json.stream
Methods in javax.json.stream that return types with arguments of type JsonObjectBuilder Modifier and Type Method Description static java.util.stream.Collector<java.util.Map.Entry<java.lang.String,JsonValue>,JsonObjectBuilder,JsonObject>
JsonCollectors. toJsonObject()
Constructs ajava.util.stream.Collector
that accumulates the inputMap.Entry<String,JsonValue>
elements into aJsonObject
.static java.util.stream.Collector<JsonValue,JsonObjectBuilder,JsonObject>
JsonCollectors. toJsonObject(java.util.function.Function<JsonValue,java.lang.String> keyMapper, java.util.function.Function<JsonValue,JsonValue> valueMapper)
Constructs ajava.util.stream.Collector
that accumulates the inputJsonValue
elements into aJsonObject
. -
Uses of JsonObjectBuilder in org.glassfish.json
Classes in org.glassfish.json that implement JsonObjectBuilder Modifier and Type Class Description (package private) class
JsonObjectBuilderImpl
JsonObjectBuilder implementationMethods in org.glassfish.json that return JsonObjectBuilder Modifier and Type Method Description JsonObjectBuilder
JsonObjectBuilderImpl. add(java.lang.String name, boolean value)
JsonObjectBuilder
JsonObjectBuilderImpl. add(java.lang.String name, double value)
JsonObjectBuilder
JsonObjectBuilderImpl. add(java.lang.String name, int value)
JsonObjectBuilder
JsonObjectBuilderImpl. add(java.lang.String name, long value)
JsonObjectBuilder
JsonObjectBuilderImpl. add(java.lang.String name, java.lang.String value)
JsonObjectBuilder
JsonObjectBuilderImpl. add(java.lang.String name, java.math.BigDecimal value)
JsonObjectBuilder
JsonObjectBuilderImpl. add(java.lang.String name, java.math.BigInteger value)
JsonObjectBuilder
JsonObjectBuilderImpl. add(java.lang.String name, JsonArrayBuilder builder)
JsonObjectBuilder
JsonObjectBuilderImpl. add(java.lang.String name, JsonObjectBuilder builder)
JsonObjectBuilder
JsonObjectBuilderImpl. add(java.lang.String name, JsonValue value)
JsonObjectBuilder
JsonObjectBuilderImpl. addAll(JsonObjectBuilder builder)
JsonObjectBuilder
JsonObjectBuilderImpl. addNull(java.lang.String name)
JsonObjectBuilder
JsonBuilderFactoryImpl. createObjectBuilder()
JsonObjectBuilder
JsonBuilderFactoryImpl. createObjectBuilder(java.util.Map<java.lang.String,java.lang.Object> object)
JsonObjectBuilder
JsonBuilderFactoryImpl. createObjectBuilder(JsonObject object)
JsonObjectBuilder
JsonProviderImpl. createObjectBuilder()
JsonObjectBuilder
JsonProviderImpl. createObjectBuilder(java.util.Map<java.lang.String,java.lang.Object> map)
JsonObjectBuilder
JsonProviderImpl. createObjectBuilder(JsonObject object)
JsonObjectBuilder
JsonObjectBuilderImpl. remove(java.lang.String name)
Methods in org.glassfish.json with parameters of type JsonObjectBuilder Modifier and Type Method Description JsonArrayBuilder
JsonArrayBuilderImpl. add(int index, JsonObjectBuilder builder)
JsonArrayBuilder
JsonArrayBuilderImpl. add(JsonObjectBuilder builder)
JsonObjectBuilder
JsonObjectBuilderImpl. add(java.lang.String name, JsonObjectBuilder builder)
JsonObjectBuilder
JsonObjectBuilderImpl. addAll(JsonObjectBuilder builder)
private JsonObject
JsonParserImpl. getObject(JsonObjectBuilder builder)
JsonArrayBuilder
JsonArrayBuilderImpl. set(int index, JsonObjectBuilder builder)
-