public class IPv4RestrictionOptionType extends StringOptionType
Modifier and Type | Field and Description |
---|---|
static IPv4RestrictionOptionType |
INSTANCE |
Modifier and Type | Method and Description |
---|---|
boolean |
isEmptyAllowed()
Returns if the option maybe empty.
|
void |
validate(java.lang.String value,
java.util.Locale locale,
ValidationContext cx)
Validates the given value for this option type.
|
getDataTypeHint, getValueProvider, isMultiValue, isRestricted
public static final IPv4RestrictionOptionType INSTANCE
public boolean isEmptyAllowed()
OptionType
isEmptyAllowed
in interface OptionType
isEmptyAllowed
in class StringOptionType
public void validate(java.lang.String value, java.util.Locale locale, ValidationContext cx) throws OptionValueValidationException
OptionType
OptionValueValidationException
if validation failesvalidate
in interface OptionType
validate
in class StringOptionType
value
- The value to be validatedlocale
- A locale that may be used to give back an error message in the thrown validation exceptioncx
- Context information for the validationOptionValueValidationException
- if validation fails