public class TextValidator extends DefaultValidator
Modifier and Type | Field and Description |
---|---|
protected Integer |
_maxLength
Does the value has a max length
|
_invalidText, _isMandatory, _pluginName, _regexp, _smanager
Constructor and Description |
---|
TextValidator() |
Modifier and Type | Method and Description |
---|---|
void |
configure(Configuration configuration) |
Map<String,Object> |
getConfiguration()
Retrieves the configuration of the validator.
|
protected String |
getText(Object value)
Get the text
|
protected void |
validateArrayValues(Object[] values,
Errors errors)
Validates a array of values.
|
protected void |
validateSingleValue(Object value,
Errors errors)
Validates a single value.
|
service, setPluginInfo, validate
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
protected Integer _maxLength
public TextValidator()
public void configure(Configuration configuration) throws ConfigurationException
configure
in interface Configurable
configure
in class DefaultValidator
ConfigurationException
public Map<String,Object> getConfiguration()
Validator
getConfiguration
in interface Validator
getConfiguration
in class DefaultValidator
protected void validateSingleValue(Object value, Errors errors)
DefaultValidator
validateSingleValue
in class DefaultValidator
value
- the value to validate (can be null
).errors
- the structure to populate if the validation failed.protected void validateArrayValues(Object[] values, Errors errors)
DefaultValidator
validateArrayValues
in class DefaultValidator
values
- the values to validateerrors
- the structure to populate if the validation failed.