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

com.orion.office.excel.annotation.ImportField Maven / Gradle / Ivy

There is a newer version: 1.0.9
Show newest version
package com.orion.office.excel.annotation;

import com.orion.lang.utils.Strings;
import com.orion.office.excel.type.ExcelReadType;

import java.lang.annotation.*;

/**
 * excel 导入注解
 * 可以加到 set方法 或者 字段上, 但是必须有set方法
 *
 * @author Jiahang Li
 * @version 1.0.0
 * @since 2020/5/27 12:12
 */
@Target({ElementType.METHOD, ElementType.FIELD})
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface ImportField {

    /**
     * 导出表格列索引 从0开始
     */
    int index();

    /**
     * 读取类型
     */
    ExcelReadType type() default ExcelReadType.TEXT;

    /**
     * 解析格式
     */
    String parseFormat() default Strings.EMPTY;

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy