public class MaxSizeConstraint extends AbstractConstraint
classShortName, constraintOwningClass, constraintParameter, constraintPropertyName, messageSource| Constructor and Description |
|---|
MaxSizeConstraint() |
| Modifier and Type | Method and Description |
|---|---|
int |
getMaxSize() |
java.lang.String |
getName() |
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 int getMaxSize()
public void setParameter(java.lang.Object constraintParameter)
ConstraintsetParameter in interface ConstraintsetParameter in class AbstractConstraintconstraintParameter - The constraintParameter to set.public java.lang.String getName()
public boolean supports(java.lang.Class type)
Constrainttype - The type to supportprotected void processValidate(java.lang.Object target,
java.lang.Object propertyValue,
org.springframework.validation.Errors errors)
processValidate in class AbstractConstraint