public class CopyCommand extends Object implements Command
Copy a specified literal value, or a context attribute stored under
the fromKey (if any), to the toKey.
CONTINUE_PROCESSING, PROCESSING_COMPLETE| Constructor and Description |
|---|
CopyCommand() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
execute(Context context)
Copy a specified literal value, or a context attribute stored under
the
fromKey (if any), to the toKey. |
String |
getFromKey()
Return the context attribute key for the source attribute.
|
String |
getToKey()
Return the context attribute key for the destination attribute.
|
String |
getValue()
Return the literal value to be copied.
|
void |
setFromKey(String fromKey)
Set the context attribute key for the source attribute.
|
void |
setToKey(String toKey)
Set the context attribute key for the destination attribute.
|
void |
setValue(String value)
Set the literal value to be copied.
|
public String getFromKey()
Return the context attribute key for the source attribute.
public void setFromKey(String fromKey)
Set the context attribute key for the source attribute.
fromKey - The new keypublic String getToKey()
Return the context attribute key for the destination attribute.
public void setToKey(String toKey)
Set the context attribute key for the destination attribute.
toKey - The new keypublic String getValue()
Return the literal value to be copied.
public void setValue(String value)
Set the literal value to be copied.
value - The new valueCopyright © 2003–2022 The Apache Software Foundation. All rights reserved.