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

cn.anyzm.parameter.annotation.NotEmpty Maven / Gradle / Ivy

package cn.anyzm.parameter.annotation;

import cn.anyzm.parameter.constant.ValueEnum;
import cn.anyzm.parameter.handler.ParameterCheckHandler;

import java.lang.annotation.*;

/**
 * @author huangzhaolai-jk
 * @version 0.0.1
 * @see ParameterCheckHandler
 */
@Target({ElementType.FIELD, ElementType.PARAMETER})
@Retention(RetentionPolicy.RUNTIME)
@Inherited
public @interface NotEmpty {

  /**
   * the msg for not pass check
   *
   * @return String
   */
  String msg() default "the object which add NotEmpty annotation must not be empty";

  /** the timing for use the annotation,you can defined multiple timing for different place *
   * @return the use timing
   */
  String[] timing() default ValueEnum.ALL_THE_TIME;
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy