org.srplib.validation
Class StringMaxLengthValidator
java.lang.Object
org.srplib.validation.AbstractValidator<String>
org.srplib.validation.StringLengthValidator
org.srplib.validation.StringMaxLengthValidator
- All Implemented Interfaces:
- Validator<String>
public class StringMaxLengthValidator
- extends StringLengthValidator
Validates if string length is not more than specified value.
- Author:
- Q-GMA
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StringMaxLengthValidator
public StringMaxLengthValidator(int maximum)
- Creates validators with specified range.
- Parameters:
maximum - maximal string length (inclusive).
newError
protected ValidationError newError()
- Overrides:
newError in class StringLengthValidator
Copyright © 2012. All Rights Reserved.