public class MSDNode extends AbstractTreeNode<IMSDNode> implements IMSDNode
Modifier and Type | Field and Description |
---|---|
protected static int |
cnt |
Constructor and Description |
---|
MSDNode(IMSDNode parent,
java.lang.String name) |
MSDNode(IMSDNode parent,
java.lang.String name,
java.lang.String id) |
Modifier and Type | Method and Description |
---|---|
void |
addChild(IMSDNode child) |
boolean |
equals(java.lang.Object other) |
java.util.List<IMSDNode> |
getChildren()
Get the children of the current node
|
java.lang.String |
getId() |
java.lang.String |
getName() |
IMSDNode |
getParent()
Get the parent of the current node
|
int |
hashCode() |
void |
setParent(IMSDNode parent) |
java.lang.String |
toString() |
iteratePostOrder, iteratePreOrder, visitDepthFirstOrder, visitDepthFirstOrder
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
iteratePostOrder, iteratePreOrder, visitDepthFirstOrder
public MSDNode(IMSDNode parent, java.lang.String name)
public MSDNode(IMSDNode parent, java.lang.String name, java.lang.String id)
public void setParent(IMSDNode parent)
public IMSDNode getParent()
ITreeNode
public void addChild(IMSDNode child)
public java.util.List<IMSDNode> getChildren()
ITreeNode
getChildren
in interface ITreeNode<IMSDNode>
public java.lang.String toString()
toString
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object other)
equals
in class java.lang.Object