A
Formatter
is used to convert values from one format to another.
Typically, they are used to convert machine-readable data to a human-readable format.
A number of Formatter
instances are provided in the caplin.element.formatter
package, but others may be written that implement this simple interface.
All Formatter
implementations are singletons.
- Implementations:
- module:caplin/element/formatter/AmountFormatter
- module:caplin/element/formatter/BondNotationFormatter
- module:caplin/element/formatter/BracketsFormatter
- module:caplin/element/formatter/BRJSFormatterWrapper
- module:caplin/element/formatter/CountdownFormatter
- module:caplin/element/formatter/DateFormatter
- module:caplin/element/formatter/DecimalFormatter
- module:caplin/element/formatter/Fractional8thsFormatter
- module:caplin/element/formatter/InvalidPriceFormatter
- module:caplin/element/formatter/KeyValueFormatter
- module:caplin/element/formatter/LeadingZeroFormatter
- module:caplin/element/formatter/LocalisedAmountFormatter
- module:caplin/element/formatter/LowerCaseFormatter
- module:caplin/element/formatter/NullValueFormatter
- module:caplin/element/formatter/PercentFormatter
- module:caplin/element/formatter/RegExpFormatter
- module:caplin/element/formatter/RoundingFormatter
- module:caplin/element/formatter/SignificantFiguresFormatter
- module:caplin/element/formatter/SnapshotMaturityDateFormatter
- module:caplin/element/formatter/TemplateFormatter
- module:caplin/element/formatter/ThousandsFormatter
- module:caplin/element/formatter/TimeFormatter
- module:caplin/element/formatter/TrimFormatter
- module:caplin/element/formatter/TruncateDecimalFormatter
- module:caplin/element/formatter/UpperCaseFormatter