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:
Constructor Summary
Constructor and Description |
---|
TreeNodeData(int UID,java.lang.String statsName,java.lang.String statsType)
Constructor
|
Method Summary
Modifier and Type | Method and Description |
---|---|
|
dump()
Recursively prints the tree to System.out.
|
|
dump(java.io.PrintStream out)
Recursively prints the tree to the specified PrintStream
|
|
dump(java.io.PrintStream out,java.lang.String indent)
This protected method is used to recursively dump the contents of the this class
|
getChild(int i)
Returns the node at the given index.
|
|
|
getLevel()
Returns for the level
|
|
getNumChildren()
Return the number of children this node has.
|
|
getStatsName()
Return the statsName for this node.
|
|
getStatsType()
Return the statsType for this node.
|
|
getUID()
Return the identifier for this node.
|
|
setChildren(java.util.ArrayList children)
Adds a child to the node
|
|
setLevel(int i)
Sets the level
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
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
-