Index
All Classes and Interfaces|All Packages|Serialized Form
A
- AbstractConstraintAdapter<T> - Class in io.avaje.validation.adapter
-
Abstract Adapter that validates objects based on Constraint Annotations.
- AbstractConstraintAdapter(ValidationContext.AdapterCreateRequest) - Constructor for class io.avaje.validation.adapter.AbstractConstraintAdapter
-
Create given the create request
- adapter(Class<? extends Annotation>, Map<String, Object>) - Method in interface io.avaje.validation.adapter.ValidationContext
-
Return the constraint adapter for the given annotation with attributes.
- adapter(Class<? extends Annotation>, Set<Class<?>>, String, Map<String, Object>) - Method in interface io.avaje.validation.adapter.ValidationContext
-
Return the constraint adapter for the given annotation with attributes.
- adapter(Class<T>) - Method in interface io.avaje.validation.adapter.ValidationContext
-
Return the adapter for the given type.
- adapter(Type) - Method in interface io.avaje.validation.adapter.ValidationContext
-
Return the adapter for the given type.
- add(ValidationContext.AdapterFactory) - Method in interface io.avaje.validation.Validator.Builder
-
Add a ValidationAdapter.Factory which provides ValidationAdapters to use.
- add(ValidationContext.AnnotationFactory) - Method in interface io.avaje.validation.Validator.Builder
-
Add a ValidationAdapter.Factory which provides ValidationAdapters to use.
- add(ValidatorCustomizer) - Method in interface io.avaje.validation.Validator.Builder
-
Add a Component which can provide multiple ValidationAdapters and or configuration.
- add(Class<? extends Annotation>, ValidationAdapter<T>) - Method in interface io.avaje.validation.Validator.Builder
-
Add a AnnotationValidationAdapter to use for the given type.
- add(Class<? extends Annotation>, Validator.AnnotationAdapterBuilder) - Method in interface io.avaje.validation.Validator.Builder
-
Add a AdapterBuilder which provides a Annotation ValidationAdapter to use for the given type.
- add(Type, ValidationAdapter<T>) - Method in interface io.avaje.validation.Validator.Builder
-
Add a ValidationAdapter to use for the given type.
- add(Type, Validator.AdapterBuilder) - Method in interface io.avaje.validation.Validator.Builder
-
Add a AdapterBuilder which provides a ValidationAdapter to use for the given type.
- addLocales(Locale...) - Method in interface io.avaje.validation.Validator.Builder
-
Adds additional Locales for this validator
- addResourceBundles(String...) - Method in interface io.avaje.validation.Validator.Builder
-
Lookup ResourceBundles with the given names for error message interpolation.
- addResourceBundles(ResourceBundle...) - Method in interface io.avaje.validation.Validator.Builder
-
Add ResourceBundles for error message interpolation
- addViolation(ValidationContext.Message, String) - Method in interface io.avaje.validation.adapter.ValidationRequest
-
Add a constraint violation for the given property.
- andThen(ValidationAdapter<? super T>) - Method in interface io.avaje.validation.adapter.ValidationAdapter
-
Compose this validation adapter with another adapter by applying the validations in sequence.
- andThenMulti(ValidationAdapter<?>) - Method in class io.avaje.validation.adapter.ContainerAdapter
-
Compose the given adapter with the multiAdapter of this ContainerAdapter for validating multiple items.
- annotationType() - Method in interface io.avaje.validation.adapter.ValidationContext.AdapterCreateRequest
-
Return the validation annotation type.
- array() - Method in interface io.avaje.validation.adapter.ValidationAdapter
-
Create an adapter for validating an array.
- attribute(String) - Method in interface io.avaje.validation.adapter.ValidationContext.AdapterCreateRequest
-
Return the attribute for the given key.
- attributes() - Method in interface io.avaje.validation.adapter.ValidationContext.AdapterCreateRequest
-
Return the annotation attributes.
- attributes() - Method in interface io.avaje.validation.adapter.ValidationContext.Message
-
Get the annotation attributes associated with the message.
B
- build() - Method in interface io.avaje.validation.Validator.Builder
-
Build and return the Validator instance with all the given adapters and factories registered.
- build(ValidationContext) - Method in interface io.avaje.validation.Validator.AdapterBuilder
-
Create a ValidationAdapter given the Validator instance.
- build(ValidationContext.AdapterCreateRequest) - Method in interface io.avaje.validation.Validator.AnnotationAdapterBuilder
-
Create a ValidationAdapter given the Validator instance.
- builder() - Static method in interface io.avaje.validation.Validator
-
Return the Builder used to build the Validator.
C
- CANON_EQ - Enum constant in enum class io.avaje.validation.adapter.RegexFlag
-
Enables canonical equivalence.
- CASE_INSENSITIVE - Enum constant in enum class io.avaje.validation.adapter.RegexFlag
-
Enables case-insensitive matching.
- check(Object, Class<?>...) - Method in interface io.avaje.validation.Validator
-
Validate the object returning the constraint violations.
- check(Object, Locale, Class<?>...) - Method in interface io.avaje.validation.Validator
-
Validate the object returning the constraint violations.
- checkGroups(Set<Class<?>>, ValidationRequest) - Method in interface io.avaje.validation.adapter.ValidationAdapter
-
Check if the validation request groups are empty or match any of the adapter's configured groups.
- clockProvider(Supplier<Clock>) - Method in interface io.avaje.validation.Validator.Builder
-
Contract for obtaining the Clock used as the reference for now when validating the
@Future
and@Past
constraints. - COMMENTS - Enum constant in enum class io.avaje.validation.adapter.RegexFlag
-
Permits whitespace and comments in pattern.
- ConstraintAdapter - Annotation Interface in io.avaje.validation.adapter
-
Marks a type as a Constraint Adapter to be registered automatically.
- ConstraintViolation - Record Class in io.avaje.validation
-
Describes a constraint violation.
- ConstraintViolation(String, String, String) - Constructor for record class io.avaje.validation.ConstraintViolation
-
Creates an instance of a
ConstraintViolation
record class. - ConstraintViolationException - Exception Class in io.avaje.validation
-
Exception holding a set of constraint violations.
- ConstraintViolationException(String, Set<ConstraintViolation>, List<Class<?>>) - Constructor for exception class io.avaje.validation.ConstraintViolationException
-
Create with the given constraint violations
- ContainerAdapter<T> - Class in io.avaje.validation.adapter
-
Adapter that validates container types.
- ContainerAdapter(ValidationAdapter<T>) - Constructor for class io.avaje.validation.adapter.ContainerAdapter
- context() - Method in interface io.avaje.validation.Validator
-
Return the validation context used to create adapters
- create(ValidationContext.AdapterCreateRequest) - Method in interface io.avaje.validation.adapter.ValidationContext.AnnotationFactory
-
Create and return a ValidationAdapter given the type and annotations or return null.
- create(Type, ValidationContext) - Method in interface io.avaje.validation.adapter.ValidationContext.AdapterFactory
-
Create and return a ValidationAdapter given the type and annotations or return null.
- crossParamAdapter(ValidationContext) - Method in interface io.avaje.validation.adapter.MethodAdapterProvider
- CrossParamConstraint - Annotation Interface in io.avaje.validation
-
Marks an method annotation as a CrossParamConstraint used for validating multiple method parameters
- ctx() - Method in interface io.avaje.validation.adapter.ValidationContext.AdapterCreateRequest
-
Return the context.
- customize(Validator.Builder) - Method in interface io.avaje.validation.spi.ValidatorCustomizer
-
Callback to customize a Validator.Builder instance.
- customize(Validator.Builder) - Method in interface io.avaje.validation.Validator.GeneratedComponent
-
Customize the Builder with generated ValidationAdapters.
D
- Default - Interface in io.avaje.validation.groups
-
Default Validation group.
- DOTALL - Enum constant in enum class io.avaje.validation.adapter.RegexFlag
-
Enables dotall mode.
E
- equals(Object) - Method in record class io.avaje.validation.ConstraintViolation
-
Indicates whether some other object is "equal to" this one.
- Example: - Search tag in annotation interface io.avaje.validation.adapter.ConstraintAdapter
- Section
F
- failFast(boolean) - Method in interface io.avaje.validation.Validator.Builder
-
Enable/Disable fail fast mode.
- field() - Method in record class io.avaje.validation.ConstraintViolation
-
Returns the value of the
field
record component.
G
- Generated - Annotation Interface in io.avaje.validation.spi
-
Marks source code that has been generated.
- getValue() - Method in enum class io.avaje.validation.adapter.RegexFlag
- groups - Variable in class io.avaje.validation.adapter.AbstractConstraintAdapter
- groups() - Method in interface io.avaje.validation.adapter.ValidationContext.AdapterCreateRequest
-
Return the groups this constraint is active for.
- groups() - Method in interface io.avaje.validation.adapter.ValidationRequest
-
The groups tied to this ValidationRequest
- groups() - Method in exception class io.avaje.validation.ConstraintViolationException
-
Return the groups used for validations.
H
- hashCode() - Method in record class io.avaje.validation.ConstraintViolation
-
Returns a hash code value for this object.
- hasViolations() - Method in interface io.avaje.validation.adapter.ValidationRequest
-
return true if there are violations in this request.
I
- ImportValidPojo - Annotation Interface in io.avaje.validation
-
Specify external types for which to generate Valid Adapters.
- initalAdapter - Variable in class io.avaje.validation.adapter.ContainerAdapter
-
Adapter placed on the container type
- interpolate(String, Map<String, Object>) - Method in interface io.avaje.validation.spi.MessageInterpolator
-
Interpolate the given message with the annotation attributes
- io.avaje.validation - module io.avaje.validation
- io.avaje.validation - package io.avaje.validation
- io.avaje.validation.adapter - package io.avaje.validation.adapter
- io.avaje.validation.groups - package io.avaje.validation.groups
- io.avaje.validation.spi - package io.avaje.validation.spi
-
SPI for the underlying validation adapters.
- isValid(boolean) - Method in class io.avaje.validation.adapter.PrimitiveAdapter
- isValid(byte) - Method in class io.avaje.validation.adapter.PrimitiveAdapter
- isValid(char) - Method in class io.avaje.validation.adapter.PrimitiveAdapter
- isValid(double) - Method in class io.avaje.validation.adapter.PrimitiveAdapter
- isValid(float) - Method in class io.avaje.validation.adapter.PrimitiveAdapter
- isValid(int) - Method in class io.avaje.validation.adapter.PrimitiveAdapter
- isValid(long) - Method in class io.avaje.validation.adapter.PrimitiveAdapter
- isValid(short) - Method in class io.avaje.validation.adapter.PrimitiveAdapter
- isValid(T) - Method in class io.avaje.validation.adapter.AbstractConstraintAdapter
-
Execute Constraint validations for the given object.
L
- list() - Method in interface io.avaje.validation.adapter.ValidationAdapter
-
Create an adapter for validating a list of values.
- locale() - Element in annotation interface io.avaje.validation.ValidMethod
- lookupkey() - Method in interface io.avaje.validation.adapter.ValidationContext.Message
-
Get the lookup key for the message.
M
- mapKeys() - Method in interface io.avaje.validation.adapter.ValidationAdapter
-
Create an adapter for validating map keys.
- mapValues() - Method in interface io.avaje.validation.adapter.ValidationAdapter
-
Create an adapter for validating map values.
- message - Variable in class io.avaje.validation.adapter.AbstractConstraintAdapter
- message() - Method in interface io.avaje.validation.adapter.ValidationContext.AdapterCreateRequest
-
Return the message to use
- message() - Method in record class io.avaje.validation.ConstraintViolation
-
Returns the value of the
message
record component. - message(String, Object...) - Method in interface io.avaje.validation.adapter.ValidationContext.AdapterCreateRequest
-
Build and return a message given the new message key and attributes
- message(String, Map<String, Object>) - Method in interface io.avaje.validation.adapter.ValidationContext
-
Create a message object using the given string.
- message(Map<String, Object>) - Method in interface io.avaje.validation.adapter.ValidationContext
-
Create a message object using the annotation attribute "message".
- messageInterpolator(MessageInterpolator) - Method in interface io.avaje.validation.Validator.Builder
-
Set the MessageInterpolator that will be used to parse and interpolate error messages
- MessageInterpolator - Interface in io.avaje.validation.spi
-
Reads an Annotation's attributes and the message template and interpolates the message
- MetaData - Annotation Interface in io.avaje.validation.spi
-
For internal use, holds metadata on generated adapters for use by code generation (Java annotation processing).
- MetaData.AnnotationFactory - Annotation Interface in io.avaje.validation.spi
-
For internal use, holds metadata on generated adapters that also have factories.
- MetaData.Factory - Annotation Interface in io.avaje.validation.spi
-
For internal use, holds metadata on generated adapters that also have factories.
- method() - Method in interface io.avaje.validation.adapter.MethodAdapterProvider
- MethodAdapterProvider - Interface in io.avaje.validation.adapter
- multiAdapter - Variable in class io.avaje.validation.adapter.ContainerAdapter
- MULTILINE - Enum constant in enum class io.avaje.validation.adapter.RegexFlag
-
Enables multiline mode.
N
- noop() - Method in interface io.avaje.validation.adapter.ValidationContext
-
Return a no-op adapter.
O
- optional() - Method in interface io.avaje.validation.adapter.ValidationAdapter
-
Create an adapter for validating an optional value.
P
- paramAdapters(ValidationContext) - Method in interface io.avaje.validation.adapter.MethodAdapterProvider
- path() - Method in record class io.avaje.validation.ConstraintViolation
-
Returns the value of the
path
record component. - popPath() - Method in interface io.avaje.validation.adapter.ValidationRequest
-
Pop the nested property path.
- primitive() - Method in class io.avaje.validation.adapter.PrimitiveAdapter
- primitive() - Method in interface io.avaje.validation.adapter.ValidationAdapter
-
Return a primitive adapter.
- PrimitiveAdapter<T> - Class in io.avaje.validation.adapter
- PrimitiveAdapter(ValidationContext.AdapterCreateRequest) - Constructor for class io.avaje.validation.adapter.PrimitiveAdapter
- provide() - Method in interface io.avaje.validation.adapter.MethodAdapterProvider
- pushPath(String) - Method in interface io.avaje.validation.adapter.ValidationRequest
-
Push the nested property path.
R
- RegexFlag - Enum Class in io.avaje.validation.adapter
- request(Locale, List<Class<?>>) - Method in interface io.avaje.validation.adapter.ValidationContext
-
Create a validation request with the specified locale and groups.
- returnAdapter(ValidationContext) - Method in interface io.avaje.validation.adapter.MethodAdapterProvider
S
- setDefaultLocale(Locale) - Method in interface io.avaje.validation.Validator.Builder
-
Set Default Locale for this validator.
T
- targetType() - Method in interface io.avaje.validation.adapter.ValidationContext.AdapterCreateRequest
-
Return the target type
- template() - Method in interface io.avaje.validation.adapter.ValidationContext.Message
-
Get the template for the message.
- temporalTolerance(Duration) - Method in interface io.avaje.validation.Validator.Builder
-
Define the acceptable margin of error when comparing date/time in temporal constraints.
- throwOnParamFailure() - Element in annotation interface io.avaje.validation.ValidMethod
- throwWithViolations() - Method in interface io.avaje.validation.adapter.ValidationRequest
-
Throw ConstraintViolationException if there are violations in this request.
- toString() - Method in record class io.avaje.validation.ConstraintViolation
-
Returns a string representation of this record class.
U
- UNICODE_CASE - Enum constant in enum class io.avaje.validation.adapter.RegexFlag
-
Enables Unicode-aware case folding.
- UNIX_LINES - Enum constant in enum class io.avaje.validation.adapter.RegexFlag
-
Enables Unix lines mode.
V
- validate(boolean, ValidationRequest, String) - Method in class io.avaje.validation.adapter.PrimitiveAdapter
- validate(boolean, ValidationRequest, String) - Method in interface io.avaje.validation.adapter.ValidationAdapter.Primitive
-
Validate using primitive boolean.
- validate(byte, ValidationRequest, String) - Method in class io.avaje.validation.adapter.PrimitiveAdapter
- validate(byte, ValidationRequest, String) - Method in interface io.avaje.validation.adapter.ValidationAdapter.Primitive
-
Validate using primitive byte.
- validate(char, ValidationRequest, String) - Method in class io.avaje.validation.adapter.PrimitiveAdapter
- validate(char, ValidationRequest, String) - Method in interface io.avaje.validation.adapter.ValidationAdapter.Primitive
-
Validate using primitive char.
- validate(double, ValidationRequest, String) - Method in class io.avaje.validation.adapter.PrimitiveAdapter
- validate(double, ValidationRequest, String) - Method in interface io.avaje.validation.adapter.ValidationAdapter.Primitive
-
Validate using primitive double.
- validate(float, ValidationRequest, String) - Method in class io.avaje.validation.adapter.PrimitiveAdapter
- validate(float, ValidationRequest, String) - Method in interface io.avaje.validation.adapter.ValidationAdapter.Primitive
-
Validate using primitive float.
- validate(int, ValidationRequest, String) - Method in class io.avaje.validation.adapter.PrimitiveAdapter
- validate(int, ValidationRequest, String) - Method in interface io.avaje.validation.adapter.ValidationAdapter.Primitive
-
Validate using primitive int.
- validate(long, ValidationRequest, String) - Method in class io.avaje.validation.adapter.PrimitiveAdapter
- validate(long, ValidationRequest, String) - Method in interface io.avaje.validation.adapter.ValidationAdapter.Primitive
-
Validate using primitive long.
- validate(short, ValidationRequest, String) - Method in class io.avaje.validation.adapter.PrimitiveAdapter
- validate(short, ValidationRequest, String) - Method in interface io.avaje.validation.adapter.ValidationAdapter.Primitive
-
Validate using primitive short.
- validate(Object, Class<?>...) - Method in interface io.avaje.validation.Validator
-
Validate the object using the default locale throwing ConstraintViolationException when there are constraint violations.
- validate(Object, Locale, Class<?>...) - Method in interface io.avaje.validation.Validator
-
Validate the object with a given locale throwing ConstraintViolationException when there are constraint violations.
- validate(T, ValidationRequest) - Method in interface io.avaje.validation.adapter.ValidationAdapter
-
Execute validations for the given value
- validate(T, ValidationRequest, String) - Method in class io.avaje.validation.adapter.AbstractConstraintAdapter
- validate(T, ValidationRequest, String) - Method in interface io.avaje.validation.adapter.ValidationAdapter
-
Execute validations for the given value.
- validateAll(Iterable<Object>, ValidationRequest, String) - Method in class io.avaje.validation.adapter.ContainerAdapter
-
Execute validations for all items in the given iterable
- validateArray(Object[], ValidationRequest, String) - Method in class io.avaje.validation.adapter.ContainerAdapter
-
Execute validations for all items in the given array
- ValidationAdapter<T> - Interface in io.avaje.validation.adapter
-
This interface defines a set of validation methods for validating a value based on specific rules.
- ValidationAdapter.Primitive - Interface in io.avaje.validation.adapter
-
Validation adapter that supports and uses the primitive type.
- ValidationContext - Interface in io.avaje.validation.adapter
-
Context used to lookup validation adapters and create validation requests.
- ValidationContext.AdapterCreateRequest - Interface in io.avaje.validation.adapter
-
Request to create a Validation Adapter.
- ValidationContext.AdapterFactory - Interface in io.avaje.validation.adapter
-
Factory for creating a ValidationAdapter for a given type.
- ValidationContext.AnnotationFactory - Interface in io.avaje.validation.adapter
-
Factory for creating an Annotation Adapter for a given annotation.
- ValidationContext.Message - Interface in io.avaje.validation.adapter
-
Represents a message object used in error message interpolation.
- ValidationRequest - Interface in io.avaje.validation.adapter
-
A validation request.
- Validator - Interface in io.avaje.validation
-
Validate plain Java objects that have been annotated with validation constraints.
- Validator.AdapterBuilder - Interface in io.avaje.validation
-
Function to build a ValidationAdapter from a Validation Context
- Validator.AnnotationAdapterBuilder - Interface in io.avaje.validation
-
Function to build a ValidationAdapter that needs Validator.
- Validator.Builder - Interface in io.avaje.validation
-
Build the Validator instance adding ValidationAdapter, Factory or AdapterBuilder.
- Validator.GeneratedComponent - Interface in io.avaje.validation
-
Components register ValidationAdapters with the Validator.Builder
- ValidatorCustomizer - Interface in io.avaje.validation.spi
-
Callback interface that's used to customize a Validator.Builder.
- ValidMethod - Annotation Interface in io.avaje.validation
-
Place on a method to execute validations on the parameters and return types
- value() - Element in annotation interface io.avaje.validation.adapter.ConstraintAdapter
-
The Annotation this validator targets
- value() - Element in annotation interface io.avaje.validation.ImportValidPojo
- value() - Element in annotation interface io.avaje.validation.spi.Generated
-
The name of the generator used to generate this source.
- value() - Element in annotation interface io.avaje.validation.spi.MetaData.AnnotationFactory
-
The custom Annotation ValidationAdapters.
- value() - Element in annotation interface io.avaje.validation.spi.MetaData.Factory
-
The generated ValidationAdapters that have a factory.
- value() - Element in annotation interface io.avaje.validation.spi.MetaData
-
The generated ValidationAdapters.
- valueOf(String) - Static method in enum class io.avaje.validation.adapter.RegexFlag
-
Returns the enum constant of this class with the specified name.
- values() - Static method in enum class io.avaje.validation.adapter.RegexFlag
-
Returns an array containing the constants of this enum class, in the order they are declared.
- violations() - Method in interface io.avaje.validation.adapter.ValidationRequest
-
Return the violations
- violations() - Method in exception class io.avaje.validation.ConstraintViolationException
-
Return the constraint violations.
W
- withValue(long) - Method in interface io.avaje.validation.adapter.ValidationContext.AdapterCreateRequest
-
Clone and return the request with a new value attribute
All Classes and Interfaces|All Packages|Serialized Form