- All Known Implementing Classes:
BooleanFormatter,CharFormatter,DateFormatter,DefaultDoubleFormatter,DefaultDurationFormatter,DefaultFloatFormatter,DefaultIntFormatter,DefaultLongFormatter,DefaultMoneyFormatter,DefaultNumericFormatter,DefaultPeriodFormatter,DoubleFormatter,DurationFormatter,FloatFormatter,GenericObjectFormatter,HexBinaryFormatter,IntFormatter,ISODateFormatter,ISOTimeOfDayFormatter,ISOTimestampFormatter,LongFormatter,MoneyFormatter,NumericFormatter,PeriodFormatter,StringFormatter,TextIp4Formatter,TextIp6Formatter,TimeFormatter,TimestampFormatter
public interface TokenFormatter
Converts token values into text values.
-
Method Summary
Modifier and TypeMethodDescriptionformat()Formats the current value of the source as a text value.voidsetSource(ScalarValued source) Sets the container holding values to be formatted.
-
Method Details
-
setSource
Sets the container holding values to be formatted. A reference to this container is held and accessed only when an formatting is requested.- Parameters:
source- the value container to format
-
format
String format()Formats the current value of the source as a text value.- Returns:
- the value of the source as a string
-