package com.alibaba.excel.metadata; import java.util.ArrayList; import java.util.List; import com.alibaba.excel.converters.Converter; import com.alibaba.excel.read.listener.ReadListener; import com.alibaba.excel.write.handler.WriteHandler; /** * Basic parameter * * @author zhuangjiaju **/ public class BasicParameter { /** * Count the number of added heads when read sheet. * *
  • 0 - This Sheet has no head ,since the first row are the data *
  • 1 - This Sheet has one row head , this is the default *
  • 2 - This Sheet has two row head ,since the third row is the data */ private Integer readHeadRowNumber; /** * Writes the head relative to the existing contents of the sheet. Indexes are zero-based. */ private Integer writeRelativeHeadRowIndex; /** * You can only choose one of the {@link BasicParameter#head} and {@link BasicParameter#clazz} */ private List> head; /** * You can only choose one of the {@link BasicParameter#head} and {@link BasicParameter#clazz} */ private Class clazz; /** * Need Head */ private Boolean needHead; /** * Custom type conversions override the default */ private List customConverterList = new ArrayList(); /** * Custom type handler override the default */ private List customWriteHandlerList = new ArrayList(); /** * Custom type listener run after default */ private List customReadListenerList = new ArrayList(); /** * Automatic trim includes sheet name and content */ private Boolean autoTrim; public Integer getReadHeadRowNumber() { return readHeadRowNumber; } public void setReadHeadRowNumber(Integer readHeadRowNumber) { this.readHeadRowNumber = readHeadRowNumber; } public Integer getWriteRelativeHeadRowIndex() { return writeRelativeHeadRowIndex; } public void setWriteRelativeHeadRowIndex(Integer writeRelativeHeadRowIndex) { this.writeRelativeHeadRowIndex = writeRelativeHeadRowIndex; } public List> getHead() { return head; } public void setHead(List> head) { this.head = head; } public Class getClazz() { return clazz; } public void setClazz(Class clazz) { this.clazz = clazz; } public Boolean getNeedHead() { return needHead; } public void setNeedHead(Boolean needHead) { this.needHead = needHead; } public List getCustomConverterList() { return customConverterList; } public void setCustomConverterList(List customConverterList) { this.customConverterList = customConverterList; } public List getCustomWriteHandlerList() { return customWriteHandlerList; } public void setCustomWriteHandlerList(List customWriteHandlerList) { this.customWriteHandlerList = customWriteHandlerList; } public List getCustomReadListenerList() { return customReadListenerList; } public void setCustomReadListenerList(List customReadListenerList) { this.customReadListenerList = customReadListenerList; } public Boolean getAutoTrim() { return autoTrim; } public void setAutoTrim(Boolean autoTrim) { this.autoTrim = autoTrim; } }