|
@@ -18,9 +18,9 @@ public class CustomExcelTable implements Serializable {
|
|
*/
|
|
*/
|
|
private final String key;
|
|
private final String key;
|
|
/**
|
|
/**
|
|
- * 表格识别标题(equals或者contains识别),不能为空
|
|
|
|
|
|
+ * 表格识别标题(equals或者contains识别),不能为空,多个用逗号分隔
|
|
*/
|
|
*/
|
|
- private final String title;
|
|
|
|
|
|
+ private final String titles;
|
|
/**
|
|
/**
|
|
* 表格识别列数(不能小于等于0)
|
|
* 表格识别列数(不能小于等于0)
|
|
*/
|
|
*/
|
|
@@ -34,26 +34,26 @@ public class CustomExcelTable implements Serializable {
|
|
*/
|
|
*/
|
|
private final int startCol;
|
|
private final int startCol;
|
|
|
|
|
|
- public CustomExcelTable(String key, String title, int colCount) {
|
|
|
|
- this(key, title, colCount, 0);
|
|
|
|
|
|
+ public CustomExcelTable(String key, String titles, int colCount) {
|
|
|
|
+ this(key, titles, colCount, 0);
|
|
}
|
|
}
|
|
|
|
|
|
- public CustomExcelTable(String key, String title, int colCount, int rowCount) {
|
|
|
|
- this(key, title, colCount, rowCount, 1);
|
|
|
|
|
|
+ public CustomExcelTable(String key, String titles, int colCount, int rowCount) {
|
|
|
|
+ this(key, titles, colCount, rowCount, 1);
|
|
}
|
|
}
|
|
|
|
|
|
- public CustomExcelTable(String key, String title, int colCount, int rowCount, int startCol) {
|
|
|
|
|
|
+ public CustomExcelTable(String key, String titles, int colCount, int rowCount, int startCol) {
|
|
if (key == null) {
|
|
if (key == null) {
|
|
throw new NullPointerException("table key is null.");
|
|
throw new NullPointerException("table key is null.");
|
|
}
|
|
}
|
|
- if (title == null) {
|
|
|
|
- throw new NullPointerException("table title is null.");
|
|
|
|
|
|
+ if (titles == null) {
|
|
|
|
+ throw new NullPointerException("table titles is null.");
|
|
}
|
|
}
|
|
if (colCount <= 0) {
|
|
if (colCount <= 0) {
|
|
throw new IndexOutOfBoundsException("table col index out of.");
|
|
throw new IndexOutOfBoundsException("table col index out of.");
|
|
}
|
|
}
|
|
this.key = key;
|
|
this.key = key;
|
|
- this.title = title;
|
|
|
|
|
|
+ this.titles = titles;
|
|
this.colCount = colCount;
|
|
this.colCount = colCount;
|
|
this.rowCount = rowCount <= 0 ? Integer.MAX_VALUE : rowCount;
|
|
this.rowCount = rowCount <= 0 ? Integer.MAX_VALUE : rowCount;
|
|
this.startCol = Math.max(startCol, 1);
|
|
this.startCol = Math.max(startCol, 1);
|
|
@@ -63,8 +63,8 @@ public class CustomExcelTable implements Serializable {
|
|
return key;
|
|
return key;
|
|
}
|
|
}
|
|
|
|
|
|
- public String getTitle() {
|
|
|
|
- return title;
|
|
|
|
|
|
+ public String getTitles() {
|
|
|
|
+ return titles;
|
|
}
|
|
}
|
|
|
|
|
|
public int getColCount() {
|
|
public int getColCount() {
|