|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.poi.hssf.usermodel.HSSFFormulaEvaluator.CellValue
public static final class HSSFFormulaEvaluator.CellValue
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.
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 |
---|
public HSSFFormulaEvaluator.CellValue(int cellType)
cellType
- Method Detail |
---|
public boolean getBooleanValue()
public void setBooleanValue(boolean booleanValue)
booleanValue
- The booleanValue to set.public double getNumberValue()
public void setNumberValue(double numberValue)
numberValue
- The numberValue to set.public java.lang.String getStringValue()
public void setStringValue(java.lang.String stringValue)
stringValue
- The stringValue to set. This method is deprecated, use
getRichTextStringValue instead.public int getCellType()
public byte getErrorValue()
public void setErrorValue(byte errorValue)
errorValue
- The errorValue to set.public HSSFRichTextString getRichTextStringValue()
public void setRichTextStringValue(HSSFRichTextString richTextStringValue)
richTextStringValue
- The richTextStringValue to set.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |