|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ParameterHandler
Thie interface defines the callback methods used by a
ParameterParser object, when its
parse() method is called.
ParameterParser,
CommandLineUtility| Method Summary | |
|---|---|
void |
parseOption(char shortOption,
java.lang.String longOption,
java.util.Iterator<java.lang.String> it)
Handles a parsed option. |
void |
parsePostOptionParameters(java.util.Iterator<java.lang.String> it)
Handles all parameters that appear after the end of the options. |
| Method Detail |
|---|
void parseOption(char shortOption,
java.lang.String longOption,
java.util.Iterator<java.lang.String> it)
throws CommandLineUsageException,
java.util.NoSuchElementException
shortOption - the (character) short option, if any; otherwise,
the constant UsageInfo.NO_SHORT_OPTION.longOption - the (string) long option, if any; otherwise,
null.it - An Iterator from which to retrieve any
value(s) for the option
CommandLineUsageException - on error
java.util.NoSuchElementException - attempt to iterate past end of args;
ParameterParser.parse(java.lang.String[], org.clapper.util.cmdline.ParameterHandler)
automatically handles this exception,
so it's safe for implementations of
this method not to handle it
void parsePostOptionParameters(java.util.Iterator<java.lang.String> it)
throws CommandLineUsageException,
java.util.NoSuchElementException
it - the Iterator containing the parameters
CommandLineUsageException - on error
java.util.NoSuchElementException - attempt to iterate past end of args;
ParameterParser.parse(java.lang.String[], org.clapper.util.cmdline.ParameterHandler)
automatically handles this exception,
so it's safe for implementations of
this method not to handle it
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||