org.apache.poi.hssf.usermodel
Class HSSFFormulaEvaluator.CellValue

java.lang.Object
  extended by org.apache.poi.hssf.usermodel.HSSFFormulaEvaluator.CellValue
Enclosing class:
HSSFFormulaEvaluator

public static final class HSSFFormulaEvaluator.CellValue
extends java.lang.Object

Mimics the 'data view' of a cell. This allows formula evaluator to return a CellValue instead of precasting the value to String or Number or boolean type.

Author:
Amol S. Deshmukh < amolweb at ya hoo dot com >

Field Summary
static HSSFFormulaEvaluator.CellValue FALSE
           
static HSSFFormulaEvaluator.CellValue TRUE
           
 
Method Summary
 java.lang.String formatAsString()
           
 boolean getBooleanValue()
           
 int getCellType()
           
 byte getErrorValue()
           
 double getNumberValue()
           
 HSSFRichTextString getRichTextStringValue()
          Deprecated. (Sep 2008) Text formatting is lost during formula evaluation. Use getStringValue()
 java.lang.String getStringValue()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

TRUE

public static final HSSFFormulaEvaluator.CellValue TRUE

FALSE

public static final HSSFFormulaEvaluator.CellValue FALSE
Method Detail

getBooleanValue

public boolean getBooleanValue()
Returns:
Returns the booleanValue.

getNumberValue

public double getNumberValue()
Returns:
Returns the numberValue.

getStringValue

public java.lang.String getStringValue()
Returns:
Returns the stringValue.

getCellType

public int getCellType()
Returns:
Returns the cellType.

getErrorValue

public byte getErrorValue()
Returns:
Returns the errorValue.

getRichTextStringValue

public HSSFRichTextString getRichTextStringValue()
Deprecated. (Sep 2008) Text formatting is lost during formula evaluation. Use getStringValue()

Returns:
Returns the richTextStringValue.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

formatAsString

public java.lang.String formatAsString()


Copyright 2008 The Apache Software Foundation or its licensors, as applicable.