|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.commons.chain.generic.CopyCommand
public class CopyCommand
Copy a specified literal value, or a context attribute stored under
the fromKey (if any), to the toKey.
| Field Summary | |
|---|---|
private java.lang.String |
fromKey
|
private java.lang.String |
toKey
|
private java.lang.String |
value
|
| Fields inherited from interface org.apache.commons.chain.Command |
|---|
CONTINUE_PROCESSING, PROCESSING_COMPLETE |
| Constructor Summary | |
|---|---|
CopyCommand()
|
|
| Method Summary | |
|---|---|
boolean |
execute(Context context)
Copy a specified literal value, or a context attribute stored under the fromKey (if any), to the toKey. |
java.lang.String |
getFromKey()
Return the context attribute key for the source attribute. |
java.lang.String |
getToKey()
Return the context attribute key for the destination attribute. |
java.lang.String |
getValue()
Return the literal value to be copied. |
void |
setFromKey(java.lang.String fromKey)
Set the context attribute key for the source attribute. |
void |
setToKey(java.lang.String toKey)
Set the context attribute key for the destination attribute. |
void |
setValue(java.lang.String value)
Set the literal value to be copied. |
| 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
private java.lang.String toKey
private java.lang.String value
| Constructor Detail |
|---|
public CopyCommand()
| Method Detail |
|---|
public java.lang.String getFromKey()
Return the context attribute key for the source attribute.
public void setFromKey(java.lang.String fromKey)
Set the context attribute key for the source attribute.
fromKey - The new keypublic java.lang.String getToKey()
Return the context attribute key for the destination attribute.
public void setToKey(java.lang.String toKey)
Set the context attribute key for the destination attribute.
toKey - The new keypublic java.lang.String getValue()
Return the literal value to be copied.
public void setValue(java.lang.String value)
Set the literal value to be copied.
value - The new value
public boolean execute(Context context)
throws java.lang.Exception
Copy a specified literal value, or a context attribute stored under
the fromKey (if any), to the toKey.
execute in interface Commandcontext - Context in which we are operating
false so that processing will continue
java.lang.Exception - in the if an error occurs during execution.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||