Class BooleanConverter
- java.lang.Object
-
- nl.bstoi.poiparser.core.strategy.converter.AbstractConverter<java.lang.Boolean>
-
- nl.bstoi.poiparser.core.strategy.converter.BooleanConverter
-
- All Implemented Interfaces:
Converter<java.lang.Boolean>
public class BooleanConverter extends AbstractConverter<java.lang.Boolean>
-
-
Field Summary
Fields Modifier and Type Field Description static int[]trueIntegerValuestatic java.lang.String[]trueStringValue
-
Constructor Summary
Constructors Constructor Description BooleanConverter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.BooleanreadCell(org.apache.poi.ss.usermodel.Cell cell)Read a Cell and convert to [T]java.lang.BooleanreadCell(org.apache.poi.ss.usermodel.Cell cell, java.lang.String regex)Read a Cell and convert to [T]voidwriteCell(org.apache.poi.ss.usermodel.Cell cell, java.lang.Boolean value)Write a [T] value to cell-
Methods inherited from class nl.bstoi.poiparser.core.strategy.converter.AbstractConverter
getCellType, isCellTypeSupported
-
-
-
-
Method Detail
-
readCell
public java.lang.Boolean readCell(org.apache.poi.ss.usermodel.Cell cell)
Description copied from interface:ConverterRead a Cell and convert to [T]- Parameters:
cell- to read- Returns:
- a converted object [T] from a cell
-
readCell
public java.lang.Boolean readCell(org.apache.poi.ss.usermodel.Cell cell, java.lang.String regex)Description copied from interface:ConverterRead a Cell and convert to [T]- Parameters:
cell- to readregex- regex validation- Returns:
- a converted object [T] from a cell
-
writeCell
public void writeCell(org.apache.poi.ss.usermodel.Cell cell, java.lang.Boolean value)Description copied from interface:ConverterWrite a [T] value to cell- Parameters:
cell- to writevalue- value to convert to cell
-
-