public class FmtBool extends CellProcessorAdaptor implements BoolCellProcessor
ParseBool
processor.next
Constructor and Description |
---|
FmtBool(String trueValue,
String falseValue)
Constructs a new FmtBool processor, which converts a Boolean into a formatted string.
|
FmtBool(String trueValue,
String falseValue,
StringCellProcessor next)
Constructs a new FmtBool processor, which converts a Boolean into a formatted string, then calls the
next processor in the chain.
|
Modifier and Type | Method and Description |
---|---|
Object |
execute(Object value,
CsvContext context)
This method is invoked by the framework when the processor needs to process data or check constraints.
|
toString, validateInputNotNull
public FmtBool(String trueValue, String falseValue)
trueValue
- the String to use if the value is truefalseValue
- the String to use if the value is falsepublic FmtBool(String trueValue, String falseValue, StringCellProcessor next)
trueValue
- the String to use if the value is truefalseValue
- the String to use if the value is falsenext
- the next processor in the chainNullPointerException
- if next is nullpublic Object execute(Object value, CsvContext context)
execute
in interface CellProcessor
value
- the value to be processedcontext
- the CSV contextSuperCsvCellProcessorException
- if value is null or is not a BooleanCopyright © 2007–2015 Super CSV. All rights reserved.