|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface must be implemented by classes that intend to respond to command-line arguments processed by the CommandParser.
Method Summary | |
java.lang.String |
getDescription()
This method is used to retrieve the description of the command listener's options when printing the help message. |
CommandOption[] |
getOptions()
This method is called by the CommandParser to determine all of the arguments that should be handled by the listener. |
void |
optionMatched(CommandOption opt,
java.lang.String arg)
This method is called whenever an arguement registered with the parser is detected in the argument stream. |
Method Detail |
public java.lang.String getDescription()
public CommandOption[] getOptions()
public void optionMatched(CommandOption opt, java.lang.String arg)
opt
- the CommandOption matched by the parserarg
- the argument (if any) specified for the option
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |