|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.github.fge.jsonschema.core.tree.BaseJsonTree
public abstract class BaseJsonTree
Base implementation of a JsonTree
| Field Summary | |
|---|---|
protected JsonNode |
baseNode
The initial node |
protected static JsonNodeFactory |
FACTORY
|
protected JsonPointer |
pointer
The current JSON Pointer into the node. |
| Constructor Summary | |
|---|---|
protected |
BaseJsonTree(JsonNode baseNode)
Protected constructor |
protected |
BaseJsonTree(JsonNode baseNode,
JsonPointer pointer)
Main constructor |
| 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 |
abstract String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.github.fge.jsonschema.core.tree.JsonTree |
|---|
append |
| Methods inherited from interface com.github.fge.jsonschema.core.util.AsJson |
|---|
asJson |
| Field Detail |
|---|
protected static final JsonNodeFactory FACTORY
protected final JsonNode baseNode
protected final JsonPointer pointer
| Constructor Detail |
|---|
protected BaseJsonTree(JsonNode baseNode)
This is equivalent to calling BaseJsonTree(JsonNode, JsonPointer) with an empty pointer.
baseNode - the base node
protected BaseJsonTree(JsonNode baseNode,
JsonPointer pointer)
baseNode - the base nodepointer - the pointer into the base node| Method Detail |
|---|
public final JsonNode getBaseNode()
SimpleTreeNote: in current Jackson versions, this node is unfortunately mutable, so be careful...
getBaseNode in interface SimpleTreepublic final JsonPointer getPointer()
SimpleTree
getPointer in interface SimpleTreepublic final JsonNode getNode()
SimpleTree
getNode in interface SimpleTreeMissingNode if there is no matching
node at that pointer)public abstract String toString()
toString in class Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||