public class ExportableFieldFormatter extends Object implements Formatter<ExportableField>
ExportableField.getTitle()
.
Note! Do not confuse this formatter with the formatter returned
from ExportableField.getFormatter()
. That formatter is about
formatting the exported values, while this formatter is about
formatting the column header.
Constructor and Description |
---|
ExportableFieldFormatter()
Create a new formatter.
|
ExportableFieldFormatter(String nullValue)
Create a new formatter.
|
Modifier and Type | Method and Description |
---|---|
String |
format(ExportableField value)
Format a value by converting it to a string.
|
ExportableField |
parseString(String value)
Parse a string and return a value of the correct type.
|
private String nullValue
public ExportableFieldFormatter()
public ExportableFieldFormatter(String nullValue)
nullValue
- The string to return if a null item is
passed to format(ExportableField)
public String format(ExportableField value)
Formatter
format
in interface Formatter<ExportableField>
value
- The value to formatpublic ExportableField parseString(String value)
Formatter
parseString
in interface Formatter<ExportableField>
value
- The string to parseUnsupportedOperationException
- Always