com.github.fge.jsonschema.core.tree
Class SimpleJsonTree

java.lang.Object
  extended by com.github.fge.jsonschema.core.tree.BaseJsonTree
      extended by com.github.fge.jsonschema.core.tree.SimpleJsonTree
All Implemented Interfaces:
JsonTree, SimpleTree, AsJson

@Immutable
public final class SimpleJsonTree
extends BaseJsonTree

A simple JsonTree


Field Summary
 
Fields inherited from class com.github.fge.jsonschema.core.tree.BaseJsonTree
baseNode, FACTORY, pointer
 
Constructor Summary
SimpleJsonTree(JsonNode baseNode)
           
 
Method Summary
 SimpleJsonTree append(JsonPointer pointer)
          Append a JSON pointer to that tree and return a new tree
 JsonNode asJson()
          Return a JSON representation of this object
 String toString()
           
 
Methods inherited from class com.github.fge.jsonschema.core.tree.BaseJsonTree
getBaseNode, getNode, getPointer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SimpleJsonTree

public SimpleJsonTree(JsonNode baseNode)
Method Detail

append

public SimpleJsonTree append(JsonPointer pointer)
Description copied from interface: JsonTree
Append a JSON pointer to that tree and return a new tree

Parameters:
pointer - the pointer
Returns:
a new tree, with the pointer appended to the current pointer

asJson

public JsonNode asJson()
Description copied from interface: AsJson
Return a JSON representation of this object

Returns:
a JsonNode

toString

public String toString()
Specified by:
toString in class BaseJsonTree