All Packages Class Hierarchy This Package Previous Next Index
Class cpt.Node
java.lang.Object
|
+----cpt.Node
- public class Node
- extends Object
A class to facilitate displaying and handling hierarchy
nodes.
-
Node()
-
-
Node(Long, String)
-
-
getDimensionID()
- Returns the id of dimension to which the node belongs.
-
getID()
- Returns the id of the node.
-
getName()
- Returns the name of the node.
-
getParent()
- Returns the parent Node.
-
getPathString()
- Returns the path of the node as a string.
-
getSons()
- Returns the list of the son Nodes.
-
main(String[])
- Tests the class.
Node
public Node()
Node
public Node(Long ID,
String name)
getName
public String getName()
- Returns the name of the node.
- Returns:
- a string containing the name of the node
getID
public Long getID()
- Returns the id of the node.
- Returns:
- a long integer containing the node id.
getDimensionID
public Long getDimensionID()
- Returns the id of dimension to which the node belongs.
- Returns:
- a long integer containing the dimension id.
getPathString
public String getPathString()
- Returns the path of the node as a string.
- Returns:
- a string containing the node path.
getSons
public Vector getSons()
- Returns the list of the son Nodes. Can be
used in the UI for expanding a tree branch etc.
- Returns:
- a vector of Nodes.
getParent
public Node getParent()
- Returns the parent Node.
- Returns:
- a node.
main
public static void main(String args[])
- Tests the class.
All Packages Class Hierarchy This Package Previous Next Index