Class DefaultExcelCellService
- java.lang.Object
-
- com.hybris.backoffice.excel.template.cell.DefaultExcelCellService
-
- All Implemented Interfaces:
ExcelCellService
public class DefaultExcelCellService extends java.lang.Object implements ExcelCellService
Default implementation ofExcelCellService
-
-
Constructor Summary
Constructors Constructor Description DefaultExcelCellService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.StringescapeExportFormula(java.lang.String value)protected java.lang.StringescapeImportFormula(java.lang.String value)java.lang.StringgetCellValue(org.apache.poi.ss.usermodel.Cell cell)Returns cell value as a string value.java.util.Collection<com.hybris.backoffice.excel.template.cell.CellValue>getCellValues()voidinsertAttributeValue(org.apache.poi.ss.usermodel.Cell cell, java.lang.Object value)Inserts given value to a given cellvoidsetCellValues(java.util.List<com.hybris.backoffice.excel.template.cell.CellValue> cellValues)
-
-
-
Method Detail
-
getCellValue
@Nonnull public java.lang.String getCellValue(@Nullable org.apache.poi.ss.usermodel.Cell cell)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 java.lang.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
protected java.lang.String escapeExportFormula(java.lang.String value)
-
escapeImportFormula
protected java.lang.String escapeImportFormula(java.lang.String value)
-
getCellValues
public java.util.Collection<com.hybris.backoffice.excel.template.cell.CellValue> getCellValues()
-
setCellValues
public void setCellValues(java.util.List<com.hybris.backoffice.excel.template.cell.CellValue> cellValues)
-
-