Save This Page
Home » commons-chain-1.2-src » org.apache.commons » chain » generic » [javadoc | source]
org.apache.commons.chain.generic
public class: CopyCommand [javadoc | source]
java.lang.Object
   org.apache.commons.chain.generic.CopyCommand

All Implemented Interfaces:
    Command

Copy a specified literal value, or a context attribute stored under the fromKey (if any), to the toKey.

Method from org.apache.commons.chain.generic.CopyCommand Summary:
execute,   getFromKey,   getToKey,   getValue,   setFromKey,   setToKey,   setValue
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.commons.chain.generic.CopyCommand Detail:
 public boolean execute(Context context) throws Exception 

    Copy a specified literal value, or a context attribute stored under the fromKey (if any), to the toKey.

 public String getFromKey() 

    Return the context attribute key for the source attribute.

 public String getToKey() 

    Return the context attribute key for the destination attribute.

 public String getValue() 

    Return the literal value to be copied.

 public  void setFromKey(String fromKey) 

    Set the context attribute key for the source attribute.

 public  void setToKey(String toKey) 

    Set the context attribute key for the destination attribute.

 public  void setValue(String value) 

    Set the literal value to be copied.