Package jadex.rules.tools.stateviewer
Class OAVTreeModel.ObjectInspectorNode
- java.lang.Object
- 
- jadex.rules.tools.stateviewer.OAVTreeModel.ObjectInspectorNode
 
- 
- Enclosing class:
- OAVTreeModel
 
 public class OAVTreeModel.ObjectInspectorNode extends java.lang.ObjectTreeModel node for java object inspection
- 
- 
Field SummaryFields Modifier and Type Field Description protected java.util.ListchildrenThe children of this node (cached)protected java.util.ListfieldsThe list of fields of the represented objectprotected java.lang.StringnameThe name for this node e.g.protected java.lang.StringnamePrefixA prefix to display with name, e.g.protected java.lang.ObjectnodeObjectThe object represented by this nodeprotected intnodeUUIDA unique id for this nodeprotected java.lang.ObjectparentThe parent nodeprotected java.lang.Object[]pathThe path from the root node to this node.protected java.lang.ClasstypeThe Class type for this node
 - 
Constructor SummaryConstructors Constructor Description ObjectInspectorNode(java.lang.Object parent, java.lang.Class type, java.lang.String name, java.lang.Object object)Create a ObjectInspectorNodeObjectInspectorNode(java.lang.Object parent, java.lang.Class type, java.lang.String namePrefix, java.lang.String name, java.lang.Object object)Create a ObjectInspectorNode
 - 
Method SummaryAll 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)This method can be used to do a sematically equals check.java.util.ListgetChildren()Get the children of this node.java.util.ListgetFields()Generate and return a List of all fields for the object represented by this node.protected java.lang.ObjectgetNodeObject()Access the object represented by this nodejava.lang.Object[]getPath()Get the path of this node (inclusive) starting from the root node.inthashCode()protected booleanisInpsectionRootNode()java.lang.StringtoString()Get a string representation of this node
 
- 
- 
- 
Field Detail- 
typeprotected java.lang.Class type The Class type for this node
 - 
nodeObjectprotected java.lang.Object nodeObject The object represented by this node
 - 
fieldsprotected java.util.List fields The list of fields of the represented object
 - 
nameprotected java.lang.String name The name for this node e.g. the objects name
 - 
namePrefixprotected java.lang.String namePrefix A prefix to display with name, e.g. for arrays "[index]"
 - 
parentprotected java.lang.Object parent The parent node
 - 
childrenprotected java.util.List children The children of this node (cached)
 - 
pathprotected java.lang.Object[] path The path from the root node to this node.
 - 
nodeUUIDprotected int nodeUUID A unique id for this node
 
- 
 - 
Constructor Detail- 
ObjectInspectorNodepublic ObjectInspectorNode(java.lang.Object parent, java.lang.Class type, java.lang.String name, java.lang.Object object)Create a ObjectInspectorNode- Parameters:
- type- Class type for this object (e.g. myObject.class)
- name- for this node
- object- to inspect
 
 - 
ObjectInspectorNodepublic ObjectInspectorNode(java.lang.Object parent, java.lang.Class type, java.lang.String namePrefix, java.lang.String name, java.lang.Object object)Create a ObjectInspectorNode- Parameters:
- type- Class type for this object (e.g. myObject.class)
- name- for this node
- object- to inspect
 
 
- 
 - 
Method Detail- 
getFieldspublic java.util.List getFields() Generate and return a List of all fields for the object represented by this node.- Returns:
- List of accessible node object fields
 
 - 
getChildrenpublic java.util.List getChildren() Get the children of this node.
 - 
getPathpublic java.lang.Object[] getPath() Get the path of this node (inclusive) starting from the root node.
 - 
droppublic void drop() Unregister a node and its subnodes.
 - 
getNodeObjectprotected java.lang.Object getNodeObject() Access the object represented by this node- Returns:
- the nodeObject Attribute
 
 - 
isInpsectionRootNodeprotected boolean isInpsectionRootNode() 
 - 
equalsprotected 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 equals
- checkUUID- flag to check the unique Identifier for the node.
 true=do a compete equals check
 false=do a sematically equals check
 
 - 
equalspublic boolean equals(java.lang.Object obj) - Overrides:
- equalsin class- java.lang.Object
 
 - 
hashCodepublic int hashCode() 
 - 
toStringpublic java.lang.String toString() Get a string representation of this node- Overrides:
- toStringin class- java.lang.Object
 
 
- 
 
-