public class ObjectTreeNode<OType> extends AbstractTreeNode<ObjectTreeNode<OType>> implements ITreeNode<ObjectTreeNode<OType>>
Constructor and Description |
---|
ObjectTreeNode(ObjectTreeNode<OType> parent) |
ObjectTreeNode(ObjectTreeNode<OType> parent,
OType o) |
Modifier and Type | Method and Description |
---|---|
void |
addChild(ObjectTreeNode<OType> o) |
java.util.List<ObjectTreeNode<OType>> |
getChildren()
Get the children of the current node
|
OType |
getObject() |
ObjectTreeNode<OType> |
getParent()
Get the parent of the current node
|
void |
setObject(OType o) |
iteratePostOrder, iteratePreOrder, visitDepthFirstOrder, visitDepthFirstOrder
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
iteratePostOrder, iteratePreOrder, visitDepthFirstOrder
public ObjectTreeNode(ObjectTreeNode<OType> parent)
public ObjectTreeNode(ObjectTreeNode<OType> parent, OType o)
public void setObject(OType o)
public OType getObject()
public void addChild(ObjectTreeNode<OType> o)
public java.util.List<ObjectTreeNode<OType>> getChildren()
ITreeNode
getChildren
in interface ITreeNode<ObjectTreeNode<OType>>
public ObjectTreeNode<OType> getParent()
ITreeNode
getParent
in interface ITreeNode<ObjectTreeNode<OType>>