com.github.fge.jsonschema.core.tree
Interface SimpleTree

All Superinterfaces:
AsJson
All Known Subinterfaces:
JsonTree, SchemaTree
All Known Implementing Classes:
BaseJsonTree, BaseSchemaTree, CanonicalSchemaTree, InlineSchemaTree, SimpleJsonTree

public interface SimpleTree
extends AsJson

A JSON value decorated with JSON Pointer information

This is a JsonNode with an internal path represented as a JsonPointer. The current path and node are retrievable. If the current pointer points to a non existent path in the document, the retrieved node is a MissingNode.

See Also:
JsonPointer

Method Summary
 JsonNode getBaseNode()
          Return the node this tree was created with
 JsonNode getNode()
          Get the node at the current path
 JsonPointer getPointer()
          Get the current path into the document
 
Methods inherited from interface com.github.fge.jsonschema.core.util.AsJson
asJson
 

Method Detail

getBaseNode

JsonNode getBaseNode()
Return the node this tree was created with

Note: in current Jackson versions, this node is unfortunately mutable, so be careful...

Returns:
the node

getPointer

JsonPointer getPointer()
Get the current path into the document

Returns:
the path as a JSON Pointer

getNode

JsonNode getNode()
Get the node at the current path

Returns:
the matching node (a MissingNode if there is no matching node at that pointer)