|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.commons.chain.generic.RemoveCommand
public class RemoveCommand
Remove any context attribute stored under the fromKey
.
Field Summary | |
---|---|
private java.lang.String |
fromKey
|
Constructor Summary | |
---|---|
RemoveCommand()
|
Method Summary | |
---|---|
boolean |
execute(Context context)
Copy the specified source attribute to the specified destination attribute. |
java.lang.String |
getFromKey()
Return the context attribute key for the attribute. |
void |
setFromKey(java.lang.String fromKey)
Set the context attribute key for the attribute. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private java.lang.String fromKey
Constructor Detail |
---|
public RemoveCommand()
Method Detail |
---|
public java.lang.String getFromKey()
Return the context attribute key for the attribute.
public void setFromKey(java.lang.String fromKey)
Set the context attribute key for the attribute.
fromKey
- The new keypublic boolean execute(Context context) throws java.lang.Exception
Copy the specified source attribute to the specified destination attribute.
execute
in interface Command
context
- Context
in which we are operating
false
so that processing will continue
java.lang.Exception
- general purpose exception return
to indicate abnormal termination
java.lang.IllegalArgumentException
- if context
is null
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |