Interface ExcelCellService
- All Known Implementing Classes:
DefaultExcelCellService
public interface ExcelCellService
Service responsible for operation on excel's single cell.
-
Method Summary
Modifier and TypeMethodDescriptiongetCellValue(org.apache.poi.ss.usermodel.Cell cell) Returns cell value as a string value.voidinsertAttributeValue(org.apache.poi.ss.usermodel.Cell cell, Object object) Inserts given value to a given cell
-
Method Details
-
getCellValue
Returns cell value as a string value. In case when cell contains formula then the formula is evaluated and result of the evaluation is returned.- Parameters:
cell-Cell- Returns:
- string value of cell. It's never null - it returns EMPTY String in case of problems with retrieving value
-
insertAttributeValue
Inserts given value to a given cell- Parameters:
cell- where the value will be insertedobject- a value to insert
-