org.biins.validation.collection.constraints.ElementsEmail Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of collection-validation Show documentation
Show all versions of collection-validation Show documentation
Support of JSR-303 validation for collection elements
The newest version!
package org.biins.validation.collection.constraints;
import org.biins.validation.collection.constraints.impl.ElementsEmailValidator;
import org.hibernate.validator.constraints.Email;
import javax.validation.Constraint;
import javax.validation.Payload;
import java.lang.annotation.*;
/**
* @see Email
*
* @author Martin Janys
*/
@Documented
@Constraint(validatedBy = ElementsEmailValidator.class)
@Target({
ElementType.METHOD,
ElementType.FIELD
})
@Retention(RetentionPolicy.RUNTIME)
@ElementsValidator
public @interface ElementsEmail {
Email value() default @Email;
Class> element() default String.class;
String message() default "{validation.collection.constraints.ElementsEmail.message}";
Class>[] groups() default {};
Class extends Payload>[] payload() default {};
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy