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

io.afu.validator.Annimation.ChineseIdCard Maven / Gradle / Ivy

The newest version!
package io.afu.validator.Annimation;

import io.afu.validator.Constant.MsgConstant;
import io.afu.validator.Implement.ChineseIdCardValidatorImpl;


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

@Target({ElementType.ANNOTATION_TYPE,ElementType.FIELD,ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
@Constraint(validatedBy = {ChineseIdCardValidatorImpl.class})
public @interface ChineseIdCard {
    String message() default MsgConstant.CHINESE_IDCARD_ILLEGAL;

    Class[] groups() default {};

    Class[] payload() default{};

    boolean allowEmpty() default false;
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy