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
ConstructorsModifierConstructorDescriptionprotectedCreate given the create request -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:ValidationAdapterExecute validations for the given value.- Specified by:
validatein 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:
trueif validation should continue,falseotherwise
-