package de.rwth.idsg.steve.web.validation;
import javax.validation.Constraint;
import javax.validation.Payload;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;
import static java.lang.annotation.ElementType.FIELD;
import static java.lang.annotation.ElementType.METHOD;
import static java.lang.annotation.RetentionPolicy.RUNTIME;
/**
* @author Sevket Goekay <goekay@dbis.rwth-aachen.de>
* @since 21.01.2016
*/
@Target({FIELD, METHOD})
@Retention(RUNTIME)
@Constraint(validatedBy = EmailCollectionValidator.class)
public @interface EmailCollection {
String message() default "E-mail(s) not valid";
// Required by validation runtime
Class<?>[] groups() default {};
// Required by validation runtime
Class<? extends Payload>[] payload() default {};
}