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

org.chobit.commons.validation.StringColl Maven / Gradle / Ivy

There is a newer version: 0.1.3.4
Show newest version
package org.chobit.commons.validation;

import jakarta.validation.Constraint;
import jakarta.validation.Payload;
import org.chobit.commons.funcs.Checker;

import java.lang.annotation.*;

/**
 * 字符串
 *
 * @author robin
 */
@Documented
@Constraint(
        validatedBy = {StringCollValidator.class}
)
@Target({ElementType.METHOD, ElementType.FIELD})
@Retention(RetentionPolicy.RUNTIME)
public @interface StringColl {


    Class[] groups() default {};


    Class[] payload() default {};


    /**
     * 字符串校验类
     *
     * @return 字符串校验类
     */
    Class> checker() default Checker.StringDefault.class;


    /**
     * 提示消息
     *
     * @return 提示消息
     */
    String message() default "存在空字符串";
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy