Package org.apache.commons.chain.generic
Class RemoveCommand<C extends Context>
java.lang.Object
org.apache.commons.chain.generic.RemoveCommand<C>
- Type Parameters:
C- Type of the context associated with this command
- All Implemented Interfaces:
Command<C>
Remove any context attribute stored under the
fromKey.- Version:
- $Revision$ $Date$
- Author:
- Craig R. McClanahan
-
Field Summary
Fields inherited from interface org.apache.commons.chain.Command
CONTINUE_PROCESSING, PROCESSING_COMPLETE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanCopy the specified source attribute to the specified destination attribute.Return the context attribute key for the attribute.voidsetFromKey(String fromKey) Set the context attribute key for the attribute.
-
Constructor Details
-
RemoveCommand
public RemoveCommand()The Default-Constructor for this class.
-
-
Method Details
-
getFromKey
Return the context attribute key for the attribute.- Returns:
- The context attribute key.
-
setFromKey
Set the context attribute key for the attribute.- Parameters:
fromKey- The new key
-
execute
Copy the specified source attribute to the specified destination attribute.
-