Command
public class CopyCommand extends java.lang.Object implements Command
Copy a specified literal value, or a context attribute stored under
the fromKey
(if any), to the toKey
.
Modifier and Type | Field | Description |
---|---|---|
private java.lang.String |
fromKey |
|
private java.lang.String |
toKey |
|
private java.lang.String |
value |
CONTINUE_PROCESSING, PROCESSING_COMPLETE
Constructor | Description |
---|---|
CopyCommand() |
Modifier and Type | Method | Description |
---|---|---|
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.
|
private java.lang.String fromKey
private java.lang.String toKey
private java.lang.String value
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 valuepublic 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
.