Defines a validateable constraint.
| Type Params | Return Type | Name and description |
|---|---|---|
|
java.lang.String |
getName()@return The name of the constraint |
|
java.lang.Object |
getParameter()@return The parameter to the constraint |
|
java.lang.String |
getPropertyName()@return The property name of the constraint |
|
boolean |
isValid()Return whether the constraint is valid for the owning class |
|
boolean |
supports(java.lang.Class type)Returns whether the constraint supports being applied against the specified type; |
|
void |
validate(java.lang.Object target, java.lang.Object propertyValue, org.springframework.validation.Errors errors)Validate this constraint against a property value. |
Return whether the constraint is valid for the owning class
Returns whether the constraint supports being applied against the specified type;
type - The type to supportValidate this constraint against a property value. If implementation is vetoing (isVetoing() method returns true), then it could return 'true' to stop further validation.
propertyValue - The property value to validateerrors - The errors instance to record errors against