|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.openstego.util.CmdLineParser
public class CmdLineParser
Utility to parse the command line parameters
Constructor Summary | |
---|---|
CmdLineParser(CmdLineOptions stdOptions,
java.lang.String[] args)
Default constructor |
Method Summary | |
---|---|
java.util.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 |
java.lang.String |
getOptionName(int index)
Method to get the name of the option by index |
java.lang.String |
getOptionValue(java.lang.String name)
Method to get the value of the given option (by name) |
CmdLineOptions |
getParsedOptions()
Get method for parsedOptions |
java.util.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, java.lang.String[] args)
stdOptions
- List of standard optionsargs
- Command line argumentsMethod Detail |
---|
public boolean isValid()
public java.lang.String getOptionValue(java.lang.String name)
name
- Name of the option
public java.lang.String getOptionName(int index)
index
- Index of the option
public java.util.List getParsedOptionsAsList()
public java.util.List getNonStdOptions()
public CmdLineOptions getParsedOptions()
public int getNumOfOptions()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |