Public Member Functions | |
| DALNode (String name, DALNode parent) | |
| String | list (String path) |
| String | getCurl () |
| void | print (int level) |
| DALNode | getCurlNode () |
| DALNode[] | getChilds () |
| boolean | isSimple () |
| boolean | hasXmlChild () |
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 | |||
| ) |
Constructs this object.
| name | The name of this node | |
| parent | parent node for this node |
Referenced by com.cosylab.cdb.jdal.DALNode.addNode(), and com.cosylab.cdb.jdal.DALNode.getRoot().
| void com.cosylab.cdb.jdal.DALNode.addNode | ( | String | nodePath | ) | [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 com.cosylab.cdb.jdal.DALNode.addNode(), com.cosylab.cdb.jdal.DALNode.childs, com.cosylab.cdb.jdal.DALNode.DALNode(), and com.cosylab.cdb.jdal.DALNode.getNode().
Referenced by com.cosylab.cdb.jdal.DALNode.addNode(), and com.cosylab.cdb.jdal.DALNode.loadNodes().
| DALNode com.cosylab.cdb.jdal.DALNode.findNode | ( | String | path | ) | [protected] |
Returns the node for the given path or null if the path does not exist under this tree.
| path | The path to find i.e. MACI/Managers |
null if it doesn't exist References com.cosylab.cdb.jdal.DALNode.findNode(), and com.cosylab.cdb.jdal.DALNode.getNode().
Referenced by com.cosylab.cdb.jdal.DALNode.findNode(), com.cosylab.cdb.jdal.DALNode.hasXmlChild(), com.cosylab.cdb.jdal.DALNode.list(), and com.cosylab.cdb.jdal.DALImpl.loadRecords().
| DALNode [] com.cosylab.cdb.jdal.DALNode.getChilds | ( | ) |
References com.cosylab.cdb.jdal.DALNode.childs, and com.cosylab.cdb.jdal.DALNode.list().
| String com.cosylab.cdb.jdal.DALNode.getCurl | ( | ) |
| DALNode com.cosylab.cdb.jdal.DALNode.getCurlNode | ( | ) |
References com.cosylab.cdb.jdal.DALNode.childs.
Referenced by com.cosylab.cdb.jdal.DALNode.getCurl().
| DALNode com.cosylab.cdb.jdal.DALNode.getNode | ( | String | nodeName | ) | [protected] |
Returns a sibling child node with given name
| nodeName | The name of child node |
null it it doesn't exists References com.cosylab.cdb.jdal.DALNode.childs, and com.cosylab.cdb.jdal.DALNode.name.
Referenced by com.cosylab.cdb.jdal.DALNode.addNode(), and com.cosylab.cdb.jdal.DALNode.findNode().
| void com.cosylab.cdb.jdal.DALNode.getNodes | ( | List | list | ) | [protected] |
Fill given list with nodes
| nodeName | The name of child node |
null it it doesn't exists References com.cosylab.cdb.jdal.DALNode.childs, com.cosylab.cdb.jdal.DALNode.getCurl(), and com.cosylab.cdb.jdal.DALNode.getNodes().
Referenced by com.cosylab.cdb.jdal.DALNode.getNodes().
| static DALNode com.cosylab.cdb.jdal.DALNode.getRoot | ( | String | filePath | ) | [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 com.cosylab.cdb.jdal.DALNode.DALNode(), and com.cosylab.cdb.jdal.DALNode.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.hasXmlChild | ( | ) |
References com.cosylab.cdb.jdal.DALNode.findNode(), and com.cosylab.cdb.jdal.DALNode.name.
Referenced by com.cosylab.cdb.jdal.DALImpl.loadRecords().
| boolean com.cosylab.cdb.jdal.DALNode.isSimple | ( | ) |
Returns true if this node is without any hierarchy - just plain node
References com.cosylab.cdb.jdal.DALNode.childs.
Referenced by com.cosylab.cdb.jdal.DALImpl.loadRecords().
| String com.cosylab.cdb.jdal.DALNode.list | ( | String | path | ) |
Returns a string that holds child names of the given path
| path | The path where to start i.e. MACI/Managers |
References com.cosylab.cdb.jdal.DALNode.childs, com.cosylab.cdb.jdal.DALNode.findNode(), and com.cosylab.cdb.jdal.DALNode.name.
Referenced by com.cosylab.cdb.jdal.DALNode.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 | ) | [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.
| filePath | The path where to start scan i.e. $ACS_CDB |
References com.cosylab.cdb.jdal.DALNode.addNode(), and com.cosylab.cdb.jdal.DALNode.name.
Referenced by com.cosylab.cdb.jdal.DALNode.getRoot().
| void com.cosylab.cdb.jdal.DALNode.print | ( | int | level | ) |
Prints the hierarchy on System.out indenting child nodes This function is used for debuging purposes.
| level | The indentation level which will be recursevly increased |
References com.cosylab.cdb.jdal.DALNode.childs, com.cosylab.cdb.jdal.DALNode.name, and com.cosylab.cdb.jdal.DALNode.print().
Referenced by com.cosylab.cdb.jdal.DALNode.print().
ArrayList com.cosylab.cdb.jdal.DALNode.childs [protected] |
Referenced by com.cosylab.cdb.jdal.DALNode.addNode(), com.cosylab.cdb.jdal.DALNode.getChilds(), com.cosylab.cdb.jdal.DALNode.getCurlNode(), com.cosylab.cdb.jdal.DALNode.getNode(), com.cosylab.cdb.jdal.DALNode.getNodes(), com.cosylab.cdb.jdal.DALNode.isSimple(), com.cosylab.cdb.jdal.DALNode.list(), and com.cosylab.cdb.jdal.DALNode.print().
String com.cosylab.cdb.jdal.DALNode.name [protected] |
Referenced by com.cosylab.cdb.jdal.DALNode.getCurl(), com.cosylab.cdb.jdal.DALNode.getNode(), com.cosylab.cdb.jdal.DALNode.hasXmlChild(), com.cosylab.cdb.jdal.DALNode.list(), com.cosylab.cdb.jdal.DALNode.loadNodes(), com.cosylab.cdb.jdal.DALImpl.loadRecords(), com.cosylab.cdb.jdal.DALImpl.parseNode(), and com.cosylab.cdb.jdal.DALNode.print().
DALNode com.cosylab.cdb.jdal.DALNode.parent [protected] |
Referenced by com.cosylab.cdb.jdal.DALNode.getCurl().
1.7.0