Class OdsCell

java.lang.Object
org.spdx.spreadsheetstore.ods.OdsCell
All Implemented Interfaces:
org.apache.poi.ss.usermodel.Cell

public class OdsCell extends Object implements org.apache.poi.ss.usermodel.Cell
Adapter for Apache POI Cell over the SODS Range. Provides mechanisms to read and write cell data, respecting SODS limitations.
  • Constructor Details

    • OdsCell

      public OdsCell(OdsRow row, int columnIndex, com.github.miachm.sods.Range range)
      Creates an ODS cell wrapper.
      Parameters:
      row - Parent ODS row adapter.
      columnIndex - Zero-based column index.
      range - Underlying SODS Range representing this cell.
  • Method Details

    • setCellValue

      public void setCellValue(String value)
      Specified by:
      setCellValue in interface org.apache.poi.ss.usermodel.Cell
    • setCellValue

      public void setCellValue(double value)
      Specified by:
      setCellValue in interface org.apache.poi.ss.usermodel.Cell
    • setCellValue

      public void setCellValue(Date value)
      Specified by:
      setCellValue in interface org.apache.poi.ss.usermodel.Cell
    • setCellType

      public void setCellType(org.apache.poi.ss.usermodel.CellType cellType)
      Specified by:
      setCellType in interface org.apache.poi.ss.usermodel.Cell
    • getStringCellValue

      public String getStringCellValue()
      Specified by:
      getStringCellValue in interface org.apache.poi.ss.usermodel.Cell
    • getNumericCellValue

      public double getNumericCellValue()
      Specified by:
      getNumericCellValue in interface org.apache.poi.ss.usermodel.Cell
    • getDateCellValue

      public Date getDateCellValue()
      Specified by:
      getDateCellValue in interface org.apache.poi.ss.usermodel.Cell
    • getCellType

      public org.apache.poi.ss.usermodel.CellType getCellType()
      Specified by:
      getCellType in interface org.apache.poi.ss.usermodel.Cell
    • setCellStyle

      public void setCellStyle(org.apache.poi.ss.usermodel.CellStyle style)
      Specified by:
      setCellStyle in interface org.apache.poi.ss.usermodel.Cell
    • getCellStyle

      public org.apache.poi.ss.usermodel.CellStyle getCellStyle()
      Specified by:
      getCellStyle in interface org.apache.poi.ss.usermodel.Cell
    • getColumnIndex

      public int getColumnIndex()
      Specified by:
      getColumnIndex in interface org.apache.poi.ss.usermodel.Cell
    • getRowIndex

      public int getRowIndex()
      Specified by:
      getRowIndex in interface org.apache.poi.ss.usermodel.Cell
    • getSheet

      public org.apache.poi.ss.usermodel.Sheet getSheet()
      Specified by:
      getSheet in interface org.apache.poi.ss.usermodel.Cell
    • getRow

      public org.apache.poi.ss.usermodel.Row getRow()
      Specified by:
      getRow in interface org.apache.poi.ss.usermodel.Cell
    • setBlank

      public void setBlank()
      Specified by:
      setBlank in interface org.apache.poi.ss.usermodel.Cell
    • setCellFormula

      public void setCellFormula(String formula)
      Specified by:
      setCellFormula in interface org.apache.poi.ss.usermodel.Cell
    • getCellFormula

      public String getCellFormula()
      Specified by:
      getCellFormula in interface org.apache.poi.ss.usermodel.Cell
    • getBooleanCellValue

      public boolean getBooleanCellValue()
      Specified by:
      getBooleanCellValue in interface org.apache.poi.ss.usermodel.Cell
    • getErrorCellValue

      public byte getErrorCellValue()
      Specified by:
      getErrorCellValue in interface org.apache.poi.ss.usermodel.Cell
    • setCellErrorValue

      public void setCellErrorValue(byte value)
      Specified by:
      setCellErrorValue in interface org.apache.poi.ss.usermodel.Cell
    • setAsActiveCell

      public void setAsActiveCell()
      Specified by:
      setAsActiveCell in interface org.apache.poi.ss.usermodel.Cell
    • getAddress

      public org.apache.poi.ss.util.CellAddress getAddress()
      Specified by:
      getAddress in interface org.apache.poi.ss.usermodel.Cell
    • setCellValue

      public void setCellValue(Calendar value)
      Specified by:
      setCellValue in interface org.apache.poi.ss.usermodel.Cell
    • setCellValue

      public void setCellValue(org.apache.poi.ss.usermodel.RichTextString value)
      Specified by:
      setCellValue in interface org.apache.poi.ss.usermodel.Cell
    • setCellValue

      public void setCellValue(boolean value)
      Specified by:
      setCellValue in interface org.apache.poi.ss.usermodel.Cell
    • getRichStringCellValue

      public org.apache.poi.ss.usermodel.RichTextString getRichStringCellValue()
      Specified by:
      getRichStringCellValue in interface org.apache.poi.ss.usermodel.Cell
    • removeCellComment

      public void removeCellComment()
      Specified by:
      removeCellComment in interface org.apache.poi.ss.usermodel.Cell
    • getCellComment

      public org.apache.poi.ss.usermodel.Comment getCellComment()
      Specified by:
      getCellComment in interface org.apache.poi.ss.usermodel.Cell
    • setCellComment

      public void setCellComment(org.apache.poi.ss.usermodel.Comment comment)
      Specified by:
      setCellComment in interface org.apache.poi.ss.usermodel.Cell
    • getHyperlink

      public org.apache.poi.ss.usermodel.Hyperlink getHyperlink()
      Specified by:
      getHyperlink in interface org.apache.poi.ss.usermodel.Cell
    • setHyperlink

      public void setHyperlink(org.apache.poi.ss.usermodel.Hyperlink hyperlink)
      Specified by:
      setHyperlink in interface org.apache.poi.ss.usermodel.Cell
    • getArrayFormulaRange

      public org.apache.poi.ss.util.CellRangeAddress getArrayFormulaRange()
      Specified by:
      getArrayFormulaRange in interface org.apache.poi.ss.usermodel.Cell
    • isPartOfArrayFormulaGroup

      public boolean isPartOfArrayFormulaGroup()
      Specified by:
      isPartOfArrayFormulaGroup in interface org.apache.poi.ss.usermodel.Cell
    • removeHyperlink

      public void removeHyperlink()
      Specified by:
      removeHyperlink in interface org.apache.poi.ss.usermodel.Cell
    • getLocalDateTimeCellValue

      public LocalDateTime getLocalDateTimeCellValue()
      Specified by:
      getLocalDateTimeCellValue in interface org.apache.poi.ss.usermodel.Cell
    • setCellValue

      public void setCellValue(LocalDateTime value)
      Specified by:
      setCellValue in interface org.apache.poi.ss.usermodel.Cell
    • setCellValue

      public void setCellValue(LocalDate value)
      Specified by:
      setCellValue in interface org.apache.poi.ss.usermodel.Cell
    • removeFormula

      public void removeFormula()
      Specified by:
      removeFormula in interface org.apache.poi.ss.usermodel.Cell
    • getCachedFormulaResultType

      public org.apache.poi.ss.usermodel.CellType getCachedFormulaResultType()
      Specified by:
      getCachedFormulaResultType in interface org.apache.poi.ss.usermodel.Cell