forked from fanruan/easyexcel
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
82 lines
1.9 KiB
82 lines
1.9 KiB
package com.alibaba.excel.read.metadata; |
|
|
|
import org.openxmlformats.schemas.spreadsheetml.x2006.main.STSheetState; |
|
|
|
/** |
|
* Read sheet |
|
* |
|
* @author jipengfei |
|
*/ |
|
public class ReadSheet extends ReadBasicParameter { |
|
/** |
|
* Starting from 0 |
|
*/ |
|
private Integer sheetNo; |
|
/** |
|
* sheet name |
|
*/ |
|
private String sheetName; |
|
/** |
|
* sheet state |
|
*/ |
|
private STSheetState.Enum state; |
|
|
|
public ReadSheet() {} |
|
|
|
public ReadSheet(Integer sheetNo) { |
|
this.sheetNo = sheetNo; |
|
} |
|
|
|
public ReadSheet(Integer sheetNo, String sheetName) { |
|
this.sheetNo = sheetNo; |
|
this.sheetName = sheetName; |
|
} |
|
|
|
public ReadSheet(Integer sheetNo, String sheetName, STSheetState.Enum state) { |
|
this.sheetNo = sheetNo; |
|
this.sheetName = sheetName; |
|
this.state = state; |
|
} |
|
|
|
public Integer getSheetNo() { |
|
return sheetNo; |
|
} |
|
|
|
public void setSheetNo(Integer sheetNo) { |
|
this.sheetNo = sheetNo; |
|
} |
|
|
|
public String getSheetName() { |
|
return sheetName; |
|
} |
|
|
|
public void setSheetName(String sheetName) { |
|
this.sheetName = sheetName; |
|
} |
|
|
|
public STSheetState.Enum getState() { |
|
return state; |
|
} |
|
|
|
public void setState(STSheetState.Enum state) { |
|
this.state = state; |
|
} |
|
|
|
public void copyBasicParameter(ReadSheet other) { |
|
if (other == null) { |
|
return; |
|
} |
|
this.setHeadRowNumber(other.getHeadRowNumber()); |
|
this.setCustomReadListenerList(other.getCustomReadListenerList()); |
|
this.setHead(other.getHead()); |
|
this.setClazz(other.getClazz()); |
|
this.setCustomConverterList(other.getCustomConverterList()); |
|
this.setAutoTrim(other.getAutoTrim()); |
|
this.setUse1904windowing(other.getUse1904windowing()); |
|
} |
|
|
|
@Override |
|
public String toString() { |
|
return "ReadSheet{" + "sheetNo=" + sheetNo + ", sheetName='" + sheetName + '\'' + "} " + super.toString(); |
|
} |
|
}
|
|
|