public interface Constraint
Defines a validateable constraint.
Type Params | Return Type | Name and description |
---|---|---|
|
public java.lang.String |
getName()
|
|
public java.lang.Object |
getParameter()
|
|
public java.lang.String |
getPropertyName()
|
|
public boolean |
isValid() Return whether the constraint is valid for the owning class |
|
public boolean |
supports(java.lang.Class type) Returns whether the constraint supports being applied against the specified type; |
|
public 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