public static enum CommandLineParser.ParamAffinity extends java.lang.Enum<CommandLineParser.ParamAffinity>
| Enum Constant and Description |
|---|
FORBIDDEN
Parameters are not allowed for this flag.
|
OPTIONAL
The flag can have a parameter, but it is optional.
|
REQUIRED
The flag requires a parameter.
|
| Modifier and Type | Method and Description |
|---|---|
static CommandLineParser.ParamAffinity |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static CommandLineParser.ParamAffinity[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CommandLineParser.ParamAffinity FORBIDDEN
public static final CommandLineParser.ParamAffinity OPTIONAL
public static final CommandLineParser.ParamAffinity REQUIRED
public static CommandLineParser.ParamAffinity valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic static CommandLineParser.ParamAffinity[] values()
for (CommandLineParser.ParamAffinity c : CommandLineParser.ParamAffinity.values()) System.out.println(c);