|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--au.com.prunge.jgenfile.impl.AbstractOperation | +--au.com.prunge.jgenfile.impl.AbstractItemOperation | +--au.com.prunge.jgenfile.impl.ConstantCanSetMetadataOperation
A can set metadata operation that always returns the same set of keys.
Constructor Summary | |
ConstantCanSetMetadataOperation(au.com.prunge.jgenfile.Item item,
Set metadataKeySet,
Set modifiableKeySet)
Constructs a ConstantCanSetMetadataOperation . |
Method Summary | |
Set |
getMetadataKeySet()
Returns the set of metadata keys this operation is checking for modification for the item. |
Set |
getModifiableMetadataSet()
Returns the set of metadata keys that can be set for this item. |
Set |
getNonModifiableMetadataSet()
Returns the set of metadata keys that cannot be set for this item. |
void |
runImpl()
The actual run() implementation goes in this method. |
Methods inherited from class au.com.prunge.jgenfile.impl.AbstractItemOperation |
getItem |
Methods inherited from class au.com.prunge.jgenfile.impl.AbstractOperation |
abort, addOperationHints, checkRun, getLastRunException, getOperationHint, getOperationHints, hasRun, run, setLastRunException, setOperationHint, setOperationHints |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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 |
Constructor Detail |
public ConstantCanSetMetadataOperation(au.com.prunge.jgenfile.Item item, Set metadataKeySet, Set modifiableKeySet) throws NullPointerException
ConstantCanSetMetadataOperation
.
item
- the item this operation is for.metadataKeySet
- the set of metadata keys to use to check
for metadata modification.modifiableKeySet
- a complete set of keys
for metadata that can be modified.
NullPointerException
- if any parameter is null.Method Detail |
public Set getMetadataKeySet()
CanSetMetadataOperation
getMetadataKeySet
in interface CanSetMetadataOperation
CanSetMetadataOperation.getMetadataKeySet()
public Set getModifiableMetadataSet() throws OperationNotFinishedException, JGenFileException
CanSetMetadataOperation
getModifiableMetadataSet
in interface CanSetMetadataOperation
OperationNotFinishedException
- if this method
was called and the run() method has not
finished or has not been called.
JGenFileException
- if another error occurs.CanSetMetadataOperation.getModifiableMetadataSet()
public Set getNonModifiableMetadataSet() throws OperationNotFinishedException, JGenFileException
CanSetMetadataOperation
getNonModifiableMetadataSet
in interface CanSetMetadataOperation
OperationNotFinishedException
- if this method
was called and the run() method has not
finished or has not been called.
JGenFileException
- if another error occurs.CanSetMetadataOperation.getNonModifiableMetadataSet()
public void runImpl() throws JGenFileException
AbstractOperation
If this method completes successfully (i.e. without throwing an exception), the last run exception is set to null indicating no exception occurred and subsequent calls to hasRun() will return true.
If this method throws an exception, the last run exception is filled in and hasRun() subsequent calls to hasRun() will return false.
runImpl
in class AbstractOperation
JGenFileException
- if an error occurs.au.com.prunge.jgenfile.AbstractOperation#runImpl()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |