|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--at.dms.util.Options
Options parser.
Field Summary | |
java.lang.String[] |
nonOptions
The array of non-option arguments. |
Constructor Summary | |
Options(java.lang.String name)
Creates a new Option object. |
Method Summary | |
protected int |
getInt(gnu.getopt.Getopt g,
int defaultValue)
|
gnu.getopt.LongOpt[] |
getLongOptions()
Gets long options |
java.lang.String[] |
getOptions()
|
java.lang.String |
getShortOptions()
Gets short options |
protected java.lang.String |
getString(gnu.getopt.Getopt g,
java.lang.String defaultValue)
|
protected abstract void |
help()
shows an usage message |
boolean |
parseCommandLine(java.lang.String[] argv)
|
boolean |
parseCommandLine(java.lang.String[] argv,
java.util.List infiles)
Parses and evaluates the command line arguments. |
void |
printOptions()
Prints the options |
boolean |
processOption(int code,
gnu.getopt.Getopt g)
|
protected abstract void |
usage()
shows a help message |
protected abstract void |
version()
shows the version number |
Methods inherited from class java.lang.Object |
|
Field Detail |
public java.lang.String[] nonOptions
Constructor Detail |
public Options(java.lang.String name)
name
- the command name to pass to getopt.Method Detail |
public boolean parseCommandLine(java.lang.String[] argv)
public boolean parseCommandLine(java.lang.String[] argv, java.util.List infiles)
argv
- the command line argumentsinfiles
- where to put non-option argumentspublic boolean processOption(int code, gnu.getopt.Getopt g)
args
- the command line argumentspublic java.lang.String[] getOptions()
public void printOptions()
protected abstract void help()
protected abstract void version()
protected abstract void usage()
protected int getInt(gnu.getopt.Getopt g, int defaultValue)
protected java.lang.String getString(gnu.getopt.Getopt g, java.lang.String defaultValue)
public java.lang.String getShortOptions()
public gnu.getopt.LongOpt[] getLongOptions()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |