|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<GetOpts.OptType>
edu.mayo.bsi.ngsportal.server.GetOpts.OptType
public static enum GetOpts.OptType
Enumerated Type to specify the type of option. You can have multiple kOnlyParam,
and also have kOptionalParam and kRequiredParam, but all kOnlyParam must come before
any kRequiredParam, or an error will still be reported if have an Only and not one of the
otherwise required parameters.
An ignore param, if present, gives the param the user can use to tell GetOpts to ignore any
parameters it doesn't recognize (i.e. if the program defines "--ignore" as an Ignore param,
and the user specifies --ignore, then any unrecognized parameters will be ignored, rather
than generating an error.
| Enum Constant Summary | |
|---|---|
kIgnoreParam
A Parameter that allows the program to ignore unrecognized parameters |
|
kOnlyParam
Parameter that can be the only parameter (i.e. |
|
kOptionalParam
Parameter that is optional |
|
kRequiredParam
Parameter that is required |
|
| Method Summary | |
|---|---|
static GetOpts.OptType |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static GetOpts.OptType[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
| Methods inherited from class java.lang.Enum |
|---|
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final GetOpts.OptType kOptionalParam
public static final GetOpts.OptType kRequiredParam
public static final GetOpts.OptType kOnlyParam
public static final GetOpts.OptType kIgnoreParam
| Method Detail |
|---|
public static GetOpts.OptType[] values()
for (GetOpts.OptType c : GetOpts.OptType.values()) System.out.println(c);
public static GetOpts.OptType valueOf(String name)
name - the name of the enum constant to be returned.
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is null
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||