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 >

Constructor Summary
HSSFFormulaEvaluator.CellValue(int cellType)
          CellType should be one of the types defined in HSSFCell
 
Method Summary
 boolean getBooleanValue()
           
 int getCellType()
           
 byte getErrorValue()
           
 double getNumberValue()
           
 HSSFRichTextString getRichTextStringValue()
           
 java.lang.String getStringValue()
          Deprecated.  
 void setBooleanValue(boolean booleanValue)
           
 void setErrorValue(byte errorValue)
           
 void setNumberValue(double numberValue)
           
 void setRichTextStringValue(HSSFRichTextString richTextStringValue)
           
 void setStringValue(java.lang.String stringValue)
          Deprecated.  
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HSSFFormulaEvaluator.CellValue

public HSSFFormulaEvaluator.CellValue(int cellType)
CellType should be one of the types defined in HSSFCell

Parameters:
cellType -
Method Detail

getBooleanValue

public boolean getBooleanValue()
Returns:
Returns the booleanValue.

setBooleanValue

public void setBooleanValue(boolean booleanValue)
Parameters:
booleanValue - The booleanValue to set.

getNumberValue

public double getNumberValue()
Returns:
Returns the numberValue.

setNumberValue

public void setNumberValue(double numberValue)
Parameters:
numberValue - The numberValue to set.

getStringValue

public java.lang.String getStringValue()
Deprecated. 

Returns:
Returns the stringValue. This method is deprecated, use getRichTextStringValue instead

setStringValue

public void setStringValue(java.lang.String stringValue)
Deprecated. 

Parameters:
stringValue - The stringValue to set. This method is deprecated, use getRichTextStringValue instead.

getCellType

public int getCellType()
Returns:
Returns the cellType.

getErrorValue

public byte getErrorValue()
Returns:
Returns the errorValue.

setErrorValue

public void setErrorValue(byte errorValue)
Parameters:
errorValue - The errorValue to set.

getRichTextStringValue

public HSSFRichTextString getRichTextStringValue()
Returns:
Returns the richTextStringValue.

setRichTextStringValue

public void setRichTextStringValue(HSSFRichTextString richTextStringValue)
Parameters:
richTextStringValue - The richTextStringValue to set.


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