Class DefaultExcelCellService
java.lang.Object
com.hybris.backoffice.excel.template.cell.DefaultExcelCellService
- All Implemented Interfaces:
ExcelCellService
Default implementation of
ExcelCellService-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringescapeExportFormula(String value) protected StringescapeImportFormula(String value) getCellValue(org.apache.poi.ss.usermodel.Cell cell) Returns cell value as a string value.Collection<com.hybris.backoffice.excel.template.cell.CellValue>voidinsertAttributeValue(org.apache.poi.ss.usermodel.Cell cell, Object value) Inserts given value to a given cellvoidsetCellValues(List<com.hybris.backoffice.excel.template.cell.CellValue> cellValues)
-
Constructor Details
-
DefaultExcelCellService
public DefaultExcelCellService()
-
-
Method Details
-
getCellValue
Description copied from interface:ExcelCellServiceReturns cell value as a string value. In case when cell contains formula then the formula is evaluated and result of the evaluation is returned.- Specified by:
getCellValuein interfaceExcelCellService- Parameters:
cell-Cell- Returns:
- string value of cell. It's never null - it returns EMPTY String in case of problems with retrieving value
-
insertAttributeValue
public void insertAttributeValue(@Nonnull org.apache.poi.ss.usermodel.Cell cell, @Nullable Object value) Description copied from interface:ExcelCellServiceInserts given value to a given cell- Specified by:
insertAttributeValuein interfaceExcelCellService- Parameters:
cell- where the value will be insertedvalue- a value to insert
-
escapeExportFormula
-
escapeImportFormula
-
getCellValues
-
setCellValues
-