|
|||||||||||
| 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.AbstractNode
|
+--org.sape.carbon.core.config.node.AbstractFolder
|
+--org.sape.carbon.core.config.node.file.FileFolder
A node that represents a physical directory within a file system. These nodes cache child nodes for quick reference, and thus synchronize removal and retrieval of child nodes. Copyright 2002 Sapient
FileConfigurationDocument| Field Summary | |
private File |
directory
Internal file object |
private FileNodeFilter |
fileFilter
The filter used to obtain valid child files that may be represented by FileNodes from the file system. |
| Fields inherited from class org.sape.carbon.core.config.node.AbstractFolder |
|
| Fields inherited from class org.sape.carbon.core.config.node.AbstractNode |
childNodes, nodeListeners |
| Fields inherited from interface org.sape.carbon.core.config.node.Node |
DELIMITER |
| Constructor Summary | |
protected |
FileFolder(Node parent,
String name,
NodeFactory subFolderFactory,
NodeFactory configurationDocumentFactory,
NodeFactory linkNodeFactory,
File directory)
Constructor for FileFolder. |
| Method Summary | |
protected boolean |
backingDataExists()
Method called from the refresh method to see if the backing data still exists. |
protected void |
destroyBackingData()
This method is called by remove to destroy the data
backing this node in the data source. |
protected Set |
getAllChildNames()
Called by fetchChildren to get the names of all the children from the backing data store. |
(package private) File |
getInternalFileObject()
Accessor method for this.directory. |
protected Node |
loadChild(String nodeName)
Loads the child specified by nodeName from the backing data store. |
private Node |
loadChildLinkNode(String nodeName)
Helper method to create a sub link |
private Node |
loadConfigurationDocument(String nodeName)
Helper method to create a configuration document |
private Node |
loadSubFolder(String nodeName)
Helper method to create a sub folder |
| Methods inherited from class org.sape.carbon.core.config.node.AbstractFolder |
addConfigurationDocument, addLink, addSubFolder, createNewConfigurationDocument, createNewFolder, getConfigurationDocumentFactory, getLinkNodeFactory, getSubFolderFactory, issueChildAddedEvent |
| Methods inherited from class org.sape.carbon.core.config.node.AbstractNode |
addNodeListener, addNodeListener, addNodeListener, containsChild, fetchChild, fetchChildren, getAbsoluteName, getAddOrLoadChildLock, getAllowsChildren, getName, getParent, getReadOrAlterNodeLock, isRemoved, issueChildLoadedEvent, issueNodeRemovedEvent, refresh, remove, removeRemovedChildren, setRemoved, toString |
| 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.Node |
addNodeListener, addNodeListener, containsChild, fetchChild, fetchChildren, getAbsoluteName, getAllowsChildren, getName, getParent, isRemoved, refresh, remove |
| Field Detail |
private FileNodeFilter fileFilter
FileNodes from the file system.
private File directory
| Constructor Detail |
protected FileFolder(Node parent,
String name,
NodeFactory subFolderFactory,
NodeFactory configurationDocumentFactory,
NodeFactory linkNodeFactory,
File directory)
parent - parent node that contains this foldername - name of this foldersubFolderFactory - factory to create sub-folders withconfigurationDocumentFactory - factory to create
configuration documents withlinkNodeFactory - factory to create link nodes withdirectory - directory being represented by this folder| Method Detail |
protected Set getAllChildNames()
AbstractNode
getAllChildNames in class AbstractNodeStrings, the names of all the childrenAbstractNode.getAllChildNames()
protected Node loadChild(String nodeName)
throws NodeNotFoundException
AbstractNode
loadChild in class AbstractNodenodeName - the name of the node to load
NodeNotFoundException - if the backing data for the specifed
node could not be found in the data store.AbstractNode.loadChild(java.lang.String)
protected void destroyBackingData()
throws NodeRemovalException
AbstractNoderemove to destroy the data
backing this node in the data source. Implementations of this method
should remove all traces of the Node's existence
destroyBackingData in class AbstractNodeNodeRemovalException - indicates an error removing the nodeAbstractNode.destroyBackingData()File getInternalFileObject()
private Node loadSubFolder(String nodeName)
throws NodeCreationException
nodeName - name of node containing the sub folder
NodeCreationException - indicates an error loading the sub folder
private Node loadConfigurationDocument(String nodeName)
throws NodeCreationException
nodeName - name of node to load the document for
NodeCreationException - indicates an error loading the node
private Node loadChildLinkNode(String nodeName)
throws NodeCreationException
nodeName - name of sub link to create
NodeCreationException - indicates an error loading the childprotected boolean backingDataExists()
AbstractNode
backingDataExists in class AbstractNodeAbstractNode.backingDataExists()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||