Package | Description |
---|---|
org.forgerock.config.util |
Contains utility classes for commons config.
|
org.forgerock.json |
Provides an API for the traversal and manipulation of JSON object model structures in Java.
|
org.forgerock.json.resource |
Classes and interfaces for core types including connections, request
handlers, resources, and their exceptions.
|
org.forgerock.json.schema.validator.exceptions |
Schema validator exceptions.
|
Modifier and Type | Method and Description |
---|---|
JsonValuePropertyEvaluator.CoercionFunctionSpec |
JsonValuePropertyEvaluator.CoercionFunctionSpecBuilder.using(Function<JsonValue,Object,JsonValueException> function)
Specify the function that will convert the matched JSON into an object.
|
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,Instant,JsonValueException> |
JsonValueFunctions.instant()
|
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 | Method and Description |
---|---|
static Function<JsonValue,ResourcePath,JsonValueException> |
JsonValueFunctions.resourcePath()
Returns the JSON string value as a
ResourcePath . |
Modifier and Type | Class and Description |
---|---|
class |
SchemaException
Encapsulate a general JSON validator error.
|
class |
ValidationException
Encapsulate a JSON validator error.
|
Copyright 2010-2018 ForgeRock AS.