-
- All Implemented Interfaces:
public final class JSONReferenceA JSON Reference - a combination of a JSON Pointer and the JSON value to which it refers. This allows for a single object to be used (and passed as a parameter or a return value between functions) in the common case of a pointer being employed to navigate a tree of JSON values.
-
-
Constructor Summary
Constructors Constructor Description JSONReference(JSONValue base)
-
Method Summary
Modifier and Type Method Description final JSONPointergetPointer()final JSONValuegetBase()final BooleangetValid()final JSONValuegetValue()final BooleanhasChild(String name)final BooleanhasChild(Integer index)final JSONReferenceparent()final JSONReferencechild(String name)final JSONReferencechild(Integer index)final JSONReferencelocateChild(JSONValue target)Booleanequals(Object other)IntegerhashCode()StringtoString()-
-
Method Detail
-
getPointer
final JSONPointer getPointer()
-
getBase
final JSONValue getBase()
-
getValue
final JSONValue getValue()
-
parent
final JSONReference parent()
-
child
final JSONReference child(String name)
-
child
final JSONReference child(Integer index)
-
locateChild
final JSONReference locateChild(JSONValue target)
-
-
-
-