Class DefaultExcelCellService

java.lang.Object
com.hybris.backoffice.excel.template.cell.DefaultExcelCellService
All Implemented Interfaces:
ExcelCellService

public class DefaultExcelCellService extends Object implements ExcelCellService
Default implementation of ExcelCellService
  • Constructor Details

    • DefaultExcelCellService

      public DefaultExcelCellService()
  • Method Details

    • getCellValue

      @Nonnull public String getCellValue(@Nullable org.apache.poi.ss.usermodel.Cell cell)
      Description copied from interface: ExcelCellService
      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.
      Specified by:
      getCellValue in interface ExcelCellService
      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: ExcelCellService
      Inserts given value to a given cell
      Specified by:
      insertAttributeValue in interface ExcelCellService
      Parameters:
      cell - where the value will be inserted
      value - a value to insert
    • escapeExportFormula

      protected String escapeExportFormula(String value)
    • escapeImportFormula

      protected String escapeImportFormula(String value)
    • getCellValues

      public Collection<com.hybris.backoffice.excel.template.cell.CellValue> getCellValues()
    • setCellValues

      public void setCellValues(List<com.hybris.backoffice.excel.template.cell.CellValue> cellValues)