|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The base interface of all
objects within the ConfigurationService
data structure.
This interface contains methods that all objects within the
ConfigurationService
data structure must implement.
ConfigurationService
Field Summary | |
static char |
DELIMITER
Delimter use used to separate node names in an absolute node name |
Method Summary | |
void |
addNodeListener(ConfigurationEventListener listener)
Method addNodeListener. |
void |
addNodeListener(NodeEventListener listener)
Deprecated. |
boolean |
containsChild(String childName)
Checks if this Folder contains the child specified
by childName |
Node |
fetchChild(String childName)
Returns a child Node of the current
Node as defined by childName . |
Node[] |
fetchChildren()
Returns an array of all children nodes, including standard ConfigurationDocument s and Folder . |
String |
getAbsoluteName()
Returns the absolute name of the node within the node heirarchy. |
boolean |
getAllowsChildren()
Allows determination of whether or not this node supports children |
String |
getName()
Returns the name of this node. |
Node |
getParent()
Gets the parent folder of the node. |
boolean |
isRemoved()
Used to tell whether or not the backing data of a node has been removed. |
void |
refresh()
Refreshes the Node's underlying cache of data (assuming is has one) |
int |
remove()
Permanently deletes the node and all of its child nodes from the backing store returning the total number of nodes deleted. |
Field Detail |
public static final char DELIMITER
Method Detail |
public String getName()
/
'. The name of the root node is
an empty String
(""
).
public String getAbsoluteName()
/
' with each
node's name in the heirarchy seperated by a '/
' unless
this is the root node in which case it returns
an empty String
(""
).
public boolean getAllowsChildren()
true
if the node can support children,
false
otherwisepublic int remove() throws NodeRemovalException
NodeRemovalException
- when the node or one of its children
can not be deleted. When this exception is thrown, some nodes may have
been deleted while other may have not.public Node getParent()
public boolean isRemoved()
public void refresh()
public Node[] fetchChildren()
ConfigurationDocument
s and Folder
. If this
particular node does not have any children, an array of length zero
is be returned.
public Node fetchChild(String childName) throws NodeNotFoundException
Node
of the current
Node
as defined by childName
.
childName
- The name of the child node to be returned.
NodeNotFoundException
- when
childName
does not exist in the backing data storepublic boolean containsChild(String childName)
Folder
contains the child specified
by childName
childName
- the name of the child Node
public void addNodeListener(NodeEventListener listener)
listener
- lister for the nodepublic void addNodeListener(ConfigurationEventListener listener)
listener
- lister for the node
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |