|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.openstego.util.CmdLineOptions
public class 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(java.lang.String name,
java.lang.String altName,
int type,
boolean takesArg)
Overloaded method to add the command-line option |
java.util.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(java.lang.String name)
Method to get the standard option data by name |
java.lang.String |
getOptionValue(java.lang.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(java.lang.String name, java.lang.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(java.lang.String name)
name
- Name of the option
public CmdLineOption getOption(int index)
index
- Index of the option
public java.lang.String getOptionValue(java.lang.String name)
name
- Name of the option
public java.util.List getList()
public int size()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |