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

uk.gov.service.payments.commons.api.validation.AllowedStrings Maven / Gradle / Ivy

There is a newer version: 1.0.20241216100655
Show newest version
package uk.gov.service.payments.commons.api.validation;

import javax.validation.Constraint;
import javax.validation.Payload;
import java.lang.annotation.Documented;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;

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

@Target({ FIELD })
@Retention(RUNTIME)
@Constraint(validatedBy = AllowedStringsValidator.class)
@Documented
public @interface AllowedStrings {

    String message();

    Class[] groups() default { };

    Class[] payload() default { };
    
    String[] allowed();

    @Target({ FIELD })
    @Retention(RUNTIME)
    @Documented
    @interface List {

        AllowedStrings[] value();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy