Package jadex.rules.tools.stateviewer
Class OAVTreeModel.AttributeNode
- java.lang.Object
-
- jadex.rules.tools.stateviewer.OAVTreeModel.AttributeNode
-
- Enclosing class:
- OAVTreeModel
public class OAVTreeModel.AttributeNode extends java.lang.ObjectA node representing an attribute value.
-
-
Field Summary
Fields Modifier and Type Field Description protected OAVAttributeTypeattributeThe attribute.protected java.util.ListchildrenThe children.protected intnodeUUIDA unique id for this nodeprotected OAVTreeModel.ObjectNodeparentThe object node.protected java.lang.Object[]pathThe path from the root node to this node.
-
Constructor Summary
Constructors Constructor Description AttributeNode(OAVTreeModel.ObjectNode parent, OAVAttributeType attribute)Create a new attribute node.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddrop()Unregister a node and its subnodes.booleanequals(java.lang.Object obj)protected booleanequals(java.lang.Object obj, boolean checkUUID)java.util.ListgetChildren()Get the children of this node.java.lang.Object[]getPath()Get the path of this node (inclusive) starting from the root node.inthashCode()java.lang.StringtoString()Create a string representation of the attribute node.
-
-
-
Field Detail
-
attribute
protected OAVAttributeType attribute
The attribute.
-
parent
protected OAVTreeModel.ObjectNode parent
The object 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
-
-
Constructor Detail
-
AttributeNode
public AttributeNode(OAVTreeModel.ObjectNode parent, OAVAttributeType attribute)
Create a new attribute node.- Parameters:
parent- The parent.attribute- The attribute.
-
-
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:
toStringin classjava.lang.Object- Returns:
- A string representation of the attribute node.
-
equals
protected boolean equals(java.lang.Object obj, boolean checkUUID)
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-