Index

A B C D F G I L M N O P R S T U V 
All Classes and Interfaces|All Packages|Serialized Form

A

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.
array() - Method in interface io.avaje.validation.adapter.ValidationAdapter
Create an adapter for validating an array.
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.
ConstraintValidator - Annotation Interface in io.avaje.validation.adapter
Marks a type as a Constraint Validator to be registered automatically.
ConstraintViolation - Class in io.avaje.validation
Describes a constraint violation.
ConstraintViolation(String, String, String) - Constructor for class io.avaje.validation.ConstraintViolation
Create the ConstraintViolation with the given path, property and message.
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(Class<? extends Annotation>, ValidationContext, Set<Class<?>>, Map<String, Object>) - 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.
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.

F

failFast(boolean) - Method in interface io.avaje.validation.Validator.Builder
Enable/Disable fail fast mode.

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

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

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() - Method in class io.avaje.validation.ConstraintViolation
Return the interpolated error message for this constraint violation
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.
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 class io.avaje.validation.ConstraintViolation
Return the path for this constraint violation
popPath() - Method in interface io.avaje.validation.adapter.ValidationRequest
Pop the nested property path.
propertyName() - Method in class io.avaje.validation.ConstraintViolation
Return the property name for this constraint violation
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

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 class io.avaje.validation.ConstraintViolation
 

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 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.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.ConstraintValidator
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.
A B C D F G I L M N O P R S T U V 
All Classes and Interfaces|All Packages|Serialized Form