@Deprecated public interface ConstraintsEvaluator
Evaluates and returns constraints.
| Type Params | Return Type | Name and description |
|---|---|---|
|
public Map<String, Constrained> |
evaluate(Class<?> cls)Evaluate constraints for the given class |
|
public Map<String, Constrained> |
evaluate(Class<?> cls, boolean defaultNullable)Evaluate constraints for the given class |
|
public Map<String, Constrained> |
evaluate(Class<?> cls, boolean defaultNullable, boolean useOnlyAdHocConstraints, Closure adHocConstraintsClosures)Evaluate constraints for the given class |
|
public Map<String, 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 fordefaultNullable - indicates if properties are nullable by defaultuseOnlyAdHocConstraints - indicates if evaluating without pre-declared constraintsadHocConstraintsClosures - ad-hoc constraints to evaluate for