|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.metasyntactic.io.filesystem.AbstractEntry | +--org.metasyntactic.io.filesystem.AbstractDirectory
Field Summary | |
protected java.util.Map |
nameToMount
|
protected Directory |
parent
|
Fields inherited from interface org.metasyntactic.io.filesystem.Directory |
PARENT_DIRECTORY, THIS_DIRECTORY |
Fields inherited from interface org.metasyntactic.io.filesystem.TreeConstants |
TERMINAL, TERMINAL_BLANK, TERMINAL_HORIZONTAL, TERMINAL_UP_AND_RIGHT, TERMINAL_VERTICAL, TERMINAL_VERTICAL_AND_RIGHT, UNICODE, UNICODE_BLANK, UNICODE_HORIZONTAL, UNICODE_UP_AND_RIGHT, UNICODE_VERTICAL, UNICODE_VERTICAL_AND_RIGHT |
Constructor Summary | |
AbstractDirectory()
|
Method Summary | |
boolean |
addEntry(Entry entry)
Adds the specified entry to this directory |
boolean |
containsEntry(Entry entry)
Returns true if the specified entry is contained within this directory |
Entry |
getEntry(java.lang.String name)
Returns the entry in this directory with this name, or null of that entry didn't exist. |
Directory |
getParent()
Returns this parent of this Directory. |
java.util.List |
listEntries(EntryFilter filter)
Returns an array of all the entries in this Directory satisfying the specified filter |
void |
mount(FileSystem other,
java.lang.String name)
Mounts the specified FileSystem into this Directory with a name of "name" |
boolean |
removeEntry(Entry entry)
Removes the specified entry from this directory |
java.lang.String |
toString()
|
FileSystem |
unMount(java.lang.String name)
Unmounts the specified FileSystem making it unavailable from this directory |
Methods inherited from class org.metasyntactic.io.filesystem.AbstractEntry |
getPath, isLegal |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.metasyntactic.io.filesystem.Directory |
getLastModified, listEntries |
Methods inherited from interface org.metasyntactic.io.filesystem.Entry |
delete, equals, getFileSystem, getName, getPath, hashCode |
Field Detail |
protected Directory parent
protected java.util.Map nameToMount
Constructor Detail |
public AbstractDirectory()
Method Detail |
public void mount(FileSystem other, java.lang.String name) throws NoPermissionException
Directory
mount
in interface Directory
NoPermissionException
- when the User is not allowed to mount a
FileSystem in this directorypublic FileSystem unMount(java.lang.String name) throws NoPermissionException
Directory
unMount
in interface Directory
NoPermissionException
public Directory getParent() throws NoPermissionException
getParent
in interface Entry
NoPermissionException
public boolean addEntry(Entry entry) throws NoPermissionException
Directory
addEntry
in interface Directory
NoPermissionException
public boolean removeEntry(Entry entry) throws NoPermissionException
Directory
removeEntry
in interface Directory
NoPermissionException
public boolean containsEntry(Entry entry) throws NoPermissionException
Directory
containsEntry
in interface Directory
NoPermissionException
public Entry getEntry(java.lang.String name) throws NoPermissionException
Directory
getEntry
in interface Directory
NoPermissionException
public java.util.List listEntries(EntryFilter filter) throws NoPermissionException
Directory
listEntries
in interface Directory
NoPermissionException
- if the user does not have permission to
list in this directorypublic java.lang.String toString()
toString
in interface Entry
toString
in class AbstractEntry
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |