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