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

com.github.xphsc.excel.ExcelHeader Maven / Gradle / Ivy

There is a newer version: 1.2.3
Show newest version
package com.github.xphsc.excel;

/**
 * 功能说明: 用来存储Excel标题的对象,通过该对象可以获取标题和方法的对应关系
 */
public class ExcelHeader implements Comparable {
    /**
     * excel的标题名称
     */
    private String title;
    /**
     * 每一个标题的顺序
     */
    private int order;
    /**
     * 注解域
     */
    private String filed;
    /**
     * 属性类型
     */
    private Class filedClazz;

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public int getOrder() {
        return order;
    }

    public void setOrder(int order) {
        this.order = order;
    }

    public String getFiled() {
        return filed;
    }

    public void setFiled(String filed) {
        this.filed = filed;
    }

    public Class getFiledClazz() {
        return filedClazz;
    }

    public void setFiledClazz(Class filedClazz) {
        this.filedClazz = filedClazz;
    }

    public int compareTo(ExcelHeader o) {
        return order - o.order;
    }

    public ExcelHeader(String title, int order, String filed, Class filedClazz) {
        super();
        this.title = title;
        this.order = order;
        this.filed = filed;
        this.filedClazz = filedClazz;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy