|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecttribble.util.CmdOptDef
Command line option argument descriptor. This is used by the CmdOptIter class to describe one or more command line options and their associated parameter types.
CmdOptIter| Field Summary | |
static int |
BOOL
Boolean (enable/disable) parameter |
static int |
LIST
Parameter is a list |
static int |
NONE
No parameter |
static int |
NUM
Numeric integer parameter |
static int |
OPT
Optional parameter |
static int |
STRING
String parameter |
static int |
VERS
Class version number |
| Constructor Summary | |
CmdOptDef(char name)
Constructor. |
|
CmdOptDef(char name,
int flags)
Constructor. |
|
CmdOptDef(char name,
int flags,
char sep)
Constructor. |
|
CmdOptDef(java.lang.String name)
Constructor. |
|
CmdOptDef(java.lang.String name,
int flags)
Constructor. |
|
CmdOptDef(java.lang.String name,
int flags,
char sep)
Constructor. |
|
| Method Summary | |
char |
firstChar()
Retrieves the first character of this command option's name (following the '-' or '+' character). |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int VERS
public static final int NONE
public static final int STRING
public static final int NUM
public static final int OPT
public static final int BOOL
public static final int LIST
| Constructor Detail |
public CmdOptDef(char name)
name - The character naming this option.public CmdOptDef(java.lang.String name)
name - The character(s) naming this option.
public CmdOptDef(char name,
int flags)
name - The character naming this option.flags - The type and modifiers of this option.
public CmdOptDef(java.lang.String name,
int flags)
name - The character(s) naming this option.flags - The type and modifiers of this option.
public CmdOptDef(char name,
int flags,
char sep)
name - The character naming this option.flags - The type and modifiers of this option.sep - The character that is used to separate items in this option's parameter
list.
public CmdOptDef(java.lang.String name,
int flags,
char sep)
name - The character(s) naming this option.flags - The type and modifiers of this option.sep - The character that is used to separate items in this option's parameter
list.| Method Detail |
public char firstChar()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||