public class LimitedStringValidator extends FilledStringValidator
| Constructor and Description |
|---|
LimitedStringValidator(int minLength,
int maxLength) |
| Modifier and Type | Method and Description |
|---|---|
ValidationResult |
validate(Object value)
Validates: applies the validation from
FilledStringValidator and also check that value's length
is between the minimum and maximum length passed to the constructor. |
public LimitedStringValidator(int minLength,
int maxLength)
public ValidationResult validate(Object value)
FilledStringValidator and also check that value's length
is between the minimum and maximum length passed to the constructor.validate in interface Validatorvalidate in class FilledStringValidatorvalue - The object to checkCopyright © 2012-2016 Graylog, Inc.. All Rights Reserved.