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

com.github.bingoohuang.excel2beans.annotations.ExcelCell Maven / Gradle / Ivy

There is a newer version: 0.0.34
Show newest version
package com.github.bingoohuang.excel2beans.annotations;

import java.lang.annotation.*;

/**
 * 关联Excel中的单元格。
 */
@Documented
@Target(ElementType.FIELD)
@Retention(RetentionPolicy.RUNTIME)
public @interface ExcelCell {
    /**
     * 单元格索引。例如A5,B12等。
     *
     * @return 单元格索引
     */
    String value() default "";


    /**
     * 替换单元格中取值的指定内容。例如把XX替换成真实取值。
     * 默认值(不设置时)是替换整个单元格取值。
     *
     * @return 替换内容
     */
    String replace() default "";

    /**
     * 是否是处理表单名称。
     *
     * @return 是否是处理表单名称
     */
    boolean sheetName() default false;


    /**
     * 单元格一行最大字符数。
     *
     * @return 最大字符数
     */
    int maxLineLen() default 0;
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy