Top Description Fields Constructors Methods
org.apache.poi.hssf.record

public final Class BoolErrRecord

extends CellRecord
Class Inheritance
Imports
java.util.Map, java.util.function.Supplier, org.apache.poi.ss.usermodel.FormulaError, org.apache.poi.util.GenericRecordUtil, .LittleEndianOutput, .RecordFormatException

Creates new BoolErrRecord. (0x0205)

Field Summary

Modifier and TypeField and Description
private boolean
_isError

If true, this record represents an error cell value, otherwise this record represents a boolean cell value

private int
public static final short

Constructor Summary

AccessConstructor and Description
public
BoolErrRecord()

Creates new BoolErrRecord

public
public
BoolErrRecord(RecordInputStream
the RecordInputstream to read the record from
in
)

Method Summary

Modifier and TypeMethod and Description
public BoolErrRecord
public boolean

Returns:

boolean representing the boolean value
getBooleanValue
()

get the value for the cell

public byte

Returns:

byte representing the error value
getErrorValue
()

get the error value for the cell

public Map<String, Supplier<?>>
public HSSFRecordTypes
protected String
getRecordName()

Implements abstract org.apache.poi.hssf.record.CellRecord.getRecordName.

Gets the debug info BIFF record type name (used by toString().

public short
getSid()

Implements abstract org.apache.poi.hssf.record.Record.getSid.

return the non static version of the id for this record.

protected int
public boolean

Returns:

boolean true if the cell holds a boolean value
isBoolean
()

Indicates whether the call holds a boolean value

public boolean

Returns:

boolean true if the cell holds an error value
isError
()

Indicates whether the call holds an error value

protected void
serializeValue(LittleEndianOutput
the output
out
)

Implements abstract org.apache.poi.hssf.record.CellRecord.serializeValue.

writes out the value data for this cell record

public void
setValue(boolean
representing the boolean value
value
)

set the boolean value for the cell

public void
setValue(byte
error representing the error value this value can only be 0,7,15,23,29,36 or 42 see bugzilla bug 16560 for an explanation
value
)

set the error value for the cell.

public void
setValue(FormulaError
error representing the error value this value can only be 0,7,15,23,29,36 or 42 see bugzilla bug 16560 for an explanation
value
)

set the error value for the cell

Inherited from org.apache.poi.hssf.record.CellRecord:
getColumngetDataSizegetRowgetXFIndexserializesetColumnsetRowsetXFIndex

Field Detail

_isErrorback to summary
private boolean _isError

If true, this record represents an error cell value, otherwise this record represents a boolean cell value

_valueback to summary
private int _value
sidback to summary
public static final short sid

Constructor Detail

BoolErrRecordback to summary
public BoolErrRecord()

Creates new BoolErrRecord

BoolErrRecordback to summary
public BoolErrRecord(BoolErrRecord other)
BoolErrRecordback to summary
public BoolErrRecord(RecordInputStream in)
Parameters
in:RecordInputStream

the RecordInputstream to read the record from

Method Detail

copyback to summary
public BoolErrRecord copy()

Implements abstract org.apache.poi.hssf.record.CellRecord.copy.

Implements org.apache.poi.common.Duplicatable.copy.

Returns:BoolErrRecord

Doc from org.apache.poi.common.Duplicatable.copy.

a deep copy of the implementing class / instance

Annotations
@Override
getBooleanValueback to summary
public boolean getBooleanValue()

get the value for the cell

Returns:boolean

boolean representing the boolean value

getErrorValueback to summary
public byte getErrorValue()

get the error value for the cell

Returns:byte

byte representing the error value

getGenericPropertiesback to summary
public Map<String, Supplier<?>> getGenericProperties()

Overrides org.apache.poi.hssf.record.CellRecord.getGenericProperties.

Implements org.apache.poi.common.usermodel.GenericRecord.getGenericProperties.

Annotations
@Override
getGenericRecordTypeback to summary
public HSSFRecordTypes getGenericRecordType()

Overrides default org.apache.poi.common.usermodel.GenericRecord.getGenericRecordType.

Implements abstract org.apache.poi.hssf.record.Record.getGenericRecordType.

Annotations
@Override
getRecordNameback to summary
protected String getRecordName()

Implements abstract org.apache.poi.hssf.record.CellRecord.getRecordName.

Doc from org.apache.poi.hssf.record.CellRecord.getRecordName.

Gets the debug info BIFF record type name (used by toString().

Returns:String

the record type name

Annotations
@Override
getSidback to summary
public short getSid()

Implements abstract org.apache.poi.hssf.record.Record.getSid.

Doc from org.apache.poi.hssf.record.Record.getSid.

return the non static version of the id for this record.

Returns:short

he id for this record

getValueDataSizeback to summary
protected int getValueDataSize()

Implements abstract org.apache.poi.hssf.record.CellRecord.getValueDataSize.

Returns:int

Doc from org.apache.poi.hssf.record.CellRecord.getValueDataSize.

the size (in bytes) of the value data for this cell record

Annotations
@Override
isBooleanback to summary
public boolean isBoolean()

Indicates whether the call holds a boolean value

Returns:boolean

boolean true if the cell holds a boolean value

isErrorback to summary
public boolean isError()

Indicates whether the call holds an error value

Returns:boolean

boolean true if the cell holds an error value

serializeValueback to summary
protected void serializeValue(LittleEndianOutput out)

Implements abstract org.apache.poi.hssf.record.CellRecord.serializeValue.

Doc from org.apache.poi.hssf.record.CellRecord.serializeValue.

writes out the value data for this cell record

Parameters
out:LittleEndianOutput

the output

Annotations
@Override
setValueback to summary
public void setValue(boolean value)

set the boolean value for the cell

Parameters
value:boolean

representing the boolean value

setValueback to summary
public void setValue(byte value)

set the error value for the cell. See FormulaError for valid codes.

Parameters
value:byte

error representing the error value this value can only be 0,7,15,23,29,36 or 42 see bugzilla bug 16560 for an explanation

setValueback to summary
public void setValue(FormulaError value)

set the error value for the cell

Parameters
value:FormulaError

error representing the error value this value can only be 0,7,15,23,29,36 or 42 see bugzilla bug 16560 for an explanation