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, startingRefbaseNode, 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, toStringgetCurrentNode, getCurrentPointer, popNode, popPointer, pushNode, pushPointerpublic CanonicalSchemaTree(JsonNode baseNode)
public boolean containsRef(JsonRef ref)
JsonSchemaTreeThis 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 JsonSchemaTreeref - the target referenceJsonSchemaTree.resolve(JsonRef)public JsonPointer matchingPointer(JsonRef ref)
Here, it is easy enough:
MissingNode.matchingPointer in class JsonSchemaTreeref - the referencenull if not foundCopyright © 2013. All Rights Reserved.