jxl.read.biff
Class SharedErrorFormulaRecord
java.lang.Object
jxl.biff.RecordData
jxl.read.biff.CellValue
jxl.read.biff.BaseSharedFormulaRecord
jxl.read.biff.SharedErrorFormulaRecord
- All Implemented Interfaces:
- Cell, jxl.read.biff.CellFeaturesAccessor, ErrorCell, ErrorFormulaCell, FormulaCell, FormulaData
- public class SharedErrorFormulaRecord
- extends BaseSharedFormulaRecord
- implements ErrorCell, FormulaData, ErrorFormulaCell
A number formula record, manufactured out of the Shared Formula
"optimization"
|
Method Summary |
java.lang.String |
getContents()
Returns the numerical value as a string |
int |
getErrorCode()
Interface method which gets the error code for this cell. |
byte[] |
getFormulaData()
Gets the raw bytes for the formula. |
CellType |
getType()
Accessor for the cell type |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SharedErrorFormulaRecord
public SharedErrorFormulaRecord(Record t,
File excelFile,
int ec,
FormattingRecords fr,
ExternalSheet es,
WorkbookMethods nt,
SheetImpl si)
- Constructs this number
- Parameters:
t - the dataexcelFile - the excel biff datafr - the formatting recordses - the external sheetnt - the name tablesi - the sheet
getErrorCode
public int getErrorCode()
- Interface method which gets the error code for this cell. If this cell
does not represent an error, then it returns 0. Always use the
method isError() to determine this prior to calling this method
- Specified by:
getErrorCode in interface ErrorCell
- Returns:
- the error code if this cell contains an error, 0 otherwise
getContents
public java.lang.String getContents()
- Returns the numerical value as a string
- Specified by:
getContents in interface Cell
- Returns:
- The numerical value of the formula as a string
getType
public CellType getType()
- Accessor for the cell type
- Specified by:
getType in interface Cell
- Returns:
- the cell type
getFormulaData
public byte[] getFormulaData()
throws FormulaException
- Gets the raw bytes for the formula. This will include the
parsed tokens array. Used when copying spreadsheets
- Specified by:
getFormulaData in interface FormulaData
- Returns:
- the raw record data
- Throws:
FormulaException