jxl.read.biff
Class ErrorRecord

java.lang.Object
  |
  +--jxl.biff.RecordData
        |
        +--jxl.read.biff.CellValue
              |
              +--jxl.read.biff.ErrorRecord
All Implemented Interfaces:
Cell, ErrorCell

class ErrorRecord
extends CellValue
implements ErrorCell

A cell containing an error code. This will usually be the result of some error during the calculation of a formula


Field Summary
private  int errorCode
          The error code if this cell evaluates to an error, otherwise zer0
 
Fields inherited from class jxl.read.biff.CellValue
column, format, formattingRecords, initialized, row, sheet, xfIndex
 
Fields inherited from class jxl.biff.RecordData
code, record
 
Constructor Summary
ErrorRecord(Record t, FormattingRecords fr, SheetImpl si)
          Constructs this object
 
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.
 CellType getType()
          Returns the cell type
 
Methods inherited from class jxl.read.biff.CellValue
getCellFormat, getColumn, getRow, getSheet, getXFIndex, isHidden
 
Methods inherited from class jxl.biff.RecordData
getCode, getRecord
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 
Methods inherited from interface jxl.Cell
getCellFormat, getColumn, getRow, isHidden
 

Field Detail

errorCode

private int errorCode
The error code if this cell evaluates to an error, otherwise zer0
Constructor Detail

ErrorRecord

public ErrorRecord(Record t,
                   FormattingRecords fr,
                   SheetImpl si)
Constructs this object
Parameters:
t - the raw data
fr - the formatting records
si - the sheet
Method Detail

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()
Returns the cell type
Specified by:
getType in interface Cell
Returns:
The cell type