public abstract class ReadExcelRecord
extends java.lang.Object
ReadExcelFile
class
method
readExcel
or
readExcelSmart
is used to iterate through a Workbook sheet.
The class is extended with a specific class that is passed into the
readExcel
or
readExcelSmart
method.
As each cell of each row that is traversed is processed the
canAccept
method is called. If accepted
the record is added, along with referenced columns translated into fields contained in the extended class definition,
to the output set returned by
the
readExcel
or
readExcelSmart
method.
ReadExcelFile class
,
readExcel method
,
readExcelSmart method
Modifier and Type | Class and Description |
---|---|
protected static class |
ReadExcelRecord.Note
Used internally in the WriteExcel clone operation
|
Modifier and Type | Field and Description |
---|---|
ReadExcelFile.ColMap |
oCM
The column map for record set
|
Row |
oRow
The Row containing the columns.
|
Constructor and Description |
---|
ReadExcelRecord() |
Modifier and Type | Method and Description |
---|---|
boolean |
canAccept()
This function can be changed to be selective as to what rows are included in the Row set.
|
abstract java.lang.String[] |
getColMap()
The ColMap string definition is returned.
|
public ReadExcelFile.ColMap oCM
public Row oRow
public abstract java.lang.String[] getColMap()
The ColMap is an array of strings. Each string describes a group of cells that are mapped into the fields of the extended ReadExcelRecord instance.
The format of each string is
n1=field1;n2=field2;....;nn=fieldn
where
"1=fldA;2=fldB;4=fldC/5=fldA;6=fldB;8=fldC/13=fldA;14=fldB;16=fldC".split("/");
public boolean canAccept() throws java.lang.Exception
java.lang.Exception