public class ReferenceUtil extends Object
Constructor and Description |
---|
ReferenceUtil() |
Modifier and Type | Method and Description |
---|---|
static boolean |
canResolveRef(String $ref,
Node from)
Returns true only if the given reference can be resolved relative to the given document.
|
static boolean |
hasValue(Object value)
Check if the property value exists (is not undefined and is not null).
|
static Object |
resolveFragmentFromJS(Object contextNode,
String fragment)
Resolves the given $ref fragment (e.g.
|
static Node |
resolveNodeRef(Node node)
Resolves a node reference.
|
static Node |
resolveNodeRef(Node node,
ResolverOptions options)
Resolves a node reference.
|
static Node |
resolveRef(String $ref,
Node from)
Resolves a reference from a relative position in the data model.
|
static Node |
resolveRef(String $ref,
Node from,
ResolverOptions options)
Resolves a reference from a relative position in the data model.
|
public static Node resolveNodeRef(Node node)
node
- public static Node resolveNodeRef(Node node, ResolverOptions options)
node
- options
- public static Node resolveRef(String $ref, Node from)
$ref
- from
- public static Node resolveRef(String $ref, Node from, ResolverOptions options)
$ref
- from
- options
- public static boolean canResolveRef(String $ref, Node from)
$ref
- from
- public static boolean hasValue(Object value)
value
- public static Object resolveFragmentFromJS(Object contextNode, String fragment)
contextNode
- fragment
- Copyright © 2020 Red Hat. All rights reserved.