All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.avaje.validation.package-info Maven / Gradle / Ivy

Go to download

validator for annotated pojos using constraint annotations and source code generation

There is a newer version: 2.9
Show newest version
/**
 * 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