public abstract class AbstractJNode extends java.lang.Object implements JNode, JInstrumentalNode, java.lang.Cloneable
| Modifier and Type | Field and Description |
|---|---|
protected JInstrumentalNode |
parent
Parent node in node tree.
|
protected JNodeType |
type
Type of the node.
|
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractJNode()
Constructor.
|
protected |
AbstractJNode(JNode fParent)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
abstract JNode |
clone()
Return copy of this object, detached from node tree.
|
boolean |
equals(java.lang.Object obj) |
java.util.Set<java.lang.String> |
fieldNames()
Returns set of field names.
|
java.util.List<JNode> |
getChildren()
Returns set of all children of composite (Object or Array) node.
|
JNode |
getDocRoot()
Returns root node of the tree.
|
java.lang.String |
getKey()
Return key of JNode (JObjectNode or JArrayNode).
|
JNode |
getParent()
Return parent node of this node in node tree.
|
java.lang.String[] |
getPath()
Return path of this node.
|
JNodeType |
getType()
Returns a type of the node.
|
<V> V |
getValue()
Return value of JValueNode.
|
<T> T |
getValue(java.lang.Class<T> pType)
Return value of JValueNode.
|
int |
hashCode() |
java.util.Iterator<JNode> |
iterator()
Returns iterator over elements of composite node.
|
JNode |
setKey(java.lang.String pKey)
Set key for JNode.
|
<V> void |
setValue(V v)
Set value of V type for this node.
|
finalize, getClass, notify, notifyAll, toString, wait, wait, waitaddNode, addNode, getNode, removeNode, removeNode, toJson, toStringprotected JInstrumentalNode parent
protected JNodeType type
protected AbstractJNode()
protected AbstractJNode(JNode fParent)
fParent - reference to parent node.public JNodeType getType()
JNodepublic <V> void setValue(V v)
JNodepublic <V> V getValue()
JNodepublic <T> T getValue(java.lang.Class<T> pType)
JNodepublic JNode getParent()
JNodepublic JNode getDocRoot()
JInstrumentalNodegetDocRoot in interface JInstrumentalNodepublic java.lang.String[] getPath()
JInstrumentalNodegetPath in interface JInstrumentalNodepublic java.util.Iterator<JNode> iterator()
JNodepublic java.util.List<JNode> getChildren()
JNodegetChildren in interface JNodepublic java.util.Set<java.lang.String> fieldNames()
JInstrumentalNodefieldNames in interface JInstrumentalNodepublic abstract JNode clone()
JNodepublic java.lang.String getKey()
JInstrumentalNodegetKey in interface JInstrumentalNodepublic JNode setKey(java.lang.String pKey)
JInstrumentalNodesetKey in interface JInstrumentalNodepKey - the key to setpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Object