Evaluates and returns constraints.
Modifiers | Name | Description |
---|---|---|
java.lang.String |
BEAN_NAME |
|
java.lang.String |
CONSTRAINTS_GROOVY_SCRIPT |
|
java.lang.String |
PROPERTY_NAME |
Type Params | Return Type | Name and description |
---|---|---|
|
java.util.Map<java.lang.String, Constrained> |
evaluate(java.lang.Class cls) Evaluate constraints for the given class |
|
java.util.Map<java.lang.String, Constrained> |
evaluate(java.lang.Class cls, boolean defaultNullable) Evaluate constraints for the given class |
|
java.util.Map<java.lang.String, Constrained> |
evaluate(GrailsDomainClass cls) Evaluate constraints for the given class |
|
java.util.Map<java.lang.String, Constrained> |
evaluate(java.lang.Object object, GrailsDomainClassProperty[] properties) Evaluate constraints for the given object and properties |
|
java.util.Map<java.lang.String, Constrained> |
evaluate(java.lang.Class<?> cls, GrailsDomainClassProperty[] properties) Evaluate constraints for the given Class and properties |
|
java.util.Map<java.lang.String, java.lang.Object> |
getDefaultConstraints() The default constraints to use |
Evaluate constraints for the given class
cls
- The class to evaluate constraints forEvaluate constraints for the given class
cls
- The class to evaluate constraints fordefaultNullable
- indicates if properties are nullable by defaultEvaluate constraints for the given class
cls
- The class to evaluate constraints forEvaluate constraints for the given object and properties
object
- The objectproperties
- The domain class propertiesEvaluate constraints for the given Class and properties
cls
- The objectproperties
- The domain class propertiesThe default constraints to use