Class OptionsValidator

All Implemented Interfaces:
ConfiguredProvider, Provider, ProviderFactory<Validator>, SimpleValidator, Validator, ValidatorFactory

public class OptionsValidator extends AbstractStringValidator implements ConfiguredProvider
Validation against list of allowed values - accepts plain string and collection of strings (every value is validated against allowed values), for basic behavior like null/blank values handling and collections support see AbstractStringValidator.

Configuration have to be always provided using KEY_OPTIONS option, which have to contain List of String values.