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

de.schegge.phone.validation.GermanCountryCode Maven / Gradle / Ivy

The newest version!
package de.schegge.phone.validation;

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

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

@Target({ElementType.METHOD, ElementType.FIELD, ElementType.TYPE_USE, ElementType.ANNOTATION_TYPE, ElementType.CONSTRUCTOR, ElementType.PARAMETER})
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Constraint(validatedBy = {})
@CountryCode("49")
public @interface GermanCountryCode {

    @OverridesAttribute(constraint = CountryCode.class)
    String message() default "{de.schegge.validator.GermanCountryCode.message}";

    Class[] groups() default {};

    Class[] payload() default {};

    @OverridesAttribute(constraint = CountryCode.class)
    boolean allowed() default true;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy