Class DefaultExcelCellService

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected java.lang.String escapeExportFormula​(java.lang.String value)  
      protected java.lang.String escapeImportFormula​(java.lang.String value)  
      java.lang.String getCellValue​(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()  
      void insertAttributeValue​(org.apache.poi.ss.usermodel.Cell cell, java.lang.Object value)
      Inserts given value to a given cell
      void setCellValues​(java.util.List<com.hybris.backoffice.excel.template.cell.CellValue> cellValues)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DefaultExcelCellService

        public DefaultExcelCellService()
    • Method Detail

      • getCellValue

        @Nonnull
        public java.lang.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
                                         java.lang.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 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)