public class ObjectTreeModel.ObjectInspectorNode
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected java.util.List |
children
The children of this node (cached)
|
protected java.util.List |
fields
The list of fields of the represented object
|
protected java.lang.String |
name
The name for this node e.g.
|
protected java.lang.String |
namePrefix
A prefix to display with name, e.g.
|
protected java.lang.Object |
nodeObject
The object represented by this node
|
protected int |
nodeUUID
A unique id for this node
|
protected java.lang.Object |
parent
The parent node
|
protected java.lang.Object[] |
path
The path from the root node to this node.
|
protected java.lang.Class |
type
The Class type for this node
|
Constructor and Description |
---|
ObjectInspectorNode(java.lang.Object parent,
java.lang.Class type,
java.lang.String name,
java.lang.Object object)
Create a ObjectInspectorNode
|
ObjectInspectorNode(java.lang.Object parent,
java.lang.Class type,
java.lang.String namePrefix,
java.lang.String name,
java.lang.Object object)
Create a ObjectInspectorNode
|
Modifier and Type | Method and Description |
---|---|
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.util.List |
getFields()
Generate and return a List of all fields for the
object represented by this node.
|
protected java.lang.Object |
getNodeObject()
Access the object represented by this node
|
java.lang.Object[] |
getPath()
Get the path of this node (inclusive) starting from the root node.
|
int |
hashCode() |
protected boolean |
isInpsectionRootNode() |
java.lang.String |
toString()
Get a string representation of this node
|
protected java.lang.Class type
protected java.lang.Object nodeObject
protected java.util.List fields
protected java.lang.String name
protected java.lang.String namePrefix
protected java.lang.Object parent
protected java.util.List children
protected java.lang.Object[] path
protected int nodeUUID
public ObjectInspectorNode(java.lang.Object parent, java.lang.Class type, java.lang.String name, java.lang.Object object)
type
- Class type for this object (e.g. myObject.class)name
- for this nodeobject
- to inspectpublic ObjectInspectorNode(java.lang.Object parent, java.lang.Class type, java.lang.String namePrefix, java.lang.String name, java.lang.Object object)
type
- Class type for this object (e.g. myObject.class)name
- for this nodeobject
- to inspectpublic java.util.List getFields()
public java.util.List getChildren()
public java.lang.Object[] getPath()
protected java.lang.Object getNodeObject()
protected boolean isInpsectionRootNode()
protected 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.Object
public int hashCode()
public java.lang.String toString()
toString
in class java.lang.Object