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 interfaceJsonArrayJsonArrayrepresents an immutable JSON array (an ordered sequence of zero or more values).interfaceJsonNumberAn immutable JSON number value.interfaceJsonObjectJsonObjectclass represents an immutable JSON object value (an unordered collection of zero or more name/value pairs).interfaceJsonStringAn immutable JSON string value.interfaceJsonStructureClasses in javax.json that implement JsonValue Modifier and Type Class Description (package private) classEmptyArrayPrivate implementation of immutableJsonArray.(package private) classEmptyObjectPrivate implementation of immutableJsonObject.(package private) classJsonValueImplPrivate implementation ofJsonValuefor simpleJsonValue.ValueTypes allowing their usage in constants which are better to implementSerializable.Fields in javax.json declared as JsonValue Modifier and Type Field Description static JsonValueJsonValue. FALSEJSON false value.static JsonValueJsonValue. NULLJSON null value.static JsonValueJsonValue. TRUEJSON 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 JsonValueJsonMergePatch. apply(JsonValue target)Applies the JSON Merge Patch to the specifiedtarget.JsonValueEmptyArray. get(int index)JsonValueJsonPointer. getValue(JsonStructure target)Returns the value at the referenced location in the specifiedtarget.default JsonValueJsonStructure. getValue(java.lang.String jsonPointer)Get the value referenced by the provided JSON Pointer in the JsonStructure.default JsonValueJsonReader. readValue()Returns a JSON value that is represented in the input source.JsonValueJsonMergePatch. toJsonValue()Returns theJsonMergePatchasJsonValue.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 JsonArrayBuilderJsonArrayBuilder. add(int index, JsonValue value)Inserts a value to the array at the specified position.JsonArrayBuilderJsonArrayBuilder. add(JsonValue value)Adds a value to the array.JsonObjectBuilderJsonObjectBuilder. add(java.lang.String name, JsonValue value)Adds a name/JsonValuepair to the JSON object associated with this object builder.JsonPatchBuilderJsonPatchBuilder. 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 specifiedtargetwith the specifiedvalue.JsonValueJsonMergePatch. apply(JsonValue target)Applies the JSON Merge Patch to the specifiedtarget.static JsonMergePatchJson. createMergeDiff(JsonValue source, JsonValue target)Generates a JSON Merge Patch (RFC 7396) from the source and targetJsonValues which when applied to thesource, yields thetarget.static JsonMergePatchJson. createMergePatch(JsonValue patch)Creates JSON Merge Patch (RFC 7396) from specifiedJsonValue.JsonPatchBuilderJsonPatchBuilder. 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 specifiedtargetwith the specifiedvalue.default JsonArrayBuilderJsonArrayBuilder. set(int index, JsonValue value)Replaces a value in the array with the specified value at the specified position.JsonPatchBuilderJsonPatchBuilder. test(java.lang.String path, JsonValue value)Adds a "test" JSON Patch operation.default voidJsonWriter. write(JsonValue value)Writes the specifiedJsonValueto 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 JsonMergePatchJsonProvider. createMergeDiff(JsonValue source, JsonValue target)Generates a JSON Merge Patch (RFC 7396) from the source and targetJsonValues which when applied to thesource, yields thetarget.JsonMergePatchJsonProvider. 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 JsonValueJsonParser. getValue()Returns aJsonValueat 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 theJsonArrayelements.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 ofJsonValuefrom 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.Collectorthat implements a "group by" operation on the inputJsonValueelements.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.Collectorthat implements a "group by" operation on the inputJsonValueelements.static java.util.stream.Collector<JsonValue,JsonArrayBuilder,JsonArray>JsonCollectors. toJsonArray()Constructs ajava.util.stream.Collectorthat accumulates the inputJsonValueelements into aJsonArray.static java.util.stream.Collector<java.util.Map.Entry<java.lang.String,JsonValue>,JsonObjectBuilder,JsonObject>JsonCollectors. toJsonObject()Constructs ajava.util.stream.Collectorthat 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.Collectorthat accumulates the inputJsonValueelements into aJsonObject.Methods in javax.json.stream with parameters of type JsonValue Modifier and Type Method Description JsonGeneratorJsonGenerator. write(java.lang.String name, JsonValue value)Writes a JSON name/value pair in the current object context.JsonGeneratorJsonGenerator. 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.Collectorthat implements a "group by" operation on the inputJsonValueelements.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.Collectorthat implements a "group by" operation on the inputJsonValueelements.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.Collectorthat implements a "group by" operation on the inputJsonValueelements.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.Collectorthat accumulates the inputJsonValueelements into aJsonObject. -
Uses of JsonValue in org.glassfish.json
Classes in org.glassfish.json that implement JsonValue Modifier and Type Class Description private static classJsonArrayBuilderImpl.JsonArrayImpl(package private) classJsonNumberImplJsonNumber impl.private static classJsonNumberImpl.JsonBigDecimalNumberprivate static classJsonNumberImpl.JsonIntNumberprivate static classJsonNumberImpl.JsonLongNumberprivate static classJsonObjectBuilderImpl.JsonObjectImpl(package private) classJsonStringImplJsonString implFields in org.glassfish.json declared as JsonValue Modifier and Type Field Description private JsonValueJsonMergePatchImpl. patchprivate JsonValueJsonStructureParser.ArrayScope. valueprivate JsonValueJsonStructureParser.ObjectScope. valueFields in org.glassfish.json with type parameters of type JsonValue Modifier and Type Field Description private java.util.Iterator<JsonValue>JsonStructureParser.ArrayScope. itprivate java.util.Iterator<java.util.Map.Entry<java.lang.String,JsonValue>>JsonStructureParser.ObjectScope. itprivate java.util.List<JsonValue>JsonArrayBuilderImpl.JsonArrayImpl. valueListprivate java.util.ArrayList<JsonValue>JsonArrayBuilderImpl. valueListprivate java.util.Map<java.lang.String,JsonValue>JsonObjectBuilderImpl.JsonObjectImpl. valueMapprivate java.util.Map<java.lang.String,JsonValue>JsonObjectBuilderImpl. valueMapMethods 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 JsonValueJsonMergePatchImpl. apply(JsonValue target)(package private) static JsonValueJsonMergePatchImpl. diff(JsonValue source, JsonValue target)Generate a JSON Merge Patch from the source and targetJsonValue.JsonValueJsonArrayBuilderImpl.JsonArrayImpl. get(int index)JsonValueJsonObjectBuilderImpl.JsonObjectImpl. get(java.lang.Object key)JsonValueNodeReference.ArrayReference. get()abstract JsonValueNodeReference. get()Get the value at the referenced location.JsonValueNodeReference.ObjectReference. get()JsonValueNodeReference.RootReference. get()(package private) JsonValueJsonStructureParser.ArrayScope. getJsonValue()(package private) JsonValueJsonStructureParser.ObjectScope. getJsonValue()(package private) abstract JsonValueJsonStructureParser.Scope. getJsonValue()JsonValueJsonParserImpl. getValue()private JsonValueJsonPatchImpl. getValue(JsonObject operation)JsonValueJsonPointerImpl. getValue(JsonStructure target)Returns the value at the referenced location in the specifiedtarget(package private) static JsonValueMapUtil. handle(java.lang.Object value, BufferPool bufferPool)private static JsonValueJsonMergePatchImpl. mergePatch(JsonValue target, JsonValue patch)Applies the specified patch to the specified target.JsonValueJsonStructureParser.ArrayScope. next()JsonValueJsonReaderImpl. readValue()static JsonValueJsonUtil. toJson(java.lang.String jsonString)Reads the input JSON text and returns a JsonValue.JsonValueJsonMergePatchImpl. 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 JsonArrayBuilderJsonArrayBuilderImpl. add(int index, JsonValue value)JsonArrayBuilderJsonArrayBuilderImpl. add(JsonValue value)JsonObjectBuilderJsonObjectBuilderImpl. add(java.lang.String name, JsonValue value)JsonPatchBuilderJsonPatchBuilderImpl. add(java.lang.String path, JsonValue value)Adds an "add" JSON Patch operation.JsonStructureJsonPointerImpl. add(JsonStructure target, JsonValue value)Adds or replaces a value at the referenced location in the specifiedtargetwith the specifiedvalue.abstract JsonStructureNodeReference. add(JsonValue value)Add or replace a value at the referenced location.JsonArrayNodeReference.ArrayReference. add(JsonValue value)JsonObjectNodeReference.ObjectReference. add(JsonValue value)JsonStructureNodeReference.RootReference. add(JsonValue value)private voidJsonArrayBuilderImpl. addValueList(int index, JsonValue value)private voidJsonArrayBuilderImpl. addValueList(JsonValue value)JsonValueJsonMergePatchImpl. apply(JsonValue target)JsonMergePatchJsonProviderImpl. createMergeDiff(JsonValue source, JsonValue target)JsonMergePatchJsonProviderImpl. createMergePatch(JsonValue patch)(package private) static JsonStructureParser.ScopeJsonStructureParser.Scope. createScope(JsonValue value)(package private) static JsonValueJsonMergePatchImpl. diff(JsonValue source, JsonValue target)Generate a JSON Merge Patch from the source and targetJsonValue.private voidJsonPatchImpl.DiffGenerator. diff(java.lang.String path, JsonValue source, JsonValue target)private JsonStructureJsonPointerImpl. execute(java.util.function.BiFunction<NodeReference,JsonValue,JsonStructure> op, JsonStructure target, JsonValue value)Executes the operationprivate static JsonParser.EventJsonStructureParser. getState(JsonValue value)private static JsonValueJsonMergePatchImpl. mergePatch(JsonValue target, JsonValue patch)Applies the specified patch to the specified target.(package private) static java.lang.StringJsonMessages. PARSER_SCOPE_ERR(JsonValue value)private voidJsonObjectBuilderImpl. putValueMap(java.lang.String name, JsonValue value)JsonPatchBuilderJsonPatchBuilderImpl. replace(java.lang.String path, JsonValue value)Adds a "replace" JSON Patch operation.JsonStructureJsonPointerImpl. replace(JsonStructure target, JsonValue value)Replaces the value at the referenced location in the specifiedtargetwith the specifiedvalue.JsonArrayNodeReference.ArrayReference. replace(JsonValue value)JsonObjectNodeReference.ObjectReference. replace(JsonValue value)abstract JsonStructureNodeReference. replace(JsonValue value)Replace the referenced value with the specified value.JsonStructureNodeReference.RootReference. replace(JsonValue value)JsonArrayBuilderJsonArrayBuilderImpl. set(int index, JsonValue value)private voidJsonArrayBuilderImpl. setValueList(int index, JsonValue value)JsonPatchBuilderJsonPatchBuilderImpl. test(java.lang.String path, JsonValue value)Adds a "test" JSON Patch operation.JsonGeneratorJsonGeneratorImpl. write(java.lang.String name, JsonValue value)JsonGeneratorJsonGeneratorImpl. write(JsonValue value)voidJsonWriterImpl. write(JsonValue value)Method parameters in org.glassfish.json with type arguments of type JsonValue Modifier and Type Method Description private JsonStructureJsonPointerImpl. 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 JsonValueJsonValueBodyReader. 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 longJsonValueBodyWriter. getSize(JsonValue jsonValue, java.lang.Class<?> aClass, java.lang.reflect.Type type, java.lang.annotation.Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)voidJsonValueBodyWriter. 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 JsonValueJsonValueBodyReader. 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)
-