Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.jboss.console.twiddle.command
Class AbstractCommand

    java.lang.Object
      org.jboss.console.twiddle.command.AbstractCommand

All Implemented Interfaces:
  Cloneable, Command

Direct Known Subclasses:
  MBeanServerCommand

public abstract class AbstractCommand
extends Object
implements Command

An abstract command.

Version:
  `$Revision: 1.6 $`
Author:
  Jason Dillon, Scott.Stark@jboss.org

Field Summary
`protected CommandContext` | `context`
`protected String` | `desc`
`protected org.jboss.logging.Logger` | `log`
`protected String` | `name`

Constructor Summary
`protected` | `AbstractCommand(String name, String desc)`

Method Summary
`Object` | `clone()` Return a cloned copy of this command.
`String` | `getDescription()`
`String` | `getName()`
`void` | `setCommandContext(CommandContext context)`
`void` | `unsetCommandContext()`

Methods inherited from class java.lang.Object
`equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Methods inherited from interface org.jboss.console.twiddle.command.Command
`displayHelp, execute`

Field Detail

### log

    protected org.jboss.logging.Logger log

### desc

    protected final String desc

### name

    protected final String name

### context

    protected CommandContext context

Constructor Detail

### AbstractCommand

    protected AbstractCommand(String name,
                              String desc)

Method Detail

### getName

    public String getName()

  Specified by:
    `getName` in interface `Command`

### getDescription

    public String getDescription()

  Specified by:
    `getDescription` in interface `Command`

### setCommandContext

    public void setCommandContext(CommandContext context)

  Specified by:
    `setCommandContext` in interface `Command`

### unsetCommandContext

    public void unsetCommandContext()

  Specified by:
    `unsetCommandContext` in interface `Command`

### clone

    public Object clone()

  Return a cloned copy of this command.

  Specified by:
    `clone` in interface `Command`
  Returns:
    Cloned command.

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2002 JBoss Group, LLC. All Rights Reserved.