public abstract class AbstractCommand extends Object implements Command
Command implementation.| Constructor and Description |
|---|
AbstractCommand(String name,
String description)
Create a new
AbstractCommand instance. |
| Modifier and Type | Method and Description |
|---|---|
String |
getDescription()
Returns a description of the command.
|
String |
getHelp()
Gets full help text for the command, e.g.
|
String |
getName()
Returns the name of the command.
|
String |
getUsageHelp()
Returns usage help for the command.
|
public AbstractCommand(String name, String description)
AbstractCommand instance.name - the name of the commanddescription - the command descriptionpublic String getName()
Commandpublic String getDescription()
CommandgetDescription in interface Commandpublic String getUsageHelp()
CommandgetUsageHelp in interface CommandCopyright © 2013. All Rights Reserved.