|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sourceforge.openstego.util.CmdLineParser
Utility to parse the command line parameters
| Constructor Summary | |
CmdLineParser(CmdLineOptions stdOptions,
String[] args)
Default constructor |
|
| Method Summary | |
List |
getNonStdOptions()
Method to get the list of non-standard options |
int |
getNumOfOptions()
Method to get the total number of options (standard plus non-standard) provided in the command-line |
String |
getOptionName(int index)
Method to get the name of the option by index |
String |
getOptionValue(String name)
Method to get the value of the given option (by name) |
CmdLineOptions |
getParsedOptions()
Get method for parsedOptions |
List |
getParsedOptionsAsList()
Method to get the list of standard options |
boolean |
isValid()
Method to check whether the command-line options are valid or not. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public CmdLineParser(CmdLineOptions stdOptions,
String[] args)
stdOptions - List of standard optionsargs - Command line arguments| Method Detail |
public boolean isValid()
public String getOptionValue(String name)
name - Name of the option
public String getOptionName(int index)
index - Index of the option
public List getParsedOptionsAsList()
public List getNonStdOptions()
public CmdLineOptions getParsedOptions()
public int getNumOfOptions()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||