package com.alibaba.excel.metadata; import java.util.ArrayList; import java.util.List; import com.alibaba.excel.metadata.property.ColumnWidthProperty; /** * excel head * * @author zhuangjiaju **/ public class Head { /** * Column index of head */ private Integer columnIndex; /** * It only has values when passed in {@link Sheet#setClazz(Class)} and {@link Table#setClazz(Class)} */ private String fieldName; /** * Head name */ private List headNameList; /** * Whether index is specified */ private Boolean forceIndex; /** * Whether to specify a name */ private Boolean forceName; /** * column with */ private ColumnWidthProperty columnWidthProperty; public Head(Integer columnIndex, String fieldName, List headNameList, Boolean forceIndex, Boolean forceName) { this.columnIndex = columnIndex; this.fieldName = fieldName; if (headNameList == null) { headNameList = new ArrayList(); } this.headNameList = headNameList; this.forceIndex = forceIndex; this.forceName = forceName; } public Integer getColumnIndex() { return columnIndex; } public void setColumnIndex(Integer columnIndex) { this.columnIndex = columnIndex; } public String getFieldName() { return fieldName; } public void setFieldName(String fieldName) { this.fieldName = fieldName; } public List getHeadNameList() { return headNameList; } public void setHeadNameList(List headNameList) { this.headNameList = headNameList; } public ColumnWidthProperty getColumnWidthProperty() { return columnWidthProperty; } public void setColumnWidthProperty(ColumnWidthProperty columnWidthProperty) { this.columnWidthProperty = columnWidthProperty; } public Boolean getForceIndex() { return forceIndex; } public void setForceIndex(Boolean forceIndex) { this.forceIndex = forceIndex; } public Boolean getForceName() { return forceName; } public void setForceName(Boolean forceName) { this.forceName = forceName; } }