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