Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

com::cosylab::cdb::jdal::DALNode Class Reference

Collaboration diagram for com::cosylab::cdb::jdal::DALNode:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 DALNode (String name, DALNode parent)
String list (String path)
String getCurl ()
void print (int level)
DALNode getCurlNode ()
DALNode[] getChilds ()
boolean isSimple ()

Static Public Member Functions

DALNode getRoot (String filePath)

Protected Member Functions

DALNode findNode (String path)
void loadNodes (String filePath)
void addNode (String nodePath)
DALNode getNode (String nodeName)
void getNodes (List list)

Protected Attributes

String name
ArrayList childs
DALNode parent

Constructor & Destructor Documentation

com::cosylab::cdb::jdal::DALNode::DALNode String  name,
DALNode  parent
[inline]
 

Constructs this object.

Parameters:
name The name of this node
parent parent node for this node


Member Function Documentation

void com::cosylab::cdb::jdal::DALNode::addNode String  nodePath  )  [inline, protected]
 

Adds a child node to this node at the proper place given by nodePath The nodePath can be delimited by File.separatorChar.

Parameters:
nodePath The path of the node i.e. MACI/Managers/Manager/Manager.xml

DALNode com::cosylab::cdb::jdal::DALNode::findNode String  path  )  [inline, protected]
 

Returns the node for the given path or null if the path does not existis under this tree.

Parameters:
path The path to find i.e. MACI/Managers
Returns:
The child node for path or null if it doesn't exist

DALNode [] com::cosylab::cdb::jdal::DALNode::getChilds  )  [inline]
 

Returns:

String com::cosylab::cdb::jdal::DALNode::getCurl  )  [inline]
 

DALNode com::cosylab::cdb::jdal::DALNode::getCurlNode  )  [inline]
 

Returns:

DALNode com::cosylab::cdb::jdal::DALNode::getNode String  nodeName  )  [inline, protected]
 

Returns a sibling child node with given name

Parameters:
nodeName The name of child node
Returns:
The child node or null it it doesn't exists

void com::cosylab::cdb::jdal::DALNode::getNodes List  list  )  [inline, protected]
 

Fill given list with nodes

Parameters:
nodeName The name of child node
Returns:
The child node or null it it doesn't exists

DALNode com::cosylab::cdb::jdal::DALNode::getRoot String  filePath  )  [inline, static]
 

Constructs a root node which holds the hierarchy of all valid curls given by path filePath

Parameters:
filePath the path where scan begins this is ususaly the DAL root path
Returns:
an instance of DALNode that has all hierarchy inside itself.

boolean com::cosylab::cdb::jdal::DALNode::isSimple  )  [inline]
 

Returns true if this node is without any hierarchy - just plain node

Returns:

String com::cosylab::cdb::jdal::DALNode::list String  path  )  [inline]
 

Returns a string that holds child names of the given path

Parameters:
path The path where to start i.e. MACI/Managers
Returns:
a string of the child names delimited with a space

void com::cosylab::cdb::jdal::DALNode::loadNodes String  filePath  )  [inline, protected]
 

Scans the path given by filePath and creates nodes as childs for this node for all XML files that has name as its parent directory.

Parameters:
filePath The path where to start scan i.e. $ACS_CDB

void com::cosylab::cdb::jdal::DALNode::print int  level  )  [inline]
 

Prints the hierarchy on System.out indenting child nodes This function is used for debuging purposes.

Parameters:
level The indentation level which will be recursevly increased


Member Data Documentation

ArrayList com::cosylab::cdb::jdal::DALNode::childs [protected]
 

String com::cosylab::cdb::jdal::DALNode::name [protected]
 

DALNode com::cosylab::cdb::jdal::DALNode::parent [protected]
 


The documentation for this class was generated from the following file:
Generated on Thu Apr 30 03:12:19 2009 for ACS Java API by doxygen 1.3.8