Class LengthValidator

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

public class LengthValidator extends AbstractStringValidator implements ConfiguredProvider
String value length validation - accepts plain string and collection of strings, for basic behavior like null/blank values handling and collections support see AbstractStringValidator. Validator trims String value before the length validation, can be disabled by KEY_TRIM_DISABLED boolean configuration entry set to true.

Configuration have to be always provided, with at least one of KEY_MIN and KEY_MAX.