|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sourceforge.openstego.util.CmdLineOption
Stores the master information about a command line option
CmdLineParser| Field Summary | |
static int |
TYPE_COMMAND
Command-line option type: COMMAND |
static int |
TYPE_OPTION
Command-line option type: OPTION |
| Constructor Summary | |
CmdLineOption(String name,
String altName,
int type,
boolean takesArgVal)
Default constructor |
|
| Method Summary | |
String |
getAltName()
Get method for altName |
String |
getName()
Get method for name |
int |
getType()
Get method for type |
String |
getValue()
Get method for value |
void |
setValue(String value)
Set method for value |
boolean |
takesArg()
Get method for takesArgVal |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int TYPE_COMMAND
public static final int TYPE_OPTION
| Constructor Detail |
public CmdLineOption(String name,
String altName,
int type,
boolean takesArgVal)
throws IllegalArgumentException
name - Name of the optionaltName - Altername name of the optiontype - Type of the optiontakesArgVal - Flag to indicate whether the option takes argument or not
IllegalArgumentException - If option type is TYPE_COMMAND and takesArgVal is specified as true| Method Detail |
public void setValue(String value)
value - Valuepublic String getName()
public String getAltName()
public int getType()
public boolean takesArg()
public String getValue()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||