| Modifier and Type | Class and Description |
|---|---|
static interface |
TestCommand.Handle |
| Constructor and Description |
|---|
TestCommand(String name) |
TestCommand(String name,
TestCommand.Handle r) |
| Modifier and Type | Method and Description |
|---|---|
void |
addOptions(org.apache.commons.cli.Option... options) |
String |
getDescription()
A short description for the command indicating what it does.
|
String |
getName()
Returns a name for this command.
|
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() |
void |
run(CommandContext ctx)
Execute the command
|
void |
setDescription(String desc) |
void |
setStorageRequired(boolean storageRequired) |
void |
setUsage(String usage) |
public TestCommand(String name)
public TestCommand(String name, TestCommand.Handle r)
public void run(CommandContext ctx) throws CommandException
Commandrun in interface CommandCommandExceptionpublic String getName()
Commandpublic String getDescription()
CommandgetDescription in interface Commandpublic void setDescription(String desc)
public String getUsage()
Commandpublic void setUsage(String usage)
public org.apache.commons.cli.Options getOptions()
CommandgetOptions in interface Commandpublic void addOptions(org.apache.commons.cli.Option... options)
public boolean isStorageRequired()
isStorageRequired in interface Commandpublic void setStorageRequired(boolean storageRequired)
public boolean isAvailableInShell()
CommandisAvailableInShell in interface Commandpublic boolean isAvailableOutsideShell()
CommandisAvailableOutsideShell in interface CommandCopyright © 2012. All Rights Reserved.