jxl.read.biff
Class BooleanRecord

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

class BooleanRecord
extends CellValue
implements BooleanCell

A boolean cell last calculated value


Field Summary
private  boolean error
          Indicates whether this cell contains an error or a boolean
private  boolean value
          The boolean value of this cell.
 
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
BooleanRecord(Record t, FormattingRecords fr, SheetImpl si)
          Constructs this object from the raw data
 
Method Summary
 java.lang.String getContents()
          Returns the numerical value as a string
 Record getRecord()
          A special case which overrides the method in the subclass to get hold of the raw data
 CellType getType()
          Returns the cell type
 boolean getValue()
          Interface method which Gets the boolean value stored in this cell.
 boolean isError()
          Interface method which queries whether this cell contains an error.
 
Methods inherited from class jxl.read.biff.CellValue
getCellFormat, getColumn, getRow, getSheet, getXFIndex, isHidden
 
Methods inherited from class jxl.biff.RecordData
getCode
 
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

error

private boolean error
Indicates whether this cell contains an error or a boolean

value

private boolean value
The boolean value of this cell. If this cell represents an error, this will be false
Constructor Detail

BooleanRecord

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

isError

public boolean isError()
Interface method which queries whether this cell contains an error. Returns TRUE if it does, otherwise returns FALSE.
Returns:
TRUE if this cell is an error, FALSE otherwise

getValue

public boolean getValue()
Interface method which Gets the boolean value stored in this cell. If this cell contains an error, then returns FALSE. Always query this cell type using the accessor method isError() prior to calling this method
Specified by:
getValue in interface BooleanCell
Returns:
TRUE if this cell contains TRUE, FALSE if it contains FALSE or an error code

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

getRecord

public Record getRecord()
A special case which overrides the method in the subclass to get hold of the raw data
Overrides:
getRecord in class RecordData
Following copied from class: jxl.biff.RecordData
Returns:
the raw data