A trait that can be applied to make any object Validateable
Type | Name and description |
---|---|
org.springframework.validation.Errors |
errors |
Type Params | Return Type | Name and description |
---|---|---|
|
void |
clearErrors() Clear the errors |
|
static boolean |
defaultNullable() |
|
static java.util.Map<java.lang.String, Constrained> |
getConstraintsMap() @return The map of applied constraints |
|
org.springframework.validation.Errors |
getErrors() @return The errors |
|
java.lang.Boolean |
hasErrors() @return Whether the object has errors |
|
void |
setErrors(org.springframework.validation.Errors errors) |
|
boolean |
validate() Validate the object |
|
boolean |
validate(groovy.lang.Closure<?>... adHocConstraintsClosures) Validate the object with the given adhoc constraints |
|
boolean |
validate(java.util.Map<java.lang.String, java.lang.Object> params) Validate the object with the given parameters |
|
boolean |
validate(java.util.Map<java.lang.String, java.lang.Object> params, groovy.lang.Closure<?>... adHocConstraintsClosures) Validate the object with the given parameters and adhoc constraints |
|
boolean |
validate(java.util.List fieldsToValidate) Validate the object for the given list of fields |
|
boolean |
validate(java.util.List fieldsToValidate, groovy.lang.Closure<?>... adHocConstraintsClosures) Validate the object for the given list of fields and adhoc constraints |
|
boolean |
validate(java.util.List fieldsToValidate, java.util.Map<java.lang.String, java.lang.Object> params) Validate the object for the given list of fields and parameters |
|
boolean |
validate(java.util.List fieldsToValidate, java.util.Map<java.lang.String, java.lang.Object> params, groovy.lang.Closure<?>... adHocConstraintsClosures) Validate the object for the given list of fields, parameters and adhoc constraints |
Clear the errors
Validate the object
Validate the object with the given adhoc constraints
Validate the object with the given parameters
Validate the object with the given parameters and adhoc constraints
Validate the object for the given list of fields
Validate the object for the given list of fields and adhoc constraints
Validate the object for the given list of fields and parameters
Validate the object for the given list of fields, parameters and adhoc constraints