|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jagatoo.commandline.ArgumentsHandler
public abstract class ArgumentsHandler
Handles arguments from the command line.
| Constructor Summary | |
|---|---|
ArgumentsHandler()
|
|
| Method Summary | |
|---|---|
protected abstract void |
handleArgument(Argument arg,
java.lang.Object value)
This method is called when the parser has identified an argument with or without a value. |
protected void |
onError(int chunk,
java.lang.String message)
This method is called when a serious error is detected byy the parser. |
protected abstract void |
validate()
This method is called after the whole command line has been parsed. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ArgumentsHandler()
| Method Detail |
|---|
protected abstract void handleArgument(Argument arg,
java.lang.Object value)
arg - the detected argument (null for loose values)value - the value (null for no-value-arguments)
protected void onError(int chunk,
java.lang.String message)
throws CommandlineParsingException
chunk - the command line chunk numbermessage - the error message
CommandlineParsingException
protected abstract void validate()
throws CommandlineParsingException
CommandlineParsingException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||