Interface ExcelCellService
-
- All Known Implementing Classes:
DefaultExcelCellService
public interface ExcelCellServiceService responsible for operation on excel's single cell.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.StringgetCellValue(org.apache.poi.ss.usermodel.Cell cell)Returns cell value as a string value.voidinsertAttributeValue(org.apache.poi.ss.usermodel.Cell cell, java.lang.Object object)Inserts given value to a given cell
-
-
-
Method Detail
-
getCellValue
java.lang.String getCellValue(@Nullable org.apache.poi.ss.usermodel.Cell cell)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
void insertAttributeValue(@Nonnull org.apache.poi.ss.usermodel.Cell cell, @Nullable java.lang.Object object)Inserts given value to a given cell- Parameters:
cell- where the value will be insertedobject- a value to insert
-
-