Represents a constrained object
| Type Params | Return Type | Name and description |
|---|---|---|
|
void |
applyConstraint(java.lang.String constraintName, java.lang.Object constrainingValue)Applies the given constraint |
|
java.lang.String |
getFormat()@return The format of the value |
|
java.util.List |
getInList()@return Constrains the be within the list of given values |
|
java.lang.String |
getMatches()@return The string this constrained matches |
|
java.lang.Comparable |
getMax()@return Returns the maximum possible value. |
|
java.lang.Integer |
getMaxSize()@return The maximum size |
|
java.lang.Comparable |
getMin()@return Returns the minimum possible value. |
|
java.lang.Integer |
getMinSize()@return The minimum size |
|
java.lang.Object |
getNotEqual()@return The value this constrained should not be equal to |
|
int |
getOrder()@return The order of the value |
|
java.lang.Class |
getOwner()@return The owning class |
|
groovy.lang.Range |
getRange()@return Constrains the be within the range of given values |
|
java.lang.Integer |
getScale()@return The scale for decimal values |
|
groovy.lang.Range |
getSize()@return A range which represents the size constraints from minimum to maximum value |
|
java.lang.String |
getWidget()@return The widget of the property |
|
boolean |
hasAppliedConstraint(java.lang.String constraint)Whether the given constraint has been applied |
|
boolean |
isBlank()@return Whether blank values are allowed |
|
boolean |
isCreditCard()@return Whether this is a credit card string |
|
boolean |
isDisplay()@return Whether the value should be displayed |
|
boolean |
isEditable()@return Whether the value is editable |
|
boolean |
isEmail()@return Whether this is an email |
|
boolean |
isNullable()@return Whether the value is nullable |
|
boolean |
isPassword()@return Whether the value is a password or not |
|
boolean |
isUrl()@return Whether the value is a URL |
Applies the given constraint
constraintName - The name of the constraintconstrainingValue - The constraining value
Whether the given constraint has been applied
constraint - The name of the constraint