Package org.forgerock.json.resource
Class JsonValueFunctions
java.lang.Object
org.forgerock.json.resource.JsonValueFunctions
This class contains the utility functions to convert a
JsonValue
to CREST (json-resource) types.-
Method Summary
Modifier and TypeMethodDescriptionParses and returns the JSON string value as aQueryFilter
.Returns the JSON string value as aResourcePath
.
-
Method Details
-
resourcePath
Returns the JSON string value as aResourcePath
. If the JSON value isnull
, this method returnsnull
.- Returns:
- the
ResourcePath
represented by the JSON value string. - Throws:
JsonValueException
- if the JSON value is not a string or valid ResourcePath.
-
queryFilter
Parses and returns the JSON string value as aQueryFilter
. If the JSON value isnull
, this method returnsnull
.- Returns:
- the
QueryFilter
represented by the JSON value string. - Throws:
JsonValueException
- if the JSON value is not a stringIllegalArgumentException
- if the JSON value is not a valid QueryFilter
-