class RamNode extends DirNode
DirNode methods and this does allow
to build entire tree in memory using RamNode instances.| Modifier and Type | Field and Description |
|---|---|
private RamNode |
realNode
Reference to real node (for use by node substitution techniques)
|
| Constructor and Description |
|---|
RamNode(ObjectClass nodeClass,
java.lang.String name)
Constructs an empty node of given class and name.
|
RamNode(ObjectClass nodeClass,
java.lang.String name,
RamNode realNode)
Constructs an empty node of given class and name.
|
| Modifier and Type | Method and Description |
|---|---|
(package private) boolean |
addChild(RamNode child)
Add a new child node if this is allowed.
|
(package private) RamNode |
getChild(java.lang.String child)
Get a child node if node with such a name exists.
|
(package private) RamNode[] |
getChildList()
Get a list of all child nodes.
|
(package private) java.lang.String[] |
getChildNames()
Get a list of all child node names.
|
(package private) RamNode |
getRealNode()
Return a reference to node for which this node was created as a
replacement.
|
addAttribute, addAttributeValue, addChild, addStringAttributeValue, genAttribute, getAttribute, getAttributes, getChildCount, getName, getNodeClass, hasChild, isA, isLeaf, isValid, removeAttribute, removeChild, replaceAttributes, setAttribute, setAttributeValue, setNameprivate RamNode realNode
RamNode(ObjectClass nodeClass, java.lang.String name, RamNode realNode)
nodeClass - Object Class of the created node.name - Node name.realNode - Reference to real node for which this node is a substitution.RamNode(ObjectClass nodeClass, java.lang.String name)
nodeClass - Object Class of the created node.name - Node name.boolean addChild(RamNode child)
child - A node which will be added as child.true if operation was successful.RamNode getChild(java.lang.String child)
child - Name of the child to return.null if there is
no such node present.RamNode[] getChildList()
RamNode getRealNode()
java.lang.String[] getChildNames()
getChildNames in class DirNode