Class JsonPointer
- java.lang.Object
-
- com.floragunn.codova.documents.pointer.JsonPointer
-
- All Implemented Interfaces:
DocPointer
public class JsonPointer extends Object implements DocPointer
-
-
Field Summary
Fields Modifier and Type Field Description static JsonPointerROOT
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddAtPointedValue(Object objectTreeNode, Object newValue)booleanequals(Object obj)DocPointergetAncestor(int generation)DocPointergetParent()ObjectgetPointedValue(Object objectTreeNode)inthashCode()booleanisRoot()static JsonPointerparse(String jsonPointer)ObjectremovePointedValue(Object objectTreeNode)voidsetPointedValue(Object objectTreeNode, Object newValue)StringtoString()JsonPointerwith(int referenceToken)JsonPointerwith(String referenceToken)-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.floragunn.codova.documents.pointer.DocPointer
getPointedValue, getPointedValueAsNode
-
-
-
-
Field Detail
-
ROOT
public static final JsonPointer ROOT
-
-
Method Detail
-
parse
public static JsonPointer parse(String jsonPointer) throws ConfigValidationException
- Throws:
ConfigValidationException
-
getPointedValue
public Object getPointedValue(Object objectTreeNode) throws PointerEvaluationException
- Specified by:
getPointedValuein interfaceDocPointer- Throws:
PointerEvaluationException
-
setPointedValue
public void setPointedValue(Object objectTreeNode, Object newValue) throws PointerEvaluationException
- Specified by:
setPointedValuein interfaceDocPointer- Throws:
PointerEvaluationException
-
addAtPointedValue
public void addAtPointedValue(Object objectTreeNode, Object newValue) throws PointerEvaluationException
- Specified by:
addAtPointedValuein interfaceDocPointer- Throws:
PointerEvaluationException
-
removePointedValue
public Object removePointedValue(Object objectTreeNode) throws PointerEvaluationException
- Specified by:
removePointedValuein interfaceDocPointer- Throws:
PointerEvaluationException
-
with
public JsonPointer with(String referenceToken)
-
with
public JsonPointer with(int referenceToken)
-
isRoot
public boolean isRoot()
-
getParent
public DocPointer getParent()
- Specified by:
getParentin interfaceDocPointer
-
getAncestor
public DocPointer getAncestor(int generation)
-
-