Package jadex.rules.tools.stateviewer
Class OAVTreeModel.ObjectNode
- java.lang.Object
-
- jadex.rules.tools.stateviewer.OAVTreeModel.ObjectNode
-
- Enclosing class:
- OAVTreeModel
public class OAVTreeModel.ObjectNode extends java.lang.Object
A node representing an object.
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.List
children
The children.protected int
nodeUUID
A unique id for this nodeprotected 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 Summary
Constructors Constructor Description ObjectNode(java.lang.Object parent, java.lang.Object object)
Create a new object node.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Field Detail
-
object
protected java.lang.Object object
The object.
-
parent
protected java.lang.Object parent
The parent node (attribute or root node).
-
children
protected java.util.List children
The children.
-
path
protected java.lang.Object[] path
The path from the root node to this node.
-
nodeUUID
protected int nodeUUID
A unique id for this node
-
-
Method Detail
-
getChildren
public java.util.List getChildren()
Get the children of this node.
-
getPath
public java.lang.Object[] getPath()
Get the path of this node (inclusive) starting from the root node.
-
drop
public void drop()
Unregister a node and its subnodes.
-
toString
public java.lang.String toString()
Create a string representation of the attribute node.- Overrides:
toString
in classjava.lang.Object
- Returns:
- A string representation of the attribute node.
-
equals
protected boolean equals(java.lang.Object obj, boolean checkUUID)
This method can be used to do a sematically equals check. E.g. check only the fields, not the unique identifier.- Parameters:
obj
- Object to test for equalscheckUUID
- flag to check the unique Identifier for the node.
true=do a compete equals check
false=do a sematically equals check
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-