
public interface Command
| Modifier and Type | Interface and Description |
|---|---|
static interface |
Command.Listener
Listener interface.
|
| Modifier and Type | Field and Description |
|---|---|
static int |
STATUS_FAILURE
Status code when the command failed.
|
static int |
STATUS_SUCCESS
Status code when the command completed successfully.
|
| Modifier and Type | Method and Description |
|---|---|
int |
execute(CommandLine commandLine)
Executes the command.
|
String |
getAbbreviatedName()
Gets the abbreviated name of the command.
|
List<Command.Listener> |
getListeners()
Gets the list of registered listeners.
|
Level |
getLogLevel()
Gets the log level of the instance.
|
String |
getLongDescription(Locale locale)
Gets the long description of the command.
|
String |
getName()
Gets the name of the command.
|
Options |
getOptions()
Gets the options of the command.
|
String |
getShortDescription(Locale locale)
Gets the short description of the command.
|
void |
setLogLevel(Level value)
Sets the log level of the instance.
|
static final int STATUS_SUCCESS
static final int STATUS_FAILURE
List<Command.Listener> getListeners()
Level getLogLevel()
setLogLevel(java.util.logging.Level)void setLogLevel(Level value)
value - The new log level of the instance or null.getLogLevel()String getAbbreviatedName()
String getShortDescription(Locale locale) throws NullPointerException
locale - The locale of the short description to return.NullPointerException - if locale is null.String getLongDescription(Locale locale) throws NullPointerException
locale - The locale of the long description to return.NullPointerException - if locale is null.Options getOptions()
int execute(CommandLine commandLine) throws NullPointerException
commandLine - Command line to execute.NullPointerException - if commandLine is null.STATUS_SUCCESS,
STATUS_FAILURECopyright © 2005–2016 The JOMC Project. All rights reserved.