Uses of Interface
javax.json.JsonValue
-
Packages that use JsonValue 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 org.glassfish.json.jaxrs -
-
Uses of JsonValue in javax.json
Subinterfaces of JsonValue in javax.json Modifier and Type Interface Description interface
JsonArray
JsonArray
represents an immutable JSON array (an ordered sequence of zero or more values).interface
JsonNumber
An immutable JSON number value.interface
JsonObject
JsonObject
class represents an immutable JSON object value (an unordered collection of zero or more name/value pairs).interface
JsonString
An immutable JSON string value.interface
JsonStructure
Classes in javax.json that implement JsonValue Modifier and Type Class Description (package private) class
EmptyArray
Private implementation of immutableJsonArray
.(package private) class
EmptyObject
Private implementation of immutableJsonObject
.(package private) class
JsonValueImpl
Private implementation ofJsonValue
for simpleJsonValue.ValueType
s allowing their usage in constants which are better to implementSerializable
.Fields in javax.json declared as JsonValue Modifier and Type Field Description static JsonValue
JsonValue. FALSE
JSON false value.static JsonValue
JsonValue. NULL
JSON null value.static JsonValue
JsonValue. TRUE
JSON true value.Methods in javax.json with type parameters of type JsonValue Modifier and Type Method Description <T extends JsonValue>
java.util.List<T>EmptyArray. getValuesAs(java.lang.Class<T> clazz)
<T extends JsonValue>
java.util.List<T>JsonArray. getValuesAs(java.lang.Class<T> clazz)
Returns a list view of the specified type for the array.default <T,K extends JsonValue>
java.util.List<T>JsonArray. getValuesAs(java.util.function.Function<K,T> func)
Returns a list view for the array.Methods in javax.json that return JsonValue Modifier and Type Method Description JsonValue
JsonMergePatch. apply(JsonValue target)
Applies the JSON Merge Patch to the specifiedtarget
.JsonValue
EmptyArray. get(int index)
JsonValue
JsonPointer. getValue(JsonStructure target)
Returns the value at the referenced location in the specifiedtarget
.default JsonValue
JsonStructure. getValue(java.lang.String jsonPointer)
Get the value referenced by the provided JSON Pointer in the JsonStructure.default JsonValue
JsonReader. readValue()
Returns a JSON value that is represented in the input source.JsonValue
JsonMergePatch. toJsonValue()
Returns theJsonMergePatch
asJsonValue
.Methods in javax.json that return types with arguments of type JsonValue Modifier and Type Method Description java.util.Set<java.util.Map.Entry<java.lang.String,JsonValue>>
EmptyObject. entrySet()
Methods in javax.json with parameters of type JsonValue Modifier and Type Method Description default JsonArrayBuilder
JsonArrayBuilder. add(int index, JsonValue value)
Inserts a value to the array at the specified position.JsonArrayBuilder
JsonArrayBuilder. add(JsonValue value)
Adds a value to the array.JsonObjectBuilder
JsonObjectBuilder. add(java.lang.String name, JsonValue value)
Adds a name/JsonValue
pair to the JSON object associated with this object builder.JsonPatchBuilder
JsonPatchBuilder. add(java.lang.String path, JsonValue value)
Adds an "add" JSON Patch operation.<T extends JsonStructure>
TJsonPointer. add(T target, JsonValue value)
Adds or replaces a value at the referenced location in the specifiedtarget
with the specifiedvalue
.JsonValue
JsonMergePatch. apply(JsonValue target)
Applies the JSON Merge Patch to the specifiedtarget
.static JsonMergePatch
Json. createMergeDiff(JsonValue source, JsonValue target)
Generates a JSON Merge Patch (RFC 7396) from the source and targetJsonValue
s which when applied to thesource
, yields thetarget
.static JsonMergePatch
Json. createMergePatch(JsonValue patch)
Creates JSON Merge Patch (RFC 7396) from specifiedJsonValue
.JsonPatchBuilder
JsonPatchBuilder. replace(java.lang.String path, JsonValue value)
Adds a "replace" JSON Patch operation.<T extends JsonStructure>
TJsonPointer. replace(T target, JsonValue value)
Replaces the value at the referenced location in the specifiedtarget
with the specifiedvalue
.default JsonArrayBuilder
JsonArrayBuilder. set(int index, JsonValue value)
Replaces a value in the array with the specified value at the specified position.JsonPatchBuilder
JsonPatchBuilder. test(java.lang.String path, JsonValue value)
Adds a "test" JSON Patch operation.default void
JsonWriter. write(JsonValue value)
Writes the specifiedJsonValue
to the output source. -
Uses of JsonValue in javax.json.spi
Methods in javax.json.spi with parameters of type JsonValue Modifier and Type Method Description JsonMergePatch
JsonProvider. createMergeDiff(JsonValue source, JsonValue target)
Generates a JSON Merge Patch (RFC 7396) from the source and targetJsonValue
s which when applied to thesource
, yields thetarget
.JsonMergePatch
JsonProvider. createMergePatch(JsonValue patch)
Creates JSON Merge Patch (RFC 7396) from specifiedJsonValue
. -
Uses of JsonValue in javax.json.stream
Methods in javax.json.stream that return JsonValue Modifier and Type Method Description default JsonValue
JsonParser. getValue()
Returns aJsonValue
at the current parser position.Methods in javax.json.stream that return types with arguments of type JsonValue Modifier and Type Method Description default java.util.stream.Stream<JsonValue>
JsonParser. getArrayStream()
Returns a stream of theJsonArray
elements.default java.util.stream.Stream<java.util.Map.Entry<java.lang.String,JsonValue>>
JsonParser. getObjectStream()
Returns a stream of theJsonObject
's name/value pairs.default java.util.stream.Stream<JsonValue>
JsonParser. getValueStream()
Returns a stream ofJsonValue
from a sequence of JSON values.static java.util.stream.Collector<JsonValue,java.util.Map<java.lang.String,JsonArrayBuilder>,JsonObject>
JsonCollectors. groupingBy(java.util.function.Function<JsonValue,java.lang.String> classifier)
Constructs ajava.util.stream.Collector
that implements a "group by" operation on the inputJsonValue
elements.static <T extends JsonArrayBuilder>
java.util.stream.Collector<JsonValue,java.util.Map<java.lang.String,T>,JsonObject>JsonCollectors. groupingBy(java.util.function.Function<JsonValue,java.lang.String> classifier, java.util.stream.Collector<JsonValue,T,JsonArray> downstream)
Constructs ajava.util.stream.Collector
that implements a "group by" operation on the inputJsonValue
elements.static java.util.stream.Collector<JsonValue,JsonArrayBuilder,JsonArray>
JsonCollectors. toJsonArray()
Constructs ajava.util.stream.Collector
that accumulates the inputJsonValue
elements into aJsonArray
.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
.Methods in javax.json.stream with parameters of type JsonValue Modifier and Type Method Description JsonGenerator
JsonGenerator. write(java.lang.String name, JsonValue value)
Writes a JSON name/value pair in the current object context.JsonGenerator
JsonGenerator. write(JsonValue value)
Writes the specified value as a JSON value within the current array, field or root context.Method parameters in javax.json.stream with type arguments of type JsonValue Modifier and Type Method Description static java.util.stream.Collector<JsonValue,java.util.Map<java.lang.String,JsonArrayBuilder>,JsonObject>
JsonCollectors. groupingBy(java.util.function.Function<JsonValue,java.lang.String> classifier)
Constructs ajava.util.stream.Collector
that implements a "group by" operation on the inputJsonValue
elements.static <T extends JsonArrayBuilder>
java.util.stream.Collector<JsonValue,java.util.Map<java.lang.String,T>,JsonObject>JsonCollectors. groupingBy(java.util.function.Function<JsonValue,java.lang.String> classifier, java.util.stream.Collector<JsonValue,T,JsonArray> downstream)
Constructs ajava.util.stream.Collector
that implements a "group by" operation on the inputJsonValue
elements.static <T extends JsonArrayBuilder>
java.util.stream.Collector<JsonValue,java.util.Map<java.lang.String,T>,JsonObject>JsonCollectors. groupingBy(java.util.function.Function<JsonValue,java.lang.String> classifier, java.util.stream.Collector<JsonValue,T,JsonArray> downstream)
Constructs ajava.util.stream.Collector
that implements a "group by" operation on the inputJsonValue
elements.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 JsonValue in org.glassfish.json
Classes in org.glassfish.json that implement JsonValue Modifier and Type Class Description private static class
JsonArrayBuilderImpl.JsonArrayImpl
(package private) class
JsonNumberImpl
JsonNumber impl.private static class
JsonNumberImpl.JsonBigDecimalNumber
private static class
JsonNumberImpl.JsonIntNumber
private static class
JsonNumberImpl.JsonLongNumber
private static class
JsonObjectBuilderImpl.JsonObjectImpl
(package private) class
JsonStringImpl
JsonString implFields in org.glassfish.json declared as JsonValue Modifier and Type Field Description private JsonValue
JsonMergePatchImpl. patch
private JsonValue
JsonStructureParser.ArrayScope. value
private JsonValue
JsonStructureParser.ObjectScope. value
Fields in org.glassfish.json with type parameters of type JsonValue Modifier and Type Field Description private java.util.Iterator<JsonValue>
JsonStructureParser.ArrayScope. it
private java.util.Iterator<java.util.Map.Entry<java.lang.String,JsonValue>>
JsonStructureParser.ObjectScope. it
private java.util.List<JsonValue>
JsonArrayBuilderImpl.JsonArrayImpl. valueList
private java.util.ArrayList<JsonValue>
JsonArrayBuilderImpl. valueList
private java.util.Map<java.lang.String,JsonValue>
JsonObjectBuilderImpl.JsonObjectImpl. valueMap
private java.util.Map<java.lang.String,JsonValue>
JsonObjectBuilderImpl. valueMap
Methods in org.glassfish.json with type parameters of type JsonValue Modifier and Type Method Description <T extends JsonValue>
java.util.List<T>JsonArrayBuilderImpl.JsonArrayImpl. getValuesAs(java.lang.Class<T> clazz)
Methods in org.glassfish.json that return JsonValue Modifier and Type Method Description JsonValue
JsonMergePatchImpl. apply(JsonValue target)
(package private) static JsonValue
JsonMergePatchImpl. diff(JsonValue source, JsonValue target)
Generate a JSON Merge Patch from the source and targetJsonValue
.JsonValue
JsonArrayBuilderImpl.JsonArrayImpl. get(int index)
JsonValue
JsonObjectBuilderImpl.JsonObjectImpl. get(java.lang.Object key)
JsonValue
NodeReference.ArrayReference. get()
abstract JsonValue
NodeReference. get()
Get the value at the referenced location.JsonValue
NodeReference.ObjectReference. get()
JsonValue
NodeReference.RootReference. get()
(package private) JsonValue
JsonStructureParser.ArrayScope. getJsonValue()
(package private) JsonValue
JsonStructureParser.ObjectScope. getJsonValue()
(package private) abstract JsonValue
JsonStructureParser.Scope. getJsonValue()
JsonValue
JsonParserImpl. getValue()
private JsonValue
JsonPatchImpl. getValue(JsonObject operation)
JsonValue
JsonPointerImpl. getValue(JsonStructure target)
Returns the value at the referenced location in the specifiedtarget
(package private) static JsonValue
MapUtil. handle(java.lang.Object value, BufferPool bufferPool)
private static JsonValue
JsonMergePatchImpl. mergePatch(JsonValue target, JsonValue patch)
Applies the specified patch to the specified target.JsonValue
JsonStructureParser.ArrayScope. next()
JsonValue
JsonReaderImpl. readValue()
static JsonValue
JsonUtil. toJson(java.lang.String jsonString)
Reads the input JSON text and returns a JsonValue.JsonValue
JsonMergePatchImpl. toJsonValue()
Methods in org.glassfish.json that return types with arguments of type JsonValue Modifier and Type Method Description java.util.Set<java.util.Map.Entry<java.lang.String,JsonValue>>
JsonObjectBuilderImpl.JsonObjectImpl. entrySet()
java.util.stream.Stream<JsonValue>
JsonParserImpl. getArrayStream()
java.util.stream.Stream<java.util.Map.Entry<java.lang.String,JsonValue>>
JsonParserImpl. getObjectStream()
java.util.stream.Stream<JsonValue>
JsonParserImpl. getValueStream()
java.util.Map.Entry<java.lang.String,JsonValue>
JsonStructureParser.ObjectScope. next()
Methods in org.glassfish.json with parameters of type JsonValue Modifier and Type Method Description JsonArrayBuilder
JsonArrayBuilderImpl. add(int index, JsonValue value)
JsonArrayBuilder
JsonArrayBuilderImpl. add(JsonValue value)
JsonObjectBuilder
JsonObjectBuilderImpl. add(java.lang.String name, JsonValue value)
JsonPatchBuilder
JsonPatchBuilderImpl. add(java.lang.String path, JsonValue value)
Adds an "add" JSON Patch operation.JsonStructure
JsonPointerImpl. add(JsonStructure target, JsonValue value)
Adds or replaces a value at the referenced location in the specifiedtarget
with the specifiedvalue
.abstract JsonStructure
NodeReference. add(JsonValue value)
Add or replace a value at the referenced location.JsonArray
NodeReference.ArrayReference. add(JsonValue value)
JsonObject
NodeReference.ObjectReference. add(JsonValue value)
JsonStructure
NodeReference.RootReference. add(JsonValue value)
private void
JsonArrayBuilderImpl. addValueList(int index, JsonValue value)
private void
JsonArrayBuilderImpl. addValueList(JsonValue value)
JsonValue
JsonMergePatchImpl. apply(JsonValue target)
JsonMergePatch
JsonProviderImpl. createMergeDiff(JsonValue source, JsonValue target)
JsonMergePatch
JsonProviderImpl. createMergePatch(JsonValue patch)
(package private) static JsonStructureParser.Scope
JsonStructureParser.Scope. createScope(JsonValue value)
(package private) static JsonValue
JsonMergePatchImpl. diff(JsonValue source, JsonValue target)
Generate a JSON Merge Patch from the source and targetJsonValue
.private void
JsonPatchImpl.DiffGenerator. diff(java.lang.String path, JsonValue source, JsonValue target)
private JsonStructure
JsonPointerImpl. execute(java.util.function.BiFunction<NodeReference,JsonValue,JsonStructure> op, JsonStructure target, JsonValue value)
Executes the operationprivate static JsonParser.Event
JsonStructureParser. getState(JsonValue value)
private static JsonValue
JsonMergePatchImpl. mergePatch(JsonValue target, JsonValue patch)
Applies the specified patch to the specified target.(package private) static java.lang.String
JsonMessages. PARSER_SCOPE_ERR(JsonValue value)
private void
JsonObjectBuilderImpl. putValueMap(java.lang.String name, JsonValue value)
JsonPatchBuilder
JsonPatchBuilderImpl. replace(java.lang.String path, JsonValue value)
Adds a "replace" JSON Patch operation.JsonStructure
JsonPointerImpl. replace(JsonStructure target, JsonValue value)
Replaces the value at the referenced location in the specifiedtarget
with the specifiedvalue
.JsonArray
NodeReference.ArrayReference. replace(JsonValue value)
JsonObject
NodeReference.ObjectReference. replace(JsonValue value)
abstract JsonStructure
NodeReference. replace(JsonValue value)
Replace the referenced value with the specified value.JsonStructure
NodeReference.RootReference. replace(JsonValue value)
JsonArrayBuilder
JsonArrayBuilderImpl. set(int index, JsonValue value)
private void
JsonArrayBuilderImpl. setValueList(int index, JsonValue value)
JsonPatchBuilder
JsonPatchBuilderImpl. test(java.lang.String path, JsonValue value)
Adds a "test" JSON Patch operation.JsonGenerator
JsonGeneratorImpl. write(java.lang.String name, JsonValue value)
JsonGenerator
JsonGeneratorImpl. write(JsonValue value)
void
JsonWriterImpl. write(JsonValue value)
Method parameters in org.glassfish.json with type arguments of type JsonValue Modifier and Type Method Description private JsonStructure
JsonPointerImpl. execute(java.util.function.BiFunction<NodeReference,JsonValue,JsonStructure> op, JsonStructure target, JsonValue value)
Executes the operationConstructors in org.glassfish.json with parameters of type JsonValue Constructor Description JsonMergePatchImpl(JsonValue patch)
Constructor parameters in org.glassfish.json with type arguments of type JsonValue Constructor Description JsonArrayImpl(java.util.List<JsonValue> valueList, BufferPool bufferPool)
JsonObjectImpl(java.util.Map<java.lang.String,JsonValue> valueMap, BufferPool bufferPool)
-
Uses of JsonValue in org.glassfish.json.jaxrs
Methods in org.glassfish.json.jaxrs that return JsonValue Modifier and Type Method Description JsonValue
JsonValueBodyReader. readFrom(java.lang.Class<JsonValue> jsonValueClass, java.lang.reflect.Type type, java.lang.annotation.Annotation[] annotations, javax.ws.rs.core.MediaType mediaType, javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.String> stringStringMultivaluedMap, java.io.InputStream inputStream)
Methods in org.glassfish.json.jaxrs with parameters of type JsonValue Modifier and Type Method Description long
JsonValueBodyWriter. getSize(JsonValue jsonValue, java.lang.Class<?> aClass, java.lang.reflect.Type type, java.lang.annotation.Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
void
JsonValueBodyWriter. writeTo(JsonValue jsonValue, java.lang.Class<?> aClass, java.lang.reflect.Type type, java.lang.annotation.Annotation[] annotations, javax.ws.rs.core.MediaType mediaType, javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.Object> stringObjectMultivaluedMap, java.io.OutputStream outputStream)
Method parameters in org.glassfish.json.jaxrs with type arguments of type JsonValue Modifier and Type Method Description JsonValue
JsonValueBodyReader. readFrom(java.lang.Class<JsonValue> jsonValueClass, java.lang.reflect.Type type, java.lang.annotation.Annotation[] annotations, javax.ws.rs.core.MediaType mediaType, javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.String> stringStringMultivaluedMap, java.io.InputStream inputStream)
-