public abstract class CommandWithInfo extends Object implements Command
| Constructor and Description |
|---|
CommandWithInfo() |
| Modifier and Type | Method and Description |
|---|---|
String |
getDescription()
A short description for the command indicating what it does.
|
org.apache.commons.cli.Options |
getOptions()
Returns the Options that the command is prepared to handle.
|
String |
getUsage()
How the user should invoke this command
|
boolean |
isAvailableInShell()
Whether the command is available to be invoked from within the shell.
|
boolean |
isAvailableOutsideShell()
Indicates if the command is available to be invoked from outside the
shell (from the main command line).
|
boolean |
isStorageRequired() |
public String getDescription()
CommandgetDescription in interface Commandpublic String getUsage()
Commandpublic org.apache.commons.cli.Options getOptions()
CommandgetOptions in interface Commandpublic boolean isStorageRequired()
isStorageRequired in interface Commandpublic boolean isAvailableInShell()
CommandisAvailableInShell in interface Commandpublic boolean isAvailableOutsideShell()
CommandisAvailableOutsideShell in interface CommandCopyright © 2012. All Rights Reserved.