|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.openstego.util.CmdLineOptions
Class to store the list of command line options
CmdLineParser
Constructor Summary | |
CmdLineOptions()
Default constructor |
Method Summary | |
void |
add(CmdLineOption option)
Method to add the command-line option |
void |
add(String name,
String altName,
int type,
boolean takesArg)
Overloaded method to add the command-line option |
List |
getList()
Method to get the list of the given options |
CmdLineOption |
getOption(int index)
Method to get the standard option data by index |
CmdLineOption |
getOption(String name)
Method to get the standard option data by name |
String |
getOptionValue(String name)
Method to get the value of the given option |
int |
size()
Method to get the number of the given options |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public CmdLineOptions()
Method Detail |
public void add(CmdLineOption option)
option
- Command-line optionpublic void add(String name, String altName, int type, boolean takesArg)
name
- Name of the optionaltName
- Alternate name of the optiontype
- Type of the optiontakesArg
- Flag to indicate whether the option takes argument or notpublic CmdLineOption getOption(String name)
name
- Name of the option
public CmdLineOption getOption(int index)
index
- Index of the option
public String getOptionValue(String name)
name
- Name of the option
public List getList()
public int size()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |