public class JsonReference extends Object
| Constructor and Description |
|---|
JsonReference()
Constructs an empty JSON Reference object.
|
| Modifier and Type | Method and Description |
|---|---|
JsonReference |
fromJsonValue(JsonValue value)
Initializes this object from a
$ref JSON object value. |
URI |
getURI()
Returns the URI of the value being referenced.
|
static boolean |
isJsonReference(JsonValue value)
Returns
true if the specified JSON value contains a valid $ref
JSON object structure. |
JsonReference |
setURI(URI uri)
Sets the URI of the value being referenced.
|
JsonValue |
toJsonValue()
Returns this object as a
$ref JSON object value. |
public static boolean isJsonReference(JsonValue value)
true if the specified JSON value contains a valid $ref
JSON object structure.
Note: This method does not suppress transformers in the specified value. Consequently,
this method can return false if members are transformed, for example if a
JsonReferenceTransformer transforms the value as it is being inspected.value - the value to test for a JSON Reference.true if the value is a $ref JSON Reference.public URI getURI()
public JsonReference setURI(URI uri)
uri - the URI of the value being referenced.public JsonReference fromJsonValue(JsonValue value) throws JsonValueException
$ref JSON object value.value - a JSON value containing a $ref member.JsonValueException - if the specified value is malformed.NullPointerException - if value is null.public JsonValue toJsonValue()
$ref JSON object value.Copyright © 2025 Open Identity Platform Community. All rights reserved.