A registry of Constraint factories
Type | Name and description |
---|---|
java.lang.String |
DEFAULT_CONSTRAINTS |
Type Params | Return Type | Name and description |
---|---|---|
|
void |
addConstraint(java.lang.Class<? extends Constraint> constraintClass, java.util.List<java.lang.Class> targetPropertyTypes) Adds a constraint for the given class |
|
void |
addConstraint(java.lang.Class<? extends Constraint> constraintClass) Adds a constraint for the given class |
|
void |
addConstraintFactory(ConstraintFactory constraintFactory) Adds a constraint factory |
|
java.util.List<ConstraintFactory> |
findConstraintFactories(java.lang.String name) Finds a named constraint |
<T extends Constraint> |
java.util.List<ConstraintFactory<T>> |
findConstraintFactories(java.lang.Class<T> constraintType) Finds a constraint by class |
Adds a constraint for the given class
constraintClass
- The constraint classtargetPropertyTypes
- the target types if anyAdds a constraint for the given class
constraintClass
- The constraint classAdds a constraint factory
name
- The name of the constraint (example: nullable, blank etc.)constraintFactory
- The constraint factoryFinds a named constraint
name
- The short name of the constraintFinds a constraint by class
name
- The short name of the constraint