|
|||||||||||
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
interfaceMethod Detail |
public ConfigurationDocument addConfigurationDocument(String name, Configuration config) throws NodeCreationException
Folder
ConfigurationDocument
and returns a
reference to the newly created ConfigurationDocument
.
addConfigurationDocument
in interface Folder
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
.Folder.addConfigurationDocument(java.lang.String, org.sape.carbon.core.config.Configuration)
public Folder addSubFolder(String name) throws NodeCreationException
Folder
Folder
and returns a reference to
the newly created Folder
.
addSubFolder
in interface 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
.Folder.addSubFolder(String)
public LinkNode addLink(String name, LinkNodeConfiguration linkConfiguration) throws NodeCreationException
Folder
addLink
in interface Folder
name
- 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()
Folder
addConfigurationDocument
method to create children. This can be used by sub
Folder
s to create their own children.
getConfigurationDocumentFactory
in interface Folder
ConfigurationDocument
sFolder.getConfigurationDocumentFactory()
public NodeFactory getSubFolderFactory()
Folder
addSubFolder
method to create children. This can be used by sub
Folder
s to create their own children.
getSubFolderFactory
in interface Folder
Folder
sFolder.getSubFolderFactory()
public NodeFactory getLinkNodeFactory()
Folder
addLinkNode
method to create children. This can be used by sub
Folder
s to create their own children.
getLinkNodeFactory
in interface Folder
ConfigurationDocument
sFolder.getLinkNodeFactory()
public void addNodeListener(NodeEventListener listener)
Node
addNodeListener
in interface Node
listener
- lister for the nodeNode.addNodeListener(NodeEventListener)
public void addNodeListener(ConfigurationEventListener listener)
Node
addNodeListener
in interface Node
listener
- lister for the nodeNode.addNodeListener(ConfigurationEventListener)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |