public class RangeConstraint extends AbstractConstraint
classShortName, constraintOwningClass, constraintParameter, constraintPropertyName, messageSource| Constructor and Description |
|---|
RangeConstraint() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getName() |
groovy.lang.Range |
getRange() |
protected void |
processValidate(java.lang.Object target,
java.lang.Object propertyValue,
org.springframework.validation.Errors errors) |
void |
setParameter(java.lang.Object constraintParameter)
The parameter which the constraint is validated against.
|
boolean |
supports(java.lang.Class type)
Returns whether the constraint supports being applied against the specified type;
|
checkState, getDefaultMessage, getParameter, getPropertyName, isValid, rejectValue, rejectValue, rejectValue, rejectValue, rejectValue, rejectValueWithDefaultMessage, setMessageSource, setOwningClass, setPropertyName, skipBlankValues, skipNullValues, toString, validatepublic groovy.lang.Range getRange()
public boolean supports(java.lang.Class type)
Constrainttype - The type to supportpublic void setParameter(java.lang.Object constraintParameter)
ConstraintsetParameter in interface ConstraintsetParameter in class AbstractConstraintconstraintParameter - The constraintParameter to set.public java.lang.String getName()
protected void processValidate(java.lang.Object target,
java.lang.Object propertyValue,
org.springframework.validation.Errors errors)
processValidate in class AbstractConstraint