Class CellData

java.lang.Object
org.jxls.common.CellData

public class CellData extends Object
Represents an Excel cell data holder and cell value evaluator
Author:
Leonid Vysochyn
  • Field Details

  • Constructor Details

  • Method Details

    • updateFormulaValue

      protected void updateFormulaValue()
    • getTransformer

      public Transformer getTransformer()
    • setTransformer

      public void setTransformer(Transformer transformer)
    • getArea

      public XlsArea getArea()
    • setArea

      public void setArea(XlsArea area)
    • getAttrMap

      public Map<String,String> getAttrMap()
    • setAttrMap

      public void setAttrMap(Map<String,String> attrMap)
    • setEvaluationResult

      public void setEvaluationResult(Object evaluationResult)
    • getFormulaStrategy

      public CellData.FormulaStrategy getFormulaStrategy()
    • setFormulaStrategy

      public void setFormulaStrategy(CellData.FormulaStrategy formulaStrategy)
    • getDefaultValue

      public String getDefaultValue()
    • setDefaultValue

      public void setDefaultValue(String defaultValue)
    • getCellComment

      public String getCellComment()
    • setCellComment

      public void setCellComment(String cellComment)
    • isJxlsParamsComment

      protected boolean isJxlsParamsComment(String cellComment)
    • getSheetName

      public String getSheetName()
    • getCellRef

      public CellRef getCellRef()
    • getCellType

      public CellData.CellType getCellType()
    • setCellType

      public void setCellType(CellData.CellType cellType)
    • getCellValue

      public Object getCellValue()
    • getRow

      public int getRow()
    • getCol

      public int getCol()
    • getFormula

      public String getFormula()
    • setFormula

      public void setFormula(String formula)
    • getEvaluatedFormulas

      public List<String> getEvaluatedFormulas()
    • isFormulaCell

      public boolean isFormulaCell()
    • isParameterizedFormulaCell

      public boolean isParameterizedFormulaCell()
    • isJointedFormulaCell

      public boolean isJointedFormulaCell()
    • formulaContainsJointedCellRef

      protected boolean formulaContainsJointedCellRef(String formula)
      Checks if the formula contains jointed cell references Jointed references have format U_(cell1, cell2) e.g. $[SUM(U_(F8,F13))]
      Parameters:
      formula - string
      Returns:
      true if the formula contains jointed cell references
    • addTargetPos

      public boolean addTargetPos(CellRef cellRef)
    • addTargetParentAreaRef

      public void addTargetParentAreaRef(AreaRef areaRef)
    • getTargetParentAreaRef

      public List<AreaRef> getTargetParentAreaRef()
    • setEvaluatedFormulas

      public void setEvaluatedFormulas(List<String> evaluatedFormulas)
    • getTargetPos

      public List<CellRef> getTargetPos()
      Returns:
      a list of cell refs into which the current cell was transformed
    • resetTargetPos

      public void resetTargetPos()
    • evaluate

      public Object evaluate(Context context)
    • processJxlsParams

      protected void processJxlsParams(String cellComment)
      The method parses jx:params attribute from a cell comment

      jx:params can be used e.g.

      Parameters:
      cellComment - the comment string
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object