public class AllowedEnumValuesRestriction extends AbstractAllowedValuesRestriction
CASE_INSENSITIVE, CASE_SENSITIVE, caseInsensitive, rawValues| Constructor and Description |
|---|
AllowedEnumValuesRestriction(Class<? extends Enum<?>> cls) |
| Modifier and Type | Method and Description |
|---|---|
<T> void |
preValidate(ParseState<T> state,
ArgumentsMetadata arguments,
String value)
Method that is called before Airline attempts to convert a string
argument received into a strongly typed Java value
|
<T> void |
preValidate(ParseState<T> state,
OptionMetadata option,
String value)
Method that is called before Airline attempts to convert a string
argument received into a strongly typed Java value
|
asObjects, getAllowedValues, getContentBlock, getFormat, getPreamble, numContentBlocksfinalValidate, finalValidate, getArgumentTitle, getArgumentTitle, getOptionTitle, postValidate, postValidatepublic <T> void preValidate(ParseState<T> state, OptionMetadata option, String value)
OptionRestrictionpreValidate in interface OptionRestrictionpreValidate in class AbstractCommonRestrictionstate - Parser stateoption - Option meta-datavalue - String valuepublic <T> void preValidate(ParseState<T> state, ArgumentsMetadata arguments, String value)
ArgumentsRestrictionpreValidate in interface ArgumentsRestrictionpreValidate in class AbstractCommonRestrictionstate - Parser statearguments - Arguments meta-datavalue - String valueCopyright © 2012–2022. All rights reserved.