java.lang.Object
io.avaje.validation.adapter.ContainerAdapter<T>
- Type Parameters:
T
- the type we are validating
- All Implemented Interfaces:
ValidationAdapter<T>
Adapter that validates container types.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.avaje.validation.adapter.ValidationAdapter
ValidationAdapter.Primitive
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final ValidationAdapter
<T> Adapter placed on the container typeprotected ValidationAdapter
<Object> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionandThenMulti
(ValidationAdapter<?> adapter) Compose the given adapter with the multiAdapter of this ContainerAdapter for validating multiple items.protected void
validateAll
(Iterable<Object> value, ValidationRequest req, String propertyName) Execute validations for all items in the given iterableprotected void
validateArray
(Object[] value, ValidationRequest req, String propertyName) Execute validations for all items in the given array
-
Field Details
-
initalAdapter
Adapter placed on the container type -
multiAdapter
-
-
Constructor Details
-
ContainerAdapter
- Parameters:
initialAdapter
- initial adapter that can be used to validate the container itself
-
-
Method Details
-
andThenMulti
Compose the given adapter with the multiAdapter of this ContainerAdapter for validating multiple items. -
validateAll
Execute validations for all items in the given iterable -
validateArray
Execute validations for all items in the given array
-