
io.avaje.validation.package-info Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of avaje-validator Show documentation
Show all versions of avaje-validator Show documentation
validator for annotated pojos using constraint annotations and source code generation
/**
* Avaje Validation API - see {@link io.avaje.validation.Validator}.
*
* Example:
*
* {@code
* // 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);
*
* }
*/
package io.avaje.validation;
© 2015 - 2025 Weber Informatics LLC | Privacy Policy