|
2.17.2: 2011-06-17 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.basedb.util.export.spotdata.ExportableFieldFormatter
public class ExportableFieldFormatter
Formatter implementation that formats an exportable field
by returning the column title. See 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.
Field Summary | |
---|---|
private String |
nullValue
|
Constructor Summary | |
---|---|
ExportableFieldFormatter()
Create a new formatter. |
|
ExportableFieldFormatter(String nullValue)
Create a new formatter. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private String nullValue
Constructor Detail |
---|
public ExportableFieldFormatter()
public ExportableFieldFormatter(String nullValue)
nullValue
- The string to return if a null item is
passed to format(ExportableField)
Method Detail |
---|
public String format(ExportableField value)
Formatter
format
in interface Formatter<ExportableField>
value
- The value to format
public ExportableField parseString(String value)
Formatter
parseString
in interface Formatter<ExportableField>
value
- The string to parse
UnsupportedOperationException
- Always
|
2.17.2: 2011-06-17 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |