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

cn.toutatis.xvoid.axolotl.excel.reader.annotations.SpecifyPositionBind Maven / Gradle / Ivy

package cn.toutatis.xvoid.axolotl.excel.reader.annotations;

import cn.toutatis.xvoid.axolotl.excel.reader.support.DataCastAdapter;
import cn.toutatis.xvoid.axolotl.excel.reader.support.adapters.AutoAdapter;
import cn.toutatis.xvoid.toolkit.constant.Time;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * 标注在字段上,指定该字段在excel中的位置
 */
@Target(ElementType.FIELD)
@Retention(RetentionPolicy.RUNTIME)
public @interface SpecifyPositionBind {

    /**
     * 指定单元格位置,如A1,B2等
     */
    String value();

    String format() default Time.YMD_HORIZONTAL_FORMAT_REGEX;

    /**
     * 指定单元格位置的适配器,默认使用默认适配器
     */
    Class> adapter() default AutoAdapter.class;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy