public class LengthRule extends Rule<LengthRule>
Rule.PriorityComparator| Constructor and Description |
|---|
LengthRule(java.lang.Integer min,
java.lang.Integer max) |
| Modifier and Type | Method and Description |
|---|---|
LengthRule |
allowEmpty() |
protected void |
checkInstance(ValidatorView view) |
void |
checkView(ValidatorView view) |
getPriority, setContext, setErrorMessage, setErrorMessage, setErrorMessage, setErrorMessage, setPriority, validatepublic void checkView(ValidatorView view) throws ValidationException
checkView in class Rule<LengthRule>ValidationExceptionpublic LengthRule allowEmpty()
protected void checkInstance(ValidatorView view) throws java.lang.IllegalArgumentException
checkInstance in class Rule<LengthRule>java.lang.IllegalArgumentException