public class ExcelWorkSheetHandler<T> extends java.lang.Object implements XSSFSheetXMLHandler.SheetContentsHandler
Constructor and Description |
---|
ExcelWorkSheetHandler(java.lang.Class<T> type,
java.util.Map<java.lang.String,java.lang.String> cellMapping)
Constructor
For Example: Reading rows (zero based) starting from Zero ExcelWorkSheetHandler<PersonVO> workSheetHandler = new ExcelWorkSheetHandler<PersonVO>(PersonVO.class, cellMapping); |
ExcelWorkSheetHandler(java.lang.Class<T> type,
java.util.Map<java.lang.String,java.lang.String> cellMapping,
int skipRows)
Constructor
For Example: Reading rows (zero based) starting from Row 11 ExcelWorkSheetHandler<PersonVO> workSheetHandler = new ExcelWorkSheetHandler<PersonVO>(PersonVO.class, cellMapping, 10); |
Modifier and Type | Method and Description |
---|---|
void |
cell(java.lang.String cellReference,
java.lang.String formattedValue) |
void |
endRow() |
java.util.List<T> |
getValueList()
Returns Value List (List<T>) read from Excel Workbook, Row represents one Object in a List.
|
void |
headerFooter(java.lang.String text,
boolean isHeader,
java.lang.String tagName)
Currently not considered for implementation
|
boolean |
isVerifiyHeader()
Returns Excel Header check state, default it is enabled
|
void |
setVerifiyHeader(boolean verifiyHeader)
To set the Excel Header check state, default it is enabled
|
void |
startRow(int rowNum) |
public ExcelWorkSheetHandler(java.lang.Class<T> type, java.util.Map<java.lang.String,java.lang.String> cellMapping)
ExcelWorkSheetHandler<PersonVO> workSheetHandler = new ExcelWorkSheetHandler<PersonVO>(PersonVO.class, cellMapping);
type
- a Class
objectcellMapping
- a Map
objectpublic ExcelWorkSheetHandler(java.lang.Class<T> type, java.util.Map<java.lang.String,java.lang.String> cellMapping, int skipRows)
ExcelWorkSheetHandler<PersonVO> workSheetHandler = new ExcelWorkSheetHandler<PersonVO>(PersonVO.class, cellMapping, 10);
type
- a Class
objectcellMapping
- a Map
objectskipRows
- a int
object - Number rows to skip (zero based). default is 0public java.util.List<T> getValueList()
List<PersonVO> persons = workSheetHandler.getValueList();
public boolean isVerifiyHeader()
public void setVerifiyHeader(boolean verifiyHeader)
verifiyHeader
- a booleanpublic void startRow(int rowNum)
startRow
in interface XSSFSheetXMLHandler.SheetContentsHandler
XSSFSheetXMLHandler.SheetContentsHandler.startRow(int)
public void cell(java.lang.String cellReference, java.lang.String formattedValue)
cell
in interface XSSFSheetXMLHandler.SheetContentsHandler
XSSFSheetXMLHandler.SheetContentsHandler.cell(java.lang.String,
java.lang.String)
public void endRow()
endRow
in interface XSSFSheetXMLHandler.SheetContentsHandler
XSSFSheetXMLHandler.SheetContentsHandler.endRow()
public void headerFooter(java.lang.String text, boolean isHeader, java.lang.String tagName)
headerFooter
in interface XSSFSheetXMLHandler.SheetContentsHandler
XSSFSheetXMLHandler.SheetContentsHandler.headerFooter(java.lang.String,
boolean, java.lang.String)
The copyright of the pages and contents on this website is with myjeeva.com and the content is licensed under Creative Commons Attribution-Share Alike 3.0 Unported License. Libraries and code snippets on myjeeva.com has license information.