| Constructor and Description |
|---|
Ref() |
| Modifier and Type | Method and Description |
|---|---|
abstract T |
deref(ComponentsObject components)
Dereferences the value stored in a ref.
|
abstract java.util.Optional<java.lang.String> |
getPointer()
Gets the JSON pointer to the component.
|
static <T extends ToNode> |
local(T value)
Creates a local ref to a value that is inlined.
|
static <T extends ToNode> |
remote(java.lang.String pointer)
Creates a remote reference using a JSON pointer.
|
public abstract T deref(ComponentsObject components)
components - Components object to query for pointers.public abstract java.util.Optional<java.lang.String> getPointer()
The return value is empty if this is an inline component.
public static <T extends ToNode> Ref<T> remote(java.lang.String pointer)
T - Type of value being created.pointer - Pointer to the actual value.