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

org.vxwo.springboot.experience.web.validation.Choices Maven / Gradle / Ivy

There is a newer version: 1.4.3
Show newest version
package org.vxwo.springboot.experience.web.validation;

import java.lang.annotation.*;
import javax.validation.*;

/**
 * @author vxwo-team
 */

@Target({ElementType.FIELD, ElementType.PARAMETER})
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Constraint(validatedBy = ChoicesValidator.class)
public @interface Choices {
    String[] values();

    boolean allowEmpty() default true;

    String message() default "It should be one of: {values}";

    Class[] groups() default {};

    Class[] payload() default {};
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy