1 Star 5 Fork 2

easy4use/hub-link

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Note.java 1.88 KB
一键复制 编辑 原始数据 按行查看 历史
easy4use 提交于 2021-03-10 00:21 +08:00 . no commit message
/**
* Project: yui3-common-utils
* Class Note
* Version 1.0
* File Created at 2018年8月11日
* $Id$
*
* Copyright 2010-2015 Yui.com Corporation Limited.
* All rights reserved.
*
* This software is the confidential and proprietary information of
* Yui Personal. ("Confidential Information"). You shall not
* disclose such Confidential Information and shall use it only in
* accordance with the terms of the license agreement you entered into
* with Yui.com.
*/
package yui.comn.hub.annotation;
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;
import org.springframework.core.annotation.AliasFor;
import yui.comn.hub.model.Clazz;
/**
* 对象属性注释
* @author yuyi (1060771195@qq.com)
*/
@Target({ElementType.FIELD, ElementType.METHOD })
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface Note {
/**
* 默认注释
* @return
*/
@AliasFor("descr")
String value() default "";
/**
* 默认注释
* @return
*/
@AliasFor("value")
String descr() default "";
/**
* 属性排序
* @return
*/
int viewOrder() default 50;
/**
* 处理方式
* @return
*/
String handler() default "";
/**
* 生成一个新的元素(不覆盖原来), 该属性只有在handler存在时才有效
* @return
*/
String toName() default "";
/**
* 生成一个新的元素的描述(不覆盖原来), 该属性只有在handler存在时才有效
* @return
*/
String toDescr() default "";
/**
* 枚举类
* @return
*/
Class<?> enCls() default Clazz.class;
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/easy4use/hub-link.git
git@gitee.com:easy4use/hub-link.git
easy4use
hub-link
hub-link
master

搜索帮助