Uses of Class
org.forgerock.json.JsonValue
Packages that use JsonValue
Package
Description
Provides an API for the traversal and manipulation of JSON object model structures in Java.
Provides token handler definition.
-
Uses of JsonValue in org.forgerock.json
Methods in org.forgerock.json that return JsonValueModifier and TypeMethodDescriptionAdds the specified value to the list.Adds the specified value to the end of the list.Adds the specified value.JsonValue.add
(JsonPointer pointer, Object object) Adds the value identified by the specified pointer, relative to this value as root.JsonValue.addPermissive
(JsonPointer pointer, Object object) Adds the value identified by the specified pointer, relative to this value as root.final JsonValue
JsonValue.clone()
Returns a shallow copy of this JSON value.JsonValue.copy()
Returns a deep copy of this JSON value.Defaults the JSON value to the specified value if it is currentlynull
.static JsonValue
Compares two JSON values, and produces a JSON Patch value, which contains the operations necessary to modify theoriginal
value to arrive at thetarget
value.Performs a deep comparison of this JSON vlaue with another JSON value, and produces a JSON Patch value, which contains the operations necessary to modify the current value to arrive at thetarget
value.Called to enforce that the JSON value is of a particular type.JsonValue.get
(int index) Returns the specified child value.Returns the specified item value.JsonValue.get
(JsonPointer pointer) Returns the specified child value with a pointer, relative to this value as root.JsonValueException.getJsonValue()
Returns the JSON value for which the exception was thrown.static JsonValue
Returns a JSON value whose content is the provided object.Sets the value of the specified child list element.Sets the value of the specified member.JsonValue.put
(JsonPointer pointer, Object object) Sets the value identified by the specified pointer, relative to this value as root.JsonValue.putPermissive
(JsonPointer pointer, Object object) Sets the value identified by the specified pointer, relative to this value as root.JsonValue.required()
Throws aJsonValueException
if the JSON value isnull
.Methods in org.forgerock.json that return types with arguments of type JsonValueModifier and TypeMethodDescriptionstatic Function<JsonValue,
Charset, JsonValueException> JsonValueFunctions.charset()
Returns the JSON string value as a character set used for byte encoding/decoding.static Function<JsonValue,
JsonValue, JsonValueException> JsonValueFunctions.deepTransformBy
(Function<JsonValue, ?, JsonValueException> function) Returns the JSON value as the result of a deep JsonValue object-traversal, applying the provided transformfunction
to each element.static Function<JsonValue,
JsonValue, JsonValueException> JsonValueFunctions.deepTransformBy
(Function<JsonValue, ?, JsonValueException> function) Returns the JSON value as the result of a deep JsonValue object-traversal, applying the provided transformfunction
to each element.static Function<JsonValue,
Duration, JsonValueException> JsonValueFunctions.duration()
Returns the JSON string value as aDuration
.static <T extends Enum<T>>
Function<JsonValue,T, JsonValueException> JsonValueFunctions.enumConstant
(Class<T> type) Returns the JSON string value as an enum constant of the specified enum type.static Function<JsonValue,
File, JsonValueException> JsonValueFunctions.file()
Returns the JSON string value as aFile
object.static Function<JsonValue,
JsonValue, JsonValueException> JsonValueFunctions.identity()
Returns an identity function that will copy the inputJsonValue
.static Function<JsonValue,
JsonValue, JsonValueException> JsonValueFunctions.identity()
Returns an identity function that will copy the inputJsonValue
.JsonValue.iterator()
Returns an iterator over the child values that this JSON value contains.Returns the JSON value as aList
containing objects whose type (and value) is specified by a transformation function.static Function<JsonValue,
Pattern, JsonValueException> JsonValueFunctions.pattern()
Returns the JSON string value as a regular expression pattern.JsonValueFunctions.pointer()
Returns the JSON string value as a JSON pointer.static <V> Function<JsonValue,
Set<V>, JsonValueException> Returns the JSON value as aSet
containing objects whose type (and value) is specified by the parametertype
.Returns the JSON value as aSet
containing objects whose type (and value) is specified by a transformation function.static Function<JsonValue,
URI, JsonValueException> JsonValueFunctions.uri()
Returns the JSON string value as a uniform resource identifier.static Function<JsonValue,
URL, JsonValueException> JsonValueFunctions.url()
Returns the JSON string value as a uniform resource locator.static Function<JsonValue,
UUID, JsonValueException> JsonValueFunctions.uuid()
Returns the JSON string value as a universally unique identifier (UUID).Methods in org.forgerock.json with parameters of type JsonValueModifier and TypeMethodDescriptionfinal JsonValue
static JsonValue
Compares two JSON values, and produces a JSON Patch value, which contains the operations necessary to modify theoriginal
value to arrive at thetarget
value.Performs a deep comparison of this JSON vlaue with another JSON value, and produces a JSON Patch value, which contains the operations necessary to modify the current value to arrive at thetarget
value.JsonPatchValueTransformer.getTransformedValue
(JsonValue target, JsonValue op) Return the value to be used for a given patch operation.static boolean
Compares two JSON values, and returns whether the two objects are identical.boolean
Performs a deep comparison of this JSON value with another JSON value, and returns whether the two objects are identical.static void
Applies a set of modifications in a JSON patch value to an original value, resulting in the intended target value.static void
JsonPatch.patch
(JsonValue original, JsonValue patch, JsonPatchValueTransformer transform) Applies a set of modifications in a JSON patch value to an original value, resulting in the intended target value.void
Applies a set of modifications in a JSON patch value to the current object, resulting in the intended target value.protected Object
JsonValueTraverseFunction.traverseList
(JsonValue value) Transform a JsonValue List into another object.protected Object
JsonValueTraverseFunction.traverseMap
(JsonValue value) Transform a JsonValue Map into another object.Method parameters in org.forgerock.json with type arguments of type JsonValueModifier and TypeMethodDescription<V,
E extends Exception>
VReturns the JSON value as an object whose type (and value) is specified by a transformation function.static Function<JsonValue,
JsonValue, JsonValueException> JsonValueFunctions.deepTransformBy
(Function<JsonValue, ?, JsonValueException> function) Returns the JSON value as the result of a deep JsonValue object-traversal, applying the provided transformfunction
to each element.Returns the JSON value as aList
containing objects whose type (and value) is specified by a transformation function.Returns the JSON value as aSet
containing objects whose type (and value) is specified by a transformation function.Constructors in org.forgerock.json with parameters of type JsonValueModifierConstructorDescriptionJsonValueException
(JsonValue value) Constructs a new exception with the specified JSON value andnull
as its detail message.JsonValueException
(JsonValue value, String message) Constructs a new exception with the specified JSON value and detail message.JsonValueException
(JsonValue value, String message, Throwable cause) Constructs a new exception with the specified JSON value, detail message and cause.JsonValueException
(JsonValue value, Throwable cause) Constructs a new exception with the specified JSON value and cause.Constructor parameters in org.forgerock.json with type arguments of type JsonValueModifierConstructorDescriptionJsonValueTraverseFunction
(Function<JsonValue, ?, JsonValueException> transform) Construct the traversal function with a transformation function to apply to each array element nested object attribute value element, or primitive element. -
Uses of JsonValue in org.forgerock.tokenhandler
Methods in org.forgerock.tokenhandler that return JsonValueModifier and TypeMethodDescriptionTokenHandler.validateAndExtractState
(String token) Validates and parses the token, extracting any encapsulated state.Methods in org.forgerock.tokenhandler with parameters of type JsonValue