|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
A Folder is a Node that contains
other Nodes. The central mehtods of this interface provide
functionality to add and fetch Nodes contained within a
Folder.
Copyright 2002 Sapient
| Field Summary |
| Fields inherited from interface org.sape.carbon.core.config.node.Node |
DELIMITER |
| Method Summary | |
ConfigurationDocument |
addConfigurationDocument(String name,
Configuration config)
Creates a new child ConfigurationDocument and returns a
reference to the newly created ConfigurationDocument. |
LinkNode |
addLink(String name,
LinkNodeConfiguration linkConfiguration)
Adds a link to the folder. |
Folder |
addSubFolder(String name)
Creates a new child Folder and returns a reference to
the newly created Folder. |
NodeFactory |
getConfigurationDocumentFactory()
Gets the factory this node used in the addConfigurationDocument
method to create children. |
NodeFactory |
getLinkNodeFactory()
Gets the factory this node used in the addLinkNode
method to create children. |
NodeFactory |
getSubFolderFactory()
Gets the factory this node used in the addSubFolder
method to create children. |
| Methods inherited from interface org.sape.carbon.core.config.node.Node |
addNodeListener, addNodeListener, containsChild, fetchChild, fetchChildren, getAbsoluteName, getAllowsChildren, getName, getParent, isRemoved, refresh, remove |
| Method Detail |
public ConfigurationDocument addConfigurationDocument(String name,
Configuration config)
throws NodeCreationException
ConfigurationDocument and returns a
reference to the newly created ConfigurationDocument.
name - Name of the ConfigurationDocument to be created.config - the document to add to the Folder
NodeCreationException - when the node can not
be created, possibly because the node element already exists in
this node, or creation of the node is otherwise forbidden. An exception
should also be thrown when this node's getAllowsChildren method returns
false.
public Folder addSubFolder(String name)
throws NodeCreationException
Folder and returns a reference to
the newly created Folder.
name - Name of the Folder to be created.
NodeCreationException - when the node can not
be created, possibly because the node element already exists in
this node, or creation of the node is otherwise forbidden. An exception
should also be thrown when this node's getAllowsChildren method returns
false.
public LinkNode addLink(String name,
LinkNodeConfiguration linkConfiguration)
throws NodeCreationException
name - name of the link to addlinkConfiguration - the link configuration to create
NodeCreationException - indicates an error adding the linkpublic NodeFactory getSubFolderFactory()
addSubFolder
method to create children. This can be used by sub
Folders to create their own children.
Folderspublic NodeFactory getConfigurationDocumentFactory()
addConfigurationDocument
method to create children. This can be used by sub
Folders to create their own children.
ConfigurationDocumentspublic NodeFactory getLinkNodeFactory()
addLinkNode
method to create children. This can be used by sub
Folders to create their own children.
ConfigurationDocuments
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||