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

nl.vpro.validation.NoHtmlList Maven / Gradle / Ivy

There is a newer version: 5.3.2
Show newest version
package nl.vpro.validation;

import java.lang.annotation.Documented;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;

import jakarta.validation.Constraint;
import jakarta.validation.Payload;

import static java.lang.annotation.ElementType.ANNOTATION_TYPE;
import static java.lang.annotation.ElementType.FIELD;
import static java.lang.annotation.ElementType.METHOD;
import static java.lang.annotation.RetentionPolicy.RUNTIME;

/**
 * @author Michiel Meeuwissen
 * @since 3.2
 * @deprecated Just put @NoHtml on the list entries itself (List<@NoHtml String>)
 */


@Target({METHOD, FIELD, ANNOTATION_TYPE})
@Retention(RUNTIME)
@Constraint(validatedBy = NoHtmlListValidator.class)
@Documented
@Deprecated
public @interface NoHtmlList {
    String message() default "{nl.vpro.constraints.nohtml}";

    Class[] groups() default {};

    Class[] payload() default {};
}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy