|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--org.sape.carbon.core.config.node.link.AbstractLinkNode
|
+--org.sape.carbon.core.config.node.link.FolderLinkImpl
Implementation of FolderLink. This is
probably the only implementation that will ever be needed. It does not
contain any logic specific to a data store so a new implementation should
not be required when new data stores are introduced. The only thing that
should be variable is which factory is used to create a link.
Copyright 2002 Sapient
| Field Summary |
| Fields inherited from class org.sape.carbon.core.config.node.link.AbstractLinkNode |
linkConfigurationDocument, targetNode |
| Fields inherited from interface org.sape.carbon.core.config.node.Node |
DELIMITER |
| Constructor Summary | |
FolderLinkImpl(ConfigurationDocument linkConfigurationDocument,
Folder targetFolder)
Constructor for FolderLinkImpl. |
|
| 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. |
void |
addNodeListener(ConfigurationEventListener listener)
Method addNodeListener. |
void |
addNodeListener(NodeEventListener listener)
Method addNodeListener. |
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 class org.sape.carbon.core.config.node.link.AbstractLinkNode |
containsChild, fetchChild, fetchChildren, getAbsoluteName, getAllowsChildren, getName, getParent, isRemoved, readLinkConfiguration, refresh, remove, toString, writeLinkConfiguration |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.sape.carbon.core.config.node.link.LinkNode |
readLinkConfiguration, writeLinkConfiguration |
| Methods inherited from interface org.sape.carbon.core.config.node.Node |
containsChild, fetchChild, fetchChildren, getAbsoluteName, getAllowsChildren, getName, getParent, isRemoved, refresh, remove |
| Constructor Detail |
public FolderLinkImpl(ConfigurationDocument linkConfigurationDocument,
Folder targetFolder)
linkConfigurationDocument - used to implement the
LinkNode interfacetargetFolder - used to implement the
Folder interface| Method Detail |
public ConfigurationDocument addConfigurationDocument(String name,
Configuration config)
throws NodeCreationException
FolderConfigurationDocument and returns a
reference to the newly created ConfigurationDocument.
addConfigurationDocument in interface Foldername - 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.Folder.addConfigurationDocument(java.lang.String, org.sape.carbon.core.config.Configuration)
public Folder addSubFolder(String name)
throws NodeCreationException
FolderFolder and returns a reference to
the newly created Folder.
addSubFolder in interface Foldername - 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.Folder.addSubFolder(String)
public LinkNode addLink(String name,
LinkNodeConfiguration linkConfiguration)
throws NodeCreationException
Folder
addLink in interface Foldername - name of the link to addlinkConfiguration - the link configuration to create
NodeCreationException - indicates an error adding the linkFolder.addLink(java.lang.String, org.sape.carbon.core.config.node.link.LinkNodeConfiguration)public NodeFactory getConfigurationDocumentFactory()
FolderaddConfigurationDocument
method to create children. This can be used by sub
Folders to create their own children.
getConfigurationDocumentFactory in interface FolderConfigurationDocumentsFolder.getConfigurationDocumentFactory()public NodeFactory getSubFolderFactory()
FolderaddSubFolder
method to create children. This can be used by sub
Folders to create their own children.
getSubFolderFactory in interface FolderFoldersFolder.getSubFolderFactory()public NodeFactory getLinkNodeFactory()
FolderaddLinkNode
method to create children. This can be used by sub
Folders to create their own children.
getLinkNodeFactory in interface FolderConfigurationDocumentsFolder.getLinkNodeFactory()public void addNodeListener(NodeEventListener listener)
Node
addNodeListener in interface Nodelistener - lister for the nodeNode.addNodeListener(NodeEventListener)public void addNodeListener(ConfigurationEventListener listener)
Node
addNodeListener in interface Nodelistener - lister for the nodeNode.addNodeListener(ConfigurationEventListener)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||