public static enum CommandLineOption.Cardinality extends java.lang.Enum<CommandLineOption.Cardinality>
CommandLineOption.cardinality()| Enum Constant and Description |
|---|
ANY
Indicates that the annotated command line option may appear any number of times.
|
MANDATORY
Indicates that the annotated command line option must appear exactly once.
|
ONCE_OR_MORE
Indicates that the annotated command line option must appear once or multiple times.
|
OPTIONAL
Indicates that the annotated command line option must appear zero times or once.
|
| Modifier and Type | Method and Description |
|---|---|
static CommandLineOption.Cardinality |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static CommandLineOption.Cardinality[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CommandLineOption.Cardinality OPTIONAL
public static final CommandLineOption.Cardinality MANDATORY
public static final CommandLineOption.Cardinality ONCE_OR_MORE
public static final CommandLineOption.Cardinality ANY
public static CommandLineOption.Cardinality[] values()
for (CommandLineOption.Cardinality c : CommandLineOption.Cardinality.values()) System.out.println(c);
public static CommandLineOption.Cardinality 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 null