public interface ConstrainedProperty extends Constrained
An interface for a constrained property
Type Params | Return Type | Name and description |
---|---|---|
|
public void |
applyConstraint(java.lang.String constraintName, java.lang.Object constrainingValue) Apply a named constraint |
|
public Constraint |
getAppliedConstraint(java.lang.String name) Obtain an applied constraint |
|
public java.util.Collection<Constraint> |
getAppliedConstraints()
|
|
public java.lang.Class |
getOwner()
|
|
public java.lang.String |
getPropertyName()
|
|
public java.lang.Class<?> |
getPropertyType()
|
|
public boolean |
hasAppliedConstraint(java.lang.String constraintName)
|
|
public boolean |
supportsContraint(java.lang.String constraintName) Check whether a given constraint type is supported |
|
public void |
validate(java.lang.Object target, java.lang.Object propertyValue, 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