public interface SchemaTree extends SimpleTree
Modifier and Type | Method and Description |
---|---|
SchemaTree |
append(JsonPointer pointer)
Relocate the tree relatively to the current tree's pointer
|
boolean |
containsRef(JsonRef ref)
Tell whether a JSON Reference is contained within this schema tree
|
JsonRef |
getContext()
Get the current resolution context
|
JsonRef |
getLoadingRef()
Get the loading URI for that schema
|
boolean |
isValid()
Tell whether this schema has been deemed valid by the syntax processor
|
JsonPointer |
matchingPointer(JsonRef ref)
Return a matching pointer in this tree for a fully resolved reference
|
JsonRef |
resolve(JsonRef other)
Resolve a JSON Reference against the current resolution context
|
SchemaTree |
setPointer(JsonPointer pointer)
Relocate the tree with an absolute pointer
|
SchemaTree |
withValidationStatus(boolean valid)
Return a new schema tree with a new validation status
|
getBaseNode, getNode, getPointer
SchemaTree append(JsonPointer pointer)
pointer
- the pointer to appendJsonPointer.append(JsonPointer)
SchemaTree setPointer(JsonPointer pointer)
pointer
- the pointerJsonRef resolve(JsonRef other)
other
- the JSON Reference to resolveJsonRef.resolve(JsonRef)
boolean containsRef(JsonRef ref)
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.
ref
- the target referenceresolve(JsonRef)
JsonPointer matchingPointer(JsonRef ref)
This must be called only when containsRef(JsonRef)
returns true
. Otherwise, its result is undefined.
ref
- the referencenull
if not foundJsonRef getLoadingRef()
JsonRef
boolean isValid()
SchemaTree withValidationStatus(boolean valid)
valid
- the new validation statusCopyright © 2013. All Rights Reserved.