An interface for a constrained property
| Type Params | Return Type | Name and description |
|---|---|---|
|
void |
applyConstraint(java.lang.String constraintName, java.lang.Object constrainingValue)Apply a named constraint |
|
Constraint |
getAppliedConstraint(java.lang.String name)Obtain an applied constraint |
|
java.util.Collection<Constraint> |
getAppliedConstraints()@return Returns the appliedConstraints. |
|
java.lang.Class |
getOwner()@return The owner |
|
java.lang.String |
getPropertyName()@return The name of the property constrained |
|
java.lang.Class<?> |
getPropertyType()@return Returns the propertyType. |
|
boolean |
hasAppliedConstraint(java.lang.String constraintName)@param constraintName The name of the constraint to check |
|
boolean |
supportsContraint(java.lang.String constraintName)Check whether a given constraint type is supported |
|
void |
validate(java.lang.Object target, java.lang.Object propertyValue, org.springframework.validation.Errors errors)Validate this constrainted property against specified property value |
| Methods inherited from class | Name |
|---|---|
interface Constrained |
applyConstraint, getFormat, getInList, getMatches, getMax, getMaxSize, getMin, getMinSize, getNotEqual, getOrder, getOwner, getRange, getScale, getSize, getWidget, hasAppliedConstraint, isBlank, isCreditCard, isDisplay, isEditable, isEmail, isNullable, isPassword, isUrl |
Apply a named constraint
constraintName - The name of the constraintconstrainingValue - The value to constrain byObtain an applied constraint
name - The name
constraintName - The name of the constraint to checkCheck whether a given constraint type is supported
constraintName - The name of the constraintValidate this constrainted property against specified property value
target - The target object to validatepropertyValue - The value of the property to validateerrors - The Errors instances to report errors to