
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 | |
| static 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 |
| com::cosylab::cdb::jdal::DALNode::DALNode | ( | String | name, | |
| DALNode | parent | |||
| ) | [inline] |
| 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.
| nodePath | The path of the node i.e. MACI/Managers/Manager/Manager.xml |
References addNode(), childs, DALNode(), and getNode().
Referenced by addNode(), and loadNodes().
| 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.
| path | The path to find i.e. MACI/Managers |
null if it doesn't exist References findNode(), and getNode().
Referenced by findNode(), list(), and com::cosylab::cdb::jdal::DALImpl::loadRecords().
| DALNode [] com::cosylab::cdb::jdal::DALNode::getChilds | ( | ) | [inline] |
| String com::cosylab::cdb::jdal::DALNode::getCurl | ( | ) | [inline] |
References getCurlNode(), name, and parent.
Referenced by getNodes().
| DALNode com::cosylab::cdb::jdal::DALNode::getCurlNode | ( | ) | [inline] |
| DALNode com::cosylab::cdb::jdal::DALNode::getNode | ( | String | nodeName | ) | [inline, protected] |
Returns a sibling child node with given name
| nodeName | The name of child node |
null it it doesn't exists Referenced by addNode(), and findNode().
| void com::cosylab::cdb::jdal::DALNode::getNodes | ( | List | list | ) | [inline, protected] |
Fill given list with nodes
| nodeName | The name of child node |
null it it doesn't exists References childs, getCurl(), and getNodes().
Referenced by getNodes().
| static 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
| filePath | the path where scan begins this is ususaly the DAL root path |
References DALNode(), and loadNodes().
Referenced by com::cosylab::cdb::jdal::DALImpl::clear_cache_all(), com::cosylab::cdb::jdal::DALImpl::list_daos(), com::cosylab::cdb::jdal::DALImpl::list_nodes(), and com::cosylab::cdb::jdal::DALImpl::loadRecords().
| boolean com::cosylab::cdb::jdal::DALNode::isSimple | ( | ) | [inline] |
Returns true if this node is without any hierarchy - just plain node
References childs.
Referenced by com::cosylab::cdb::jdal::DALImpl::loadRecords().
| String com::cosylab::cdb::jdal::DALNode::list | ( | String | path | ) | [inline] |
Returns a string that holds child names of the given path
| path | The path where to start i.e. MACI/Managers |
References childs, findNode(), and name.
Referenced by getChilds(), com::cosylab::cdb::jdal::DALImpl::list_daos(), and com::cosylab::cdb::jdal::DALImpl::list_nodes().
| void com::cosylab::cdb::jdal::DALNode::loadNodes | ( | String | filePath | ) | [inline, protected] |
| void com::cosylab::cdb::jdal::DALNode::print | ( | int | level | ) | [inline] |
ArrayList com::cosylab::cdb::jdal::DALNode::childs [protected] |
Referenced by addNode(), getChilds(), getCurlNode(), getNode(), getNodes(), isSimple(), list(), and print().
String com::cosylab::cdb::jdal::DALNode::name [protected] |
Referenced by getCurl(), getNode(), list(), loadNodes(), and print().
DALNode com::cosylab::cdb::jdal::DALNode::parent [protected] |
Referenced by getCurl().
1.6.2