public static class CommandTextAttributesParser.Attribute extends Object
| Modifier and Type | Field and Description |
|---|---|
static Collection<String> |
ALLOW_ALL_VALUES
Use this as the allowed values set when there is no fixed set of allowed values.
|
static Collection<String> |
BOOLEAN_VALUES
Use this as the allowed values set for a boolean attribute.
|
static String |
NO_DEFAULT_VALUE_BECAUSE_REQUIRED
Use this as the default attribute value when there should not be a default because the
attribute is required.
|
| Constructor and Description |
|---|
CommandTextAttributesParser.Attribute(String name,
Collection<String> allowedValues,
String defaultValue)
The definition of one supported attribute.
|
public static final Collection<String> ALLOW_ALL_VALUES
public static final Collection<String> BOOLEAN_VALUES
public static final String NO_DEFAULT_VALUE_BECAUSE_REQUIRED
public CommandTextAttributesParser.Attribute(String name, Collection<String> allowedValues, String defaultValue)
ALLOW_ALL_VALUES.
Non-required attributes must have default values. Required dattributes should map to a
default value of NO_DEFAULT_VALUE_BECAUSE_REQUIRED.name - The attribute name.allowedValues - The collection of allowed values, or ALLOW_ALL_VALUES if
there's no fixed set of allowed values.defaultValue - The default value, or NO_DEFAULT_VALUE_BECAUSE_REQUIRED if the
attribute is required.