Package org.forgerock.json.resource
Class JsonValueFunctions
- java.lang.Object
 - 
- org.forgerock.json.resource.JsonValueFunctions
 
 
- 
- 
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Function<JsonValue,QueryFilter<JsonPointer>,JsonValueException>queryFilter()Parses and returns the JSON string value as aQueryFilter.static Function<JsonValue,ResourcePath,JsonValueException>resourcePath()Returns the JSON string value as aResourcePath. 
 - 
 
- 
- 
Method Detail
- 
resourcePath
public static Function<JsonValue,ResourcePath,JsonValueException> resourcePath()
Returns the JSON string value as aResourcePath. If the JSON value isnull, this method returnsnull.- Returns:
 - the 
ResourcePathrepresented by the JSON value string. - Throws:
 JsonValueException- if the JSON value is not a string or valid ResourcePath.
 
- 
queryFilter
public static Function<JsonValue,QueryFilter<JsonPointer>,JsonValueException> queryFilter()
Parses and returns the JSON string value as aQueryFilter. If the JSON value isnull, this method returnsnull.- Returns:
 - the 
QueryFilterrepresented by the JSON value string. - Throws:
 JsonValueException- if the JSON value is not a stringIllegalArgumentException- if the JSON value is not a valid QueryFilter
 
 - 
 
 -