Copyright© 2008-2026 Sitevision AB, all rights reserved.
@Requireable(value="FormatterBuilderFactory") public interface FormatterBuilderFactory
An instance of the Sitevision class implementing this interface can be obtained via
Utils.getFormatterBuilderFactory().
See Utils for how to obtain an instance of the Utils interface.
| Modifier and Type | Method and Description |
|---|---|
NumericFormatterBuilder |
getCurrencyFormatterBuilder(Locale aLocale)
Returns a builder for creating currency formatters with a given Locale.
|
NumericFormatterBuilder |
getCurrencyFormatterBuilder(Locale aLocale,
Currency aCurrency)
Returns a builder for creating currency formatters with a given Locale and Currency.
|
NumericFormatterBuilder |
getNumberFormatterBuilder(Locale aLocale)
Returns a builder for creating number formatters with a given Locale.
|
NumericFormatterBuilder |
getPercentFormatterBuilder(Locale aLocale)
Returns a builder for creating percent formatters with a given Locale.
|
NumericFormatterBuilder getNumberFormatterBuilder(Locale aLocale) throws NullPointerException
The builder returned by this method will create instances that are conceptually equivalent with
java.text.NumberFormat.getNumberInstance(aLocale).
aLocale - the LocaleNullPointerException - if aLocale is nullNumericFormatterBuilder getPercentFormatterBuilder(Locale aLocale) throws NullPointerException
The builder returned by this method will create instances that are conceptually equivalent with
java.text.NumberFormat.getPercentInstance(aLocale).
aLocale - the LocaleNullPointerException - if aLocale is nullNumericFormatterBuilder getCurrencyFormatterBuilder(Locale aLocale) throws NullPointerException
Currency note! Currency typically depends on a country. A language-only Locale
will typically be formatted without any specific currency. Use getCurrencyFormatterBuilder(Locale, Currency)
to actively specify what currency to use when using such locale.
The builder returned by this method will create instances that are conceptually equivalent with
java.text.NumberFormat.getCurrencyInstance(aLocale).
aLocale - the LocaleNullPointerException - if aLocale is nullgetCurrencyFormatterBuilder(Locale, Currency)NumericFormatterBuilder getCurrencyFormatterBuilder(Locale aLocale, Currency aCurrency) throws NullPointerException
Currency instances are created via methods in CurrencyFactory.
The builder returned by this method will create instances that are conceptually equivalent with
java.text.NumberFormat.getCurrencyInstance(aLocale) with a
java.util.Currency.getInstance(aCurrencyCode) set.
aLocale - the LocaleaCurrency - the currencyNullPointerException - if aLocale or aCurrency is nullCurrencyFactorySitevision - Content Management Made Easy
Sitevision is an advanced Java enterprise portal product that implements Java Content Repository (JSR 283).
Copyright© 2008-2026 Sitevision AB, all rights reserved.