FileDocCategorySizeDatePackage
AbstractCommand.javaAPI DocJBoss 4.2.12358Fri Jul 13 21:02:16 BST 2007org.jboss.console.twiddle.command

AbstractCommand

public abstract class AbstractCommand extends Object implements Command
An abstract command.
version
$Revision: 57191 $
author
Jason Dillon
author
Scott.Stark@jboss.org

Fields Summary
protected Logger
log
protected final String
desc
protected final String
name
protected CommandContext
context
Constructors Summary
protected AbstractCommand(String name, String desc)


         
   
      this.name = name;
      this.desc = desc;
   
Methods Summary
public java.lang.Objectclone()
Return a cloned copy of this command.

return
Cloned command.

      try
      {
         return super.clone();
      }
      catch (CloneNotSupportedException e)
      {
         throw new InternalError();
      }
   
public java.lang.StringgetDescription()

      return desc;
   
public java.lang.StringgetName()

      return name;
   
public voidsetCommandContext(CommandContext context)

      if (context == null)
         throw new NullArgumentException("context");
      
      this.context = context;
   
public voidunsetCommandContext()

      this.context = null;