|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
| Field Summary | |
static java.lang.String |
PARENT_DIRECTORY
String representation that refers to this directory's parent. |
static java.lang.String |
THIS_DIRECTORY
String representation that refers to the current directory |
| 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. |
java.util.Date |
getLastModified()
Returns the time that this Directory was last modified |
java.util.List |
listEntries()
Returns an array of all the entries in 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 |
FileSystem |
unMount(java.lang.String name)
Unmounts the specified FileSystem making it unavailable from this directory |
| Methods inherited from interface org.metasyntactic.io.filesystem.Entry |
delete, equals, getFileSystem, getName, getParent, getPath, hashCode, toString |
| Field Detail |
public static final java.lang.String THIS_DIRECTORY
public static final java.lang.String PARENT_DIRECTORY
| Method Detail |
public void mount(FileSystem other,
java.lang.String name)
throws NoPermissionException
NoPermissionException - when the User is not allowed to mount a
FileSystem in this directory
public FileSystem unMount(java.lang.String name)
throws NoPermissionException
NoPermissionException
public boolean addEntry(Entry entry)
throws NoPermissionException
NoPermissionException
public boolean removeEntry(Entry entry)
throws NoPermissionException
NoPermissionException
public boolean containsEntry(Entry entry)
throws NoPermissionException
NoPermissionException
public Entry getEntry(java.lang.String name)
throws NoPermissionException
NoPermissionException
public java.util.List listEntries()
throws NoPermissionException
NoPermissionException - if the user does not have permission to
list in this directory
public java.util.List listEntries(EntryFilter filter)
throws NoPermissionException
NoPermissionException - if the user does not have permission to
list in this directorypublic java.util.Date getLastModified()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||