public final class CanonicalSchemaTree extends JsonSchemaTree
JsonSchemaTree
using canonical dereferencing
When using canonical dereferencing, a (fully resolved) JSON Reference is contained within the tree if and only if:
currentRef, loadingRef, refStack, startingRef
baseNode, currentNode, currentPointer, FACTORY, nodeStack, pointerStack
Constructor and Description |
---|
CanonicalSchemaTree(JsonNode baseNode) |
CanonicalSchemaTree(JsonRef loadingRef,
JsonNode baseNode) |
Modifier and Type | Method and Description |
---|---|
boolean |
containsRef(JsonRef ref)
Tell whether a JSON Reference is contained within this schema tree
|
JsonPointer |
matchingPointer(JsonRef ref)
Return a matching pointer in this tree for a fully resolved reference
|
append, asJson, copy, equals, getCurrentRef, getLoadingRef, hashCode, idFromNode, pop, resolve, setPointer, toString
getCurrentNode, getCurrentPointer, popNode, popPointer, pushNode, pushPointer
public CanonicalSchemaTree(JsonNode baseNode)
public boolean containsRef(JsonRef ref)
JsonSchemaTree
This method will return true
if the caller can attempt
to retrieve the JSON value addressed by this reference from the schema
tree directly.
Note that the reference must be fully resolved for this method to work.
containsRef
in class JsonSchemaTree
ref
- the target referenceJsonSchemaTree.resolve(JsonRef)
public JsonPointer matchingPointer(JsonRef ref)
Here, it is easy enough:
MissingNode
.matchingPointer
in class JsonSchemaTree
ref
- the referencenull
if not foundCopyright © 2013. All Rights Reserved.