Package grails.validation
Interface Constrained
-
public interface ConstrainedA interface for something that is constrained by various criteria- Since:
- 2.4
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidapplyConstraint(java.lang.String constraintName, java.lang.Object constrainingValue)java.lang.StringgetFormat()java.util.ListgetInList()java.lang.StringgetMatches()java.lang.ComparablegetMax()java.lang.IntegergetMaxSize()java.lang.ComparablegetMin()java.lang.IntegergetMinSize()java.lang.ObjectgetNotEqual()intgetOrder()java.lang.ClassgetOwner()java.lang.Class<?>getPropertyType()groovy.lang.RangegetRange()java.lang.IntegergetScale()groovy.lang.RangegetSize()booleanhasAppliedConstraint(java.lang.String constraintName)booleanisBlank()booleanisCreditCard()booleanisDisplay()booleanisEditable()booleanisEmail()booleanisNullable()booleanisPassword()booleanisUrl()booleansupportsContraint(java.lang.String constraintName)
-
-
-
Method Detail
-
hasAppliedConstraint
boolean hasAppliedConstraint(java.lang.String constraintName)
- Parameters:
constraintName- The name of the constraint to check- Returns:
- Returns true if the specified constraint name is being applied to this property
-
getPropertyType
java.lang.Class<?> getPropertyType()
- Returns:
- Returns the propertyType.
-
getMax
java.lang.Comparable getMax()
- Returns:
- Returns the maximum possible value.
-
getMin
java.lang.Comparable getMin()
- Returns:
- Returns the minimum possible value.
-
getInList
java.util.List getInList()
- Returns:
- Constrains the be within the list of given values
-
getRange
groovy.lang.Range getRange()
- Returns:
- Constrains the be within the range of given values
-
getScale
java.lang.Integer getScale()
-
getSize
groovy.lang.Range getSize()
-
isBlank
boolean isBlank()
-
isEmail
boolean isEmail()
-
isCreditCard
boolean isCreditCard()
-
getMatches
java.lang.String getMatches()
-
getNotEqual
java.lang.Object getNotEqual()
-
getMaxSize
java.lang.Integer getMaxSize()
-
getMinSize
java.lang.Integer getMinSize()
-
isNullable
boolean isNullable()
-
isUrl
boolean isUrl()
-
isDisplay
boolean isDisplay()
-
isEditable
boolean isEditable()
-
getOrder
int getOrder()
-
getFormat
java.lang.String getFormat()
-
isPassword
boolean isPassword()
-
supportsContraint
boolean supportsContraint(java.lang.String constraintName)
-
applyConstraint
void applyConstraint(java.lang.String constraintName, java.lang.Object constrainingValue)
-
getOwner
java.lang.Class getOwner()
-
-