com.ibm.ws.tpv.engine.buffer
Class TreeNodeData
- java.lang.Object
-
- com.ibm.ws.tpv.engine.buffer.TreeNodeData
-
- All Implemented Interfaces:
- java.io.Serializable
public class TreeNodeData extends java.lang.Object implements java.io.Serializable- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor and Description TreeNodeData(int UID, java.lang.String statsName, java.lang.String statsType)Constructor
-
Method Summary
Methods Modifier and Type Method and Description voiddump()Recursively prints the tree to System.out.voiddump(java.io.PrintStream out)Recursively prints the tree to the specified PrintStreamvoiddump(java.io.PrintStream out, java.lang.String indent)This protected method is used to recursively dump the contents of the this classTreeNodeDatagetChild(int i)Returns the node at the given index.intgetLevel()Returns for the levelintgetNumChildren()Return the number of children this node has.java.lang.StringgetStatsName()Return the statsName for this node.java.lang.StringgetStatsType()Return the statsType for this node.intgetUID()Return the identifier for this node.voidsetChildren(java.util.ArrayList children)Adds a child to the nodevoidsetLevel(int i)Sets the level
-
-
-
Constructor Detail
-
TreeNodeData
public TreeNodeData(int UID, java.lang.String statsName, java.lang.String statsType)Constructor
-
-
Method Detail
-
setChildren
public void setChildren(java.util.ArrayList children)
Adds a child to the node- Parameters:
child-
-
getNumChildren
public int getNumChildren()
Return the number of children this node has.- Returns:
- int Number of children
-
getChild
public TreeNodeData getChild(int i)
Returns the node at the given index.- Parameters:
i- The node index to return- Returns:
- TreeNodeData The child
-
getUID
public int getUID()
Return the identifier for this node.- Returns:
- String The identifier
-
getStatsName
public java.lang.String getStatsName()
Return the statsName for this node.- Returns:
- String
-
getStatsType
public java.lang.String getStatsType()
Return the statsType for this node.- Returns:
- String
-
getLevel
public int getLevel()
Returns for the level- Returns:
- int
-
setLevel
public void setLevel(int i)
Sets the level- Parameters:
i-
-
dump
public void dump()
Recursively prints the tree to System.out.
-
dump
public void dump(java.io.PrintStream out)
Recursively prints the tree to the specified PrintStream- Parameters:
out-
-
dump
public void dump(java.io.PrintStream out, java.lang.String indent)This protected method is used to recursively dump the contents of the this class- Parameters:
out-indent-
-
-