Constructor and Description |
---|
MockTreeNode(java.lang.String str) |
MockTreeNode(java.lang.String str,
TreeNode... child) |
Modifier and Type | Method and Description |
---|---|
void |
addChild(MockTreeNode node) |
int |
compareTo(java.lang.Object o) |
boolean |
equals(java.lang.Object o) |
java.lang.String |
getId()
Returns id of the current node
|
java.lang.String |
getName() |
java.util.Collection<TreeNode> |
getTreeChildren()
Returns a Collection of TreeNode children
of the current node
|
TreeNode |
getTreeParent()
Returns parent of the current node
|
TreeNode |
getTreeRoot()
Returns the root of the current node
|
boolean |
isTreeLeaf()
Returns boolean true if the TreeNode is a leaf
|
boolean |
isTreeNode()
Returns boolean true if the TreeNode is a node
|
java.lang.String |
toString() |
public TreeNode parent
public java.lang.String str
public MockTreeNode(java.lang.String str)
public MockTreeNode(java.lang.String str, TreeNode... child)
public void addChild(MockTreeNode node)
public java.lang.String getName()
public java.lang.String getId()
TreeNode
public java.util.Collection<TreeNode> getTreeChildren()
TreeNode
getTreeChildren
in interface TreeNode
public TreeNode getTreeParent()
TreeNode
getTreeParent
in interface TreeNode
public boolean isTreeLeaf()
TreeNode
isTreeLeaf
in interface TreeNode
public boolean isTreeNode()
TreeNode
isTreeNode
in interface TreeNode
public java.lang.String toString()
toString
in class java.lang.Object
public int compareTo(java.lang.Object o)
compareTo
in interface java.lang.Comparable
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public TreeNode getTreeRoot()
TreeNode
getTreeRoot
in interface TreeNode
Copyright © 2001-2018 Jalios SA. All Rights Reserved.