public class BlankConstraint extends AbstractVetoingConstraint
classShortName, constraintOwningClass, constraintParameter, constraintPropertyName, messageSource| Constructor and Description |
|---|
BlankConstraint() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getName() |
java.lang.Object |
getParameter() |
boolean |
isBlank() |
protected boolean |
processValidateWithVetoing(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.
|
protected boolean |
skipBlankValues() |
boolean |
supports(java.lang.Class type)
Returns whether the constraint supports being applied against the specified type;
|
processValidate, validateWithVetoingcheckState, getDefaultMessage, getPropertyName, isValid, rejectValue, rejectValue, rejectValue, rejectValue, rejectValue, rejectValueWithDefaultMessage, setMessageSource, setOwningClass, setPropertyName, skipNullValues, toString, validateclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetPropertyName, isValid, setMessageSource, setOwningClass, setPropertyName, validatepublic boolean supports(java.lang.Class type)
Constrainttype - The type to supportpublic java.lang.Object getParameter()
getParameter in interface ConstraintgetParameter in class AbstractConstraintpublic boolean isBlank()
public void setParameter(java.lang.Object constraintParameter)
ConstraintsetParameter in interface ConstraintsetParameter in class AbstractConstraintconstraintParameter - The constraintParameter to set.public java.lang.String getName()
protected boolean skipBlankValues()
skipBlankValues in class AbstractConstraintprotected boolean processValidateWithVetoing(java.lang.Object target,
java.lang.Object propertyValue,
org.springframework.validation.Errors errors)
processValidateWithVetoing in class AbstractVetoingConstraint