public static enum CommandFlags.UnknownFlagBehavior extends Enum<CommandFlags.UnknownFlagBehavior>
Enum Constant and Description |
---|
ACCEPT_NONVALUE
Mark the flag as a non-value flag.
|
ACCEPT_VALUE
Mark the flag as a string-valued flag.
|
ERROR
Throw an
ArgumentParseException when an unknown flag is
encountered. |
IGNORE
Act as if the unknown flag is an ordinary argument, allowing the
parsers specified in
CommandFlags.Builder.buildWith(CommandElement) to
attempt to parse the element instead. |
Modifier and Type | Method and Description |
---|---|
static CommandFlags.UnknownFlagBehavior |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CommandFlags.UnknownFlagBehavior[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CommandFlags.UnknownFlagBehavior ERROR
ArgumentParseException
when an unknown flag is
encountered.public static final CommandFlags.UnknownFlagBehavior ACCEPT_NONVALUE
public static final CommandFlags.UnknownFlagBehavior ACCEPT_VALUE
public static final CommandFlags.UnknownFlagBehavior IGNORE
CommandFlags.Builder.buildWith(CommandElement)
to
attempt to parse the element instead.public static CommandFlags.UnknownFlagBehavior[] values()
for (CommandFlags.UnknownFlagBehavior c : CommandFlags.UnknownFlagBehavior.values()) System.out.println(c);
public static CommandFlags.UnknownFlagBehavior valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null