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

org.biins.validation.collection.constraints.ElementsNotNull Maven / Gradle / Ivy

The newest version!
package org.biins.validation.collection.constraints;

import org.biins.validation.collection.constraints.impl.ElementsNotNullValidator;

import javax.validation.Constraint;
import javax.validation.Payload;
import javax.validation.constraints.NotNull;
import java.lang.annotation.*;

/**
 * @see NotNull
 *
 * @author Martin Janys
 */
@Documented
@Constraint(validatedBy = ElementsNotNullValidator.class)
@Target({
        ElementType.METHOD,
        ElementType.FIELD
})
@Retention(RetentionPolicy.RUNTIME)
@ElementsValidator
public @interface ElementsNotNull {

    NotNull value() default @NotNull;

    Class element() default Object.class;

    String message() default "{validation.collection.constraints.ElementsNotNull.message}";

    Class[] groups() default {};

    Class[] payload() default {};

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy