Package grails.validation
Interface Constrained
public interface Constrained
A interface for something that is constrained by various criteria
- Since:
- 2.4
-
Method Summary
Modifier and TypeMethodDescriptionvoidapplyConstraint(String constraintName, Object constrainingValue) getMax()getMin()intgetOrder()getOwner()Class<?>groovy.lang.RangegetRange()getScale()groovy.lang.RangegetSize()booleanhasAppliedConstraint(String constraintName) booleanisBlank()booleanbooleanbooleanbooleanisEmail()booleanbooleanbooleanisUrl()booleansupportsContraint(String constraintName)
-
Method Details
-
hasAppliedConstraint
- Parameters:
constraintName- The name of the constraint to check- Returns:
- Returns true if the specified constraint name is being applied to this property
-
getPropertyType
Class<?> getPropertyType()- Returns:
- Returns the propertyType.
-
getMax
Comparable getMax()- Returns:
- Returns the maximum possible value.
-
getMin
Comparable getMin()- Returns:
- Returns the minimum possible value.
-
getInList
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
Integer getScale() -
getSize
groovy.lang.Range getSize() -
isBlank
boolean isBlank() -
isEmail
boolean isEmail() -
isCreditCard
boolean isCreditCard() -
getMatches
String getMatches() -
getNotEqual
Object getNotEqual() -
getMaxSize
Integer getMaxSize() -
getMinSize
Integer getMinSize() -
isNullable
boolean isNullable() -
isUrl
boolean isUrl() -
isDisplay
boolean isDisplay() -
isEditable
boolean isEditable() -
getOrder
int getOrder() -
getFormat
String getFormat() -
isPassword
boolean isPassword() -
supportsContraint
-
applyConstraint
-
getOwner
Class getOwner()
-