au.com.prunge.jgenfile
Interface CreateSubdirectoryOperation

All Superinterfaces:
DirectoryOperation, ItemOperation, Operation
All Known Implementing Classes:
LocalCreateSubdirectoryOperation

public interface CreateSubdirectoryOperation
extends DirectoryOperation

An operation that creates an empty subdirectory in a directory.

Version:
1.0
Author:
Peter Runge

Method Summary
 au.com.prunge.jgenfile.Directory getSubdirectory()
          Returns the newly created subdirectory.
 String getSubdirectoryName()
          Returns the name of the subdirectory to create.
 void run()
          Runs this operation.
 
Methods inherited from interface au.com.prunge.jgenfile.DirectoryOperation
getDirectory
 
Methods inherited from interface au.com.prunge.jgenfile.ItemOperation
getItem
 
Methods inherited from interface au.com.prunge.jgenfile.Operation
abort, addOperationHints, getLastRunException, getOperationHint, getOperationHints, hasRun, setOperationHint, setOperationHints
 

Method Detail

getSubdirectoryName

public String getSubdirectoryName()
Returns the name of the subdirectory to create.

Returns:
the name of the subdirectory to create.

getSubdirectory

public au.com.prunge.jgenfile.Directory getSubdirectory()
                                                 throws OperationNotFinishedException,
                                                        JGenFileException
Returns the newly created subdirectory.

Returns:
the newly created subdirectory.
Throws:
OperationNotFinishedException - if this method was called and the run() method has not finished or has not been called.
JGenFileException - if another error occurs.

run

public void run()
         throws JGenFileException,
                OperationNotSupportedException,
                ItemNameInUseException
Runs this operation.

Specified by:
run in interface Operation
Throws:
OperationNotSupportedException - if this operation is not supported.
ItemNameInUseException - if an item with the the specified name already exists.
JGenFileException - if another error occurs.
See Also:
Operation.abort()