Module io.avaje.validation
Package io.avaje.validation
package io.avaje.validation
Avaje Validation API - see
Validator.
Example:
// Annotate classes with @Valid
@Valid
public class Address {
// annotate fields with constraints
@NotBlank
private String street;
@NotEmpty(message="must not be empty")
private List<@NotBlank String> owners; // message will be interpolated from bundle
//getters/setters
}
--------------------------------------------------
final Validator validator = Validator.builder().build();
Address address = ...;
validator.validate(address);
-
ClassDescriptionDescribes a constraint violation.Exception holding a set of constraint violations.Marks an method annotation as a CrossParamConstraint used for validating multiple method parametersSpecify external types for which to generate Valid Adapters.Marks this Class as a MixIn Type that can add/modify constraint annotations on the specified type.Validate plain Java objects that have been annotated with validation constraints.Function to build a ValidationAdapter from a Validation ContextFunction to build a ValidationAdapter that needs Validator.Build the Validator instance adding ValidationAdapter, Factory or AdapterBuilder.Place on a method to execute validations on the parameters and return types