Package | Description |
---|---|
org.forgerock.json |
Provides an API for the traversal and manipulation of JSON object model structures in Java.
|
org.forgerock.json.schema.validator.exceptions |
Schema validator exceptions.
|
org.forgerock.openig.heap |
Manages collections or "heaps" of associated objects, initialized from
declarative configuration artifacts.
|
org.forgerock.openig.util |
Miscellaneous utility classes.
|
Modifier and Type | Method and Description |
---|---|
static 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 transform
function to each element. |
static Function<JsonValue,Duration,JsonValueException> |
JsonValueFunctions.duration()
Returns the JSON string value as a
Duration . |
static <T extends Enum<T>> |
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 a
File object. |
static Function<JsonValue,JsonValue,JsonValueException> |
JsonValueFunctions.identity()
Returns an identity function that will copy the input
JsonValue . |
static Function<JsonValue,Pattern,JsonValueException> |
JsonValueFunctions.pattern()
Returns the JSON string value as a regular expression pattern.
|
static Function<JsonValue,JsonPointer,JsonValueException> |
JsonValueFunctions.pointer()
Returns the JSON string value as a JSON pointer.
|
static <V> Function<JsonValue,Set<V>,JsonValueException> |
JsonValueFunctions.setOf(Class<V> type)
Returns the JSON value as a
Set containing objects whose type
(and value) is specified by the parameter type . |
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).
|
Modifier and Type | Method and Description |
---|---|
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 transform
function to each element. |
Constructor and Description |
---|
JsonValueTraverseFunction(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.
|
Modifier and Type | Class and Description |
---|---|
class |
SchemaException
Encapsulate a general JSON validator error.
|
class |
ValidationException
Encapsulate a JSON validator error.
|
Modifier and Type | Method and Description |
---|---|
protected Function<JsonValue,JsonValue,JsonValueException> |
GenericHeaplet.evaluatedWithHeapProperties()
Returns a function that will evaluate the expression hold by a
JsonValue using the properties defined in the heap of this
Heaplet. |
protected <T> Function<JsonValue,Expression<T>,JsonValueException> |
GenericHeaplet.expression(Class<T> type)
Returns a function that will create an
Expression from the string by the JsonValue using the
bindings defined in the heap of this Heaplet as initial bindings. |
Modifier and Type | Method and Description |
---|---|
static Function<JsonValue,Bindings,JsonValueException> |
JsonValues.bindings()
Returns a function that will create some bindings based of a Map-based
JsonValue . |
static Function<JsonValue,Bindings,JsonValueException> |
JsonValues.bindings(Bindings bindings)
Returns a function that will create some bindings based of a Map-based
JsonValue . |
static Function<JsonValue,JsonValue,JsonValueException> |
JsonValues.evaluated()
Returns a function that will evaluate all String nodes.
|
static Function<JsonValue,JsonValue,JsonValueException> |
JsonValues.evaluated(Bindings bindings)
Returns a function that will evaluate all String nodes.
|
static <T> Function<JsonValue,Expression<T>,JsonValueException> |
JsonValues.expression(Class<T> type)
Returns a function for transforming JsonValues to expressions.
|
static <T> Function<JsonValue,Expression<T>,JsonValueException> |
JsonValues.expression(Class<T> type,
Bindings bindings)
Returns a function for transforming JsonValues to expressions.
|
static Function<JsonValue,String,JsonValueException> |
JsonValues.heapObjectNameOrPointer()
Returns a function that will look for the name of the object.
|
static <T> Function<JsonValue,LeftValueExpression<T>,JsonValueException> |
JsonValues.leftValueExpression(Class<T> type)
Returns a function for transforming JsonValues to left-value expressions.
|
static Function<JsonValue,JsonValue,JsonValueException> |
JsonValues.resolvedLocation()
Returns a function that will resolve the field $location.
|
static Function<JsonValue,JsonValue,JsonValueException> |
JsonValues.resolvedLocation(Bindings bindings)
Returns a function that will resolve the field $location.
|
static Function<JsonValue,JsonValue,JsonValueException> |
JsonValues.slashEnded()
Returns the JsonValue with its value ended by a slash.
|
Copyright 2011-2017 ForgeRock AS.