public class FmtBool extends CellProcessorAdaptor implements BoolCellProcessor
ParseBool processor.next| Constructor and Description |
|---|
FmtBool(java.lang.String trueValue,
java.lang.String falseValue)
Constructs a new FmtBool processor, which converts a Boolean into a formatted string.
|
FmtBool(java.lang.String trueValue,
java.lang.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 |
|---|---|
java.lang.Object |
execute(java.lang.Object value,
CsvContext context)
This method is invoked by the framework when the processor needs to process data or check constraints.
|
toString, validateInputNotNullpublic FmtBool(java.lang.String trueValue,
java.lang.String falseValue)
trueValue - the String to use if the value is truefalseValue - the String to use if the value is falsepublic FmtBool(java.lang.String trueValue,
java.lang.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 chainjava.lang.NullPointerException - if next is nullpublic java.lang.Object execute(java.lang.Object value,
CsvContext context)
execute in interface CellProcessorvalue - the value to be processedcontext - the CSV contextSuperCsvCellProcessorException - if value is null or is not a BooleanCopyright © 2007-2014 Super CSV. All Rights Reserved.