Interface ExcelCellService

All Known Implementing Classes:
DefaultExcelCellService

public interface ExcelCellService
Service responsible for operation on excel's single cell.
  • Method Summary

    Modifier and Type
    Method
    Description
    getCellValue(org.apache.poi.ss.usermodel.Cell cell)
    Returns cell value as a string value.
    void
    insertAttributeValue(org.apache.poi.ss.usermodel.Cell cell, Object object)
    Inserts given value to a given cell
  • Method Details

    • getCellValue

      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 Object object)
      Inserts given value to a given cell
      Parameters:
      cell - where the value will be inserted
      object - a value to insert