au.com.prunge.jgenfile
Interface CanSetParentOperation

All Superinterfaces:
ItemOperation, Operation
All Known Implementing Classes:
ConstantCanSetParentOperation

public interface CanSetParentOperation
extends ItemOperation

An operation that tests whether the parent of an item can be changed.

If this operation indicates the parent can be changed it doesn't mean that a parent change will be guarenteed to work. It is just a recommendation as to whether trying to change the parent is possible.

Version:
1.0
Author:
Peter Runge

Method Summary
 boolean canSetParent()
          Returns whether the parent of the item can be changed.
 
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, run, setOperationHint, setOperationHints
 

Method Detail

canSetParent

public boolean canSetParent()
                     throws OperationNotFinishedException,
                            JGenFileException
Returns whether the parent of the item can be changed.

Returns:
true if the parent can possibly be changed, false if a parent change is not possible.
Throws:
OperationNotFinishedException - if this method was called and the run() method has not finished or has not been called.
JGenFileException - if another error occurs.