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

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

The newest version!
package org.chobit.commons.validation;

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

import java.lang.annotation.*;

/**
 * 校验是否存在emoji字符
 *
 * @author robin
 */
@Documented
@Constraint(
        validatedBy = {NoEmojiValidator.class}
)
@Target({ElementType.METHOD, ElementType.FIELD})
@Retention(RetentionPolicy.RUNTIME)
public @interface NoEmoji {


    Class[] groups() default {};


    Class[] payload() default {};


    /**
     * 提示消息
     *
     * @return 提示消息
     */
    String message() default "存在emoji符号";
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy