|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Command
Defines the requirements for classes that provide commands.
| Field Summary | |
|---|---|
static java.lang.String |
ALIASES
|
static java.lang.String |
CMD
|
static java.lang.String |
LONG_HELP
|
static java.lang.String |
PARAMETER
|
static java.lang.String |
SHORT_HELP
|
| Method Summary | |
|---|---|
void |
execute(java.lang.String command,
Console console)
Executes this command with argv parameters. |
java.lang.String[] |
getAliases()
Returns a list of aliases that can be used to call this command. |
java.lang.String |
getCommand()
Returns a string that represent this command. |
java.lang.String |
getLongHelp()
Returns a long help text for this command. |
java.lang.String |
getParameter()
Returns a regular expression that describes the expected parameters. |
java.lang.String |
getShortHelp()
Returns a short (less than 80 characters) help text for this command. |
| Field Detail |
|---|
static final java.lang.String CMD
static final java.lang.String LONG_HELP
static final java.lang.String PARAMETER
static final java.lang.String SHORT_HELP
static final java.lang.String ALIASES
| Method Detail |
|---|
void execute(java.lang.String command,
Console console)
throws SyntaxException,
ParameterException
argv parameters.
command - the command to execute
SyntaxException
ParameterExceptionjava.lang.String[] getAliases()
java.lang.String getCommand()
java.lang.String getLongHelp()
java.lang.String getParameter()
java.lang.String getShortHelp()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||