Class RemoveCommand

  • All Implemented Interfaces:
    Command

    public class RemoveCommand
    extends java.lang.Object
    implements Command

    Remove any context attribute stored under the fromKey.

    Version:
    $Revision: 480477 $ $Date: 2006-11-29 08:34:52 +0000 (Wed, 29 Nov 2006) $
    Author:
    Craig R. McClanahan
    • Constructor Summary

      Constructors 
      Constructor Description
      RemoveCommand()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      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

      • fromKey

        private java.lang.String fromKey
    • Constructor Detail

      • RemoveCommand

        public RemoveCommand()
    • Method Detail

      • getFromKey

        public java.lang.String getFromKey()

        Return the context attribute key for the attribute.

        Returns:
        The context attribute key.
      • setFromKey

        public void setFromKey​(java.lang.String fromKey)

        Set the context attribute key for the attribute.

        Parameters:
        fromKey - The new key
      • execute

        public boolean execute​(Context context)
                        throws java.lang.Exception

        Copy the specified source attribute to the specified destination attribute.

        Specified by:
        execute in interface Command
        Parameters:
        context - Context in which we are operating
        Returns:
        false so that processing will continue
        Throws:
        java.lang.Exception - if and error occurs.