Package nl.bstoi.poiparser.core.strategy
Class AbstractReadPoiParser<T>
- java.lang.Object
-
- nl.bstoi.poiparser.core.strategy.AbstractReadPoiParser<T>
-
- Direct Known Subclasses:
AnnotatedReadPoiParser
public abstract class AbstractReadPoiParser<T> extends java.lang.ObjectUser: Hylke Stapersma E-mail:[ hylke.stapersma@gmail.com] Date: 23-06-13 Time: 21:42
-
-
Constructor Summary
Constructors Constructor Description AbstractReadPoiParser(java.util.Set<CellDescriptor> cellDescriptors, org.apache.poi.ss.usermodel.Sheet sheet, java.lang.Class<T> clazz)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Set<CellDescriptor>getCellDescriptors()org.apache.poi.ss.usermodel.SheetgetSheet()booleanignoreRow(org.apache.poi.ss.usermodel.Row row)booleanisEmptyRow(org.apache.poi.ss.usermodel.Row row)booleanisEmptyValue(org.apache.poi.ss.usermodel.Cell cell)protected voidreadField(java.lang.String sheetName, org.apache.poi.ss.usermodel.Row row, T rowDimension, CellDescriptor cellDescriptor)protected TreadRow(java.lang.String sheetName, org.apache.poi.ss.usermodel.Row row, T rowDimension)protected java.util.List<T>readSheet()protected java.util.List<T>readSheet(int startRow, int endRow)voidsetIgnoreFirstRow(boolean ignoreFirstRow)
-
-
-
Constructor Detail
-
AbstractReadPoiParser
public AbstractReadPoiParser(java.util.Set<CellDescriptor> cellDescriptors, org.apache.poi.ss.usermodel.Sheet sheet, java.lang.Class<T> clazz)
-
-
Method Detail
-
getCellDescriptors
public java.util.Set<CellDescriptor> getCellDescriptors()
-
readSheet
protected java.util.List<T> readSheet() throws PoiParserException
- Throws:
PoiParserException
-
readSheet
protected java.util.List<T> readSheet(int startRow, int endRow) throws PoiParserException
- Throws:
PoiParserException
-
ignoreRow
public boolean ignoreRow(org.apache.poi.ss.usermodel.Row row)
-
isEmptyRow
public boolean isEmptyRow(org.apache.poi.ss.usermodel.Row row)
-
isEmptyValue
public boolean isEmptyValue(org.apache.poi.ss.usermodel.Cell cell)
-
readRow
protected T readRow(java.lang.String sheetName, org.apache.poi.ss.usermodel.Row row, T rowDimension) throws PoiParserException
- Throws:
PoiParserException
-
readField
protected void readField(java.lang.String sheetName, org.apache.poi.ss.usermodel.Row row, T rowDimension, CellDescriptor cellDescriptor) throws PoiParserException- Throws:
PoiParserException
-
getSheet
public org.apache.poi.ss.usermodel.Sheet getSheet()
-
setIgnoreFirstRow
public void setIgnoreFirstRow(boolean ignoreFirstRow)
-
-