public class OAVTreeModel.ObjectNode
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected java.util.List |
children
The children.
|
protected int |
nodeUUID
A unique id for this node
|
protected java.lang.Object |
object
The object.
|
protected java.lang.Object |
parent
The parent node (attribute or root node).
|
protected java.lang.Object[] |
path
The path from the root node to this node.
|
| Constructor and Description |
|---|
ObjectNode(java.lang.Object parent,
java.lang.Object object)
Create a new object node.
|
| Modifier and Type | Method and Description |
|---|---|
void |
drop()
Unregister a node and its subnodes.
|
boolean |
equals(java.lang.Object obj) |
protected boolean |
equals(java.lang.Object obj,
boolean checkUUID)
This method can be used to do a sematically equals check.
|
java.util.List |
getChildren()
Get the children of this node.
|
java.lang.Object[] |
getPath()
Get the path of this node (inclusive) starting from the root node.
|
int |
hashCode() |
java.lang.String |
toString()
Create a string representation of the attribute node.
|
protected java.lang.Object object
protected java.lang.Object parent
protected java.util.List children
protected java.lang.Object[] path
protected int nodeUUID
public ObjectNode(java.lang.Object parent,
java.lang.Object object)
parent - The parent node (if not root node).object - The object.attribute - The attribute.public java.util.List getChildren()
public java.lang.Object[] getPath()
public void drop()
public java.lang.String toString()
toString in class java.lang.Objectprotected boolean equals(java.lang.Object obj,
boolean checkUUID)
obj - Object to test for equalscheckUUID - flag to check the unique Identifier for the node. true=do a compete equals checkfalse=do a sematically equals checkpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object