java.lang.Object
io.avaje.validation.adapter.AbstractConstraintAdapter<T>
- All Implemented Interfaces:
ValidationAdapter<T>
- Direct Known Subclasses:
PrimitiveAdapter
Abstract Adapter that validates objects based on Constraint Annotations.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.avaje.validation.adapter.ValidationAdapter
ValidationAdapter.Primitive
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
Create given the create request -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.avaje.validation.adapter.ValidationAdapter
andThen, array, checkGroups, list, mapKeys, mapValues, optional, primitive, validate
-
Field Details
-
message
-
groups
-
-
Constructor Details
-
AbstractConstraintAdapter
Create given the create request
-
-
Method Details
-
isValid
Execute Constraint validations for the given object.- Parameters:
value
- the object to validate- Returns:
- false if a violation error should be added
-
validate
Description copied from interface:ValidationAdapter
Execute validations for the given value.- Specified by:
validate
in interfaceValidationAdapter<T>
- Parameters:
value
- The value to be validatedreq
- The validation request containing group/locale/violation informationpropertyName
- The name of the property being validated- Returns:
true
if validation should continue,false
otherwise
-