|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
IDirectory defines directory operations, including methods for adding, removing and searching for entries.
| Method Summary | |
void |
delete()
Delete this directory, removing it from its parent directory. |
java.util.Enumeration |
findAll(ISelector selector)
|
java.lang.Object |
findFirst(ISelector selector)
|
java.lang.Object |
get(java.lang.String path)
Return the object associated with the the specified path, or null if not found. |
IDirectory |
getParent()
Return the parent of this directory, or null if there is none. |
IDirectory |
getRoot()
Return the root of this directory. |
java.util.Enumeration |
keys()
Return an enumeration over all the keys in this directory. |
IDirectory |
newSubdirectory(java.lang.String name)
Create and return a new subdirectory with the specified name. |
java.lang.Object |
peek(java.lang.String path)
Return the object with the specified path, or null if not found. |
java.lang.Object |
put(java.lang.String path,
java.lang.Object object)
Associate an object with the specified path. |
java.lang.Object |
remove(java.lang.String path)
Remove and return the object associate with the specified path, or null if not found. |
boolean |
removeObject(java.lang.Object object)
Remove the specifed object from the directory. |
void |
setParent(IDirectory directory)
Set the parent of this directory. |
int |
size()
Return the number of entries in this directory. |
| Methods inherited from interface electric.directory.IContainer |
getPath |
| Method Detail |
public java.lang.Object get(java.lang.String path)
throws DirectoryException
path - The path.
DirectoryException - If the path is invalid or an exception occurs
in the underlying directory.
public java.lang.Object put(java.lang.String path,
java.lang.Object object)
throws DirectoryException
path - The path.object - The object.
DirectoryException - If the path is invalid or an exception occurs
in the underlying directory.
public java.lang.Object remove(java.lang.String path)
throws DirectoryException
path - The path.
DirectoryException - If the path is invalid or an exception occurs
in the underlying directory.public IDirectory getParent()
public void setParent(IDirectory directory)
directory - The new parent.public IDirectory getRoot()
public IDirectory newSubdirectory(java.lang.String name)
throws DirectoryException
name - The name of the new subdirectory.
DirectoryException - If the name is invalid or the subdirectory could
not be constructed.public int size()
public void delete()
throws DirectoryException
DirectoryException - If the directory could not be deleted.
public java.util.Enumeration keys()
throws DirectoryException
DirectoryException - If an error occurs in the underlying directory.
public java.lang.Object peek(java.lang.String path)
throws DirectoryException
path - The path.
DirectoryException - If an error occurs in the underlying directory.
public boolean removeObject(java.lang.Object object)
throws DirectoryException
object - The object to remove.
DirectoryException - If an error occurs in the underlying directory.
public java.util.Enumeration findAll(ISelector selector)
throws DirectoryException
selector -
DirectoryException
public java.lang.Object findFirst(ISelector selector)
throws DirectoryException
selector -
DirectoryException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||