|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mycore.datamodel.ifs2.MCRNode
org.mycore.datamodel.ifs2.MCRStoredNode
org.mycore.datamodel.ifs2.MCRDirectory
public class MCRDirectory
Represents a directory stored in a file collection, which may contain other files and directories.
| Field Summary |
|---|
| Fields inherited from class org.mycore.datamodel.ifs2.MCRStoredNode |
|---|
data |
| Fields inherited from class org.mycore.datamodel.ifs2.MCRNode |
|---|
fo, parent |
| Constructor Summary | |
|---|---|
protected |
MCRDirectory(MCRDirectory parent,
org.apache.commons.vfs.FileObject fo,
Element data)
Create MCRDirectory representing an existing, already stored directory. |
protected |
MCRDirectory(MCRDirectory parent,
String name)
Create a new MCRDirectory that does not exist yet |
| Method Summary | |
|---|---|
protected MCRStoredNode |
buildChildNode(org.apache.commons.vfs.FileObject fo)
Returns the MCRFile or MCRDirectory that is represented by the given FileObject, which is a direct child of the directory FileObject this MCRDirectory is stored in. |
MCRDirectory |
createDir(String name)
Creates a new subdirectory within this directory |
MCRFile |
createFile(String name)
Creates a new file within this directory |
(package private) void |
repairMetadata()
Repairs additional metadata of this directory and all its children |
| Methods inherited from class org.mycore.datamodel.ifs2.MCRStoredNode |
|---|
clearLabels, delete, getCurrentLabel, getLabel, getLabels, renameTo, setLabel, setLastModified |
| Methods inherited from class org.mycore.datamodel.ifs2.MCRNode |
|---|
getChild, getChildren, getContent, getLastModified, getName, getNodeByPath, getNumChildren, getParent, getPath, getRandomAccessContent, getRoot, getSize, hasChildren, isDirectory, isFile |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected MCRDirectory(MCRDirectory parent,
org.apache.commons.vfs.FileObject fo,
Element data)
throws Exception
parent - the parent directory of this directoryfo - the local directory in the store storing this directory
Exception
protected MCRDirectory(MCRDirectory parent,
String name)
throws Exception
parent - the parent directory of this directoryname - the name of the new subdirectory to create
Exception| Method Detail |
|---|
public MCRDirectory createDir(String name)
throws Exception
name - the name of the new directory
Exception
public MCRFile createFile(String name)
throws Exception
name - the name of the new file
Exception
protected MCRStoredNode buildChildNode(org.apache.commons.vfs.FileObject fo)
throws Exception
buildChildNode in class MCRNodefo - the FileObject representing the child in the underlying
filesystem
Exception
void repairMetadata()
throws Exception
repairMetadata in class MCRStoredNodeException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||