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