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.


Constructor Index

 o Node()
 o Node(Long, String)

Method Index

 o getDimensionID()
Returns the id of dimension to which the node belongs.
 o getID()
Returns the id of the node.
 o getName()
Returns the name of the node.
 o getParent()
Returns the parent Node.
 o getPathString()
Returns the path of the node as a string.
 o getSons()
Returns the list of the son Nodes.
 o main(String[])
Tests the class.

Constructors

 o Node

 public Node()

 o Node

 public Node(Long ID,

             String name)

Methods

 o getName

 public String getName()

Returns the name of the node.

Returns:
a string containing the name of the node
 o getID

 public Long getID()

Returns the id of the node.

Returns:
a long integer containing the node id.
 o getDimensionID

 public Long getDimensionID()

Returns the id of dimension to which the node belongs.

Returns:
a long integer containing the dimension id.
 o getPathString

 public String getPathString()

Returns the path of the node as a string.

Returns:
a string containing the node path.
 o 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.
 o getParent

 public Node getParent()

Returns the parent Node.

Returns:
a node.
 o main

 public static void main(String args[])

Tests the class.



All Packages  Class Hierarchy  This Package  Previous  Next  Index