Uses of Interface
javax.json.JsonStructure
-
Packages that use JsonStructure 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.org.glassfish.json org.glassfish.json.jaxrs1x -
-
Uses of JsonStructure in javax.json
Subinterfaces of JsonStructure 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
JsonObject
JsonObject
class represents an immutable JSON object value (an unordered collection of zero or more name/value pairs).Classes in javax.json that implement JsonStructure Modifier and Type Class Description (package private) class
EmptyArray
Private implementation of immutableJsonArray
.(package private) class
EmptyObject
Private implementation of immutableJsonObject
.Methods in javax.json with type parameters of type JsonStructure Modifier and Type Method Description <T extends JsonStructure>
TJsonPointer. add(T target, JsonValue value)
Adds or replaces a value at the referenced location in the specifiedtarget
with the specifiedvalue
.<T extends JsonStructure>
TJsonPatch. apply(T target)
Applies the patch operations to the specifiedtarget
.<T extends JsonStructure>
TJsonPointer. remove(T target)
Removes the value at the reference location in the specifiedtarget
.<T extends JsonStructure>
TJsonPointer. replace(T target, JsonValue value)
Replaces the value at the referenced location in the specifiedtarget
with the specifiedvalue
.Methods in javax.json that return JsonStructure Modifier and Type Method Description JsonStructure
JsonReader. read()
Returns a JSON array or object that is represented in the input source.Methods in javax.json with parameters of type JsonStructure Modifier and Type Method Description boolean
JsonPointer. containsValue(JsonStructure target)
Returnstrue
if there is a value at the referenced location in the specifiedtarget
.static JsonPatch
Json. createDiff(JsonStructure source, JsonStructure target)
Generates a JSON Patch (RFC 6902) from the source and targetJsonStructure
.JsonValue
JsonPointer. getValue(JsonStructure target)
Returns the value at the referenced location in the specifiedtarget
.void
JsonWriter. write(JsonStructure value)
-
Uses of JsonStructure in javax.json.spi
Methods in javax.json.spi with parameters of type JsonStructure Modifier and Type Method Description JsonPatch
JsonProvider. createDiff(JsonStructure source, JsonStructure target)
Generates a JSON Patch (RFC 6902) from the source and targetJsonStructure
. -
Uses of JsonStructure in org.glassfish.json
Classes in org.glassfish.json that implement JsonStructure Modifier and Type Class Description private static class
JsonArrayBuilderImpl.JsonArrayImpl
private static class
JsonObjectBuilderImpl.JsonObjectImpl
Fields in org.glassfish.json declared as JsonStructure Modifier and Type Field Description private JsonStructure
NodeReference.RootReference. root
Methods in org.glassfish.json with type parameters of type JsonStructure Modifier and Type Method Description <T extends JsonStructure>
TJsonPatchBuilderImpl. apply(T target)
A convenience method fornew JsonPatchImpl(build()).apply(target)
.Methods in org.glassfish.json that return JsonStructure Modifier and Type Method Description 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.JsonStructure
NodeReference.RootReference. add(JsonValue value)
JsonStructure
JsonPatchImpl. apply(JsonStructure target)
Applies the patch operations to the specifiedtarget
.private JsonStructure
JsonPatchImpl. apply(JsonStructure target, JsonObject operation)
Applies a JSON Patch operation to the target.private JsonStructure
JsonPointerImpl. execute(java.util.function.BiFunction<NodeReference,JsonValue,JsonStructure> op, JsonStructure target, JsonValue value)
Executes the operationJsonStructure
JsonReaderImpl. read()
JsonStructure
JsonPointerImpl. remove(JsonStructure target)
Removes the value at the reference location in the specifiedtarget
abstract JsonStructure
NodeReference. remove()
Remove the name/value pair from the JSON object, or the value in a JSON array, as specified by the referenceJsonStructure
NodeReference.RootReference. remove()
JsonStructure
JsonPointerImpl. replace(JsonStructure target, JsonValue value)
Replaces the value at the referenced location in the specifiedtarget
with the specifiedvalue
.abstract JsonStructure
NodeReference. replace(JsonValue value)
Replace the referenced value with the specified value.JsonStructure
NodeReference.RootReference. replace(JsonValue value)
Methods in org.glassfish.json with parameters of type JsonStructure Modifier and Type Method Description JsonStructure
JsonPointerImpl. add(JsonStructure target, JsonValue value)
Adds or replaces a value at the referenced location in the specifiedtarget
with the specifiedvalue
.JsonStructure
JsonPatchImpl. apply(JsonStructure target)
Applies the patch operations to the specifiedtarget
.private JsonStructure
JsonPatchImpl. apply(JsonStructure target, JsonObject operation)
Applies a JSON Patch operation to the target.boolean
JsonPointerImpl. containsValue(JsonStructure target)
Returnstrue
if there is a value at the referenced location in the specifiedtarget
.JsonPatch
JsonProviderImpl. createDiff(JsonStructure source, JsonStructure target)
static JsonArray
JsonPatchImpl. diff(JsonStructure source, JsonStructure target)
Generates a JSON Patch from the source and targetJsonStructure
.(package private) JsonArray
JsonPatchImpl.DiffGenerator. diff(JsonStructure source, JsonStructure target)
private JsonStructure
JsonPointerImpl. execute(java.util.function.BiFunction<NodeReference,JsonValue,JsonStructure> op, JsonStructure target, JsonValue value)
Executes the operationprivate NodeReference[]
JsonPointerImpl. getReferences(JsonStructure target)
Computes theNodeReference
s for each node on the path of the JSON Pointer, in reverse order, starting from the leaf nodeJsonValue
JsonPointerImpl. getValue(JsonStructure target)
Returns the value at the referenced location in the specifiedtarget
static NodeReference
NodeReference. of(JsonStructure structure)
Returns aNodeReference
for aJsonStructure
.JsonStructure
JsonPointerImpl. remove(JsonStructure target)
Removes the value at the reference location in the specifiedtarget
JsonStructure
JsonPointerImpl. replace(JsonStructure target, JsonValue value)
Replaces the value at the referenced location in the specifiedtarget
with the specifiedvalue
.void
JsonWriterImpl. write(JsonStructure value)
Method parameters in org.glassfish.json with type arguments of type JsonStructure 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 JsonStructure Constructor Description RootReference(JsonStructure root)
-
Uses of JsonStructure in org.glassfish.json.jaxrs1x
Methods in org.glassfish.json.jaxrs1x that return JsonStructure Modifier and Type Method Description JsonStructure
JsonStructureBodyReader. readFrom(java.lang.Class<JsonStructure> jsonStructureClass, 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.jaxrs1x with parameters of type JsonStructure Modifier and Type Method Description long
JsonStructureBodyWriter. getSize(JsonStructure jsonStructure, java.lang.Class<?> aClass, java.lang.reflect.Type type, java.lang.annotation.Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
void
JsonStructureBodyWriter. writeTo(JsonStructure jsonStructure, 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.jaxrs1x with type arguments of type JsonStructure Modifier and Type Method Description JsonStructure
JsonStructureBodyReader. readFrom(java.lang.Class<JsonStructure> jsonStructureClass, 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)
-