Index

A B C D E F G H I L M N O P R S T U V W 
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
AbstractContainerAdapter<T> - Class in io.avaje.validation.adapter
Adapter that validates container types.
AbstractContainerAdapter(ValidationAdapter<T>) - Constructor for class io.avaje.validation.adapter.AbstractContainerAdapter
 
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.AbstractContainerAdapter
Compose the given adapter with the multiAdapter of this AbstractContainerAdapter for validating multiple items.
annotationType() - Method in interface io.avaje.validation.adapter.ValidationContext.AdapterCreateRequest
 
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
 
attributes() - Method in interface io.avaje.validation.adapter.ValidationContext.AdapterCreateRequest
 
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, Set<Class<?>>, Map<String, Object>) - 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.
BuilderCustomizer - Annotation Interface in io.avaje.validation.spi
Registers a type extending ValidatorCustomizer to META-INF/services, annotated types will have an entry added to META-INF/services/io.avaje.validation.adapter.ValidatorCustomizer

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.
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(Set<ConstraintViolation>, List<Class<?>>) - Constructor for exception class io.avaje.validation.ConstraintViolationException
Create with the given constraint violations
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.
ctx() - Method in interface io.avaje.validation.adapter.ValidationContext.AdapterCreateRequest
 
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

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.

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
 
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.

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.AbstractContainerAdapter
Adapter placed on the 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.spi - package io.avaje.validation.spi
SPI for the underlying validation adapters.
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
 
message() - Method in record class io.avaje.validation.ConstraintViolation
Returns the value of the message record component.
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.
multiAdapter - Variable in class io.avaje.validation.adapter.AbstractContainerAdapter
 
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

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.
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.

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
 
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(Object, Class<?>...) - Method in interface io.avaje.validation.Validator
Validate the object using the default locale.
validate(Object, Locale, Class<?>...) - Method in interface io.avaje.validation.Validator
Validate the object with a given locale.
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.AbstractContainerAdapter
Execute validations for all items in the given iterable
validateArray(Object[], ValidationRequest, String) - Method in class io.avaje.validation.adapter.AbstractContainerAdapter
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.
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 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
 
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 exception class io.avaje.validation.ConstraintViolationException
Return the constraint violations.

W

withValue(long) - Method in interface io.avaje.validation.adapter.ValidationContext.AdapterCreateRequest
 
A B C D E F G H I L M N O P R S T U V W 
All Classes and Interfaces|All Packages|Serialized Form