|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
An operation that acquires a root item with a specific name in a file system.
If a root with the name specified when this operation was created does not exist in the file system, the getRoot() method will return null and the rootExists() method will return false.
Method Summary | |
au.com.prunge.jgenfile.Item |
getRoot()
Returns the root item. |
String |
getRootName()
Returns the name of the root to acquire. |
void |
run()
Runs this operation. |
Methods inherited from interface au.com.prunge.jgenfile.FileSystemOperation |
getFileSystem |
Methods inherited from interface au.com.prunge.jgenfile.Operation |
abort, addOperationHints, getLastRunException, getOperationHint, getOperationHints, hasRun, setOperationHint, setOperationHints |
Method Detail |
public String getRootName()
public au.com.prunge.jgenfile.Item getRoot() throws OperationNotFinishedException, JGenFileException
OperationNotFinishedException
- if this method
was called and the run() method has not
finished or has not been called.
JGenFileException
- if another error occurs.public void run() throws ItemNotFoundException, JGenFileException
run
in interface Operation
ItemNotFoundException
- if the root could
not be found.
JGenFileException
- if another error occurs.Operation.abort()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |