public class NullableConstraint extends AbstractVetoingConstraint
Constructor and Description |
---|
NullableConstraint() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getName() |
boolean |
isNullable() |
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;
|
validateWithVetoing
getParameter, getPropertyName, isValid, rejectValue, rejectValue, rejectValue, rejectValue, rejectValue, rejectValueWithDefaultMessage, setMessageSource, setOwningClass, setPropertyName, toString, validate
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
getParameter, getPropertyName, isValid, setMessageSource, setOwningClass, setPropertyName, validate
public boolean isNullable()
public boolean supports(java.lang.Class type)
Constraint
type
- The type to supportpublic void setParameter(java.lang.Object constraintParameter)
Constraint
setParameter
in interface Constraint
setParameter
in class AbstractConstraint
constraintParameter
- The constraintParameter to set.public java.lang.String getName()