org.gageot.excel.core
Interface CellMapper

All Known Implementing Classes:
ObjectCellMapper, StringCellMapper

public interface CellMapper

An interface used by ExcelTemplate for mapping cells. Implementations of this interface perform the actual work of mapping cells, but don't need to worry about exception handling. IOExceptions will be caught and handled correctly by the ExcelTemplate class.

Author:
David Gageot
See Also:
ExcelTemplate, SheetExtractor, RowMapper

Method Summary
 java.lang.Object mapCell(org.apache.poi.hssf.usermodel.HSSFCell cell, int rowNum, int columnNum)
          Implementations must implement this method to map each cell of data in the HSSFSheet.
 

Method Detail

mapCell

java.lang.Object mapCell(org.apache.poi.hssf.usermodel.HSSFCell cell,
                         int rowNum,
                         int columnNum)
                         throws java.io.IOException
Implementations must implement this method to map each cell of data in the HSSFSheet. This method should extract the values of the current cell.

Parameters:
cell - the HSSFCell to map
rowNum - the number of the current row
columnNum - the number of the current column
Throws:
java.io.IOException - if a IOException is encountered getting column values (that is, there's no need to catch IOException)


Copyright © 2007 gageot.net. All Rights Reserved.