public final class InlineSchemaTree extends BaseSchemaTree
baseNode, currentRef, loadingRef, node, pointer, startingRef, valid
Constructor and Description |
---|
InlineSchemaTree(JsonNode baseNode) |
InlineSchemaTree(JsonRef loadingRef,
JsonNode baseNode) |
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
|
JsonPointer |
matchingPointer(JsonRef ref)
Return a matching pointer in this tree for a fully resolved reference
|
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
|
asJson, getBaseNode, getContext, getLoadingRef, getNode, getPointer, idFromNode, isValid, resolve, toString
public InlineSchemaTree(JsonNode baseNode)
public SchemaTree append(JsonPointer pointer)
SchemaTree
pointer
- the pointer to appendJsonPointer.append(JsonPointer)
public SchemaTree setPointer(JsonPointer pointer)
SchemaTree
pointer
- the pointerpublic boolean containsRef(JsonRef ref)
SchemaTree
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 referenceSchemaTree.resolve(JsonRef)
public JsonPointer matchingPointer(JsonRef ref)
SchemaTree
This must be called only when SchemaTree.containsRef(JsonRef)
returns true
. Otherwise, its result is undefined.
ref
- the referencenull
if not foundpublic SchemaTree withValidationStatus(boolean valid)
SchemaTree
valid
- the new validation statusCopyright © 2013. All Rights Reserved.