Copyright© 2008-2022 Sitevision AB, all rights reserved.
public interface Currency
This interface is conceptually equivalent with the java.util.Currency
class.
An instance of the Sitevision class implementing this interface is obtained via CurrencyFactory
.
Modifier and Type | Method and Description |
---|---|
String |
getCurrencyCode()
Gets the ISO 4217 currency code of this currency.
|
String |
getDisplayName(Locale aLocale)
Gets the name that is suitable for displaying this currency for a specified locale.
|
String |
getSymbol(Locale aLocale)
Gets the symbol of this currency for a specified locale.
|
String getCurrencyCode()
Currency codes are specified with a three-letter alphabetic code specified by ISO 4217
Currency name | Currency code |
---|---|
US Dollar | USD |
Euro | EUR |
Brittish Pound | GBP |
Swedish Krona | SEK |
Norwegian Krone | NOK |
String getDisplayName(Locale aLocale) throws NullPointerException
aLocale
- the locale to use for display of this currencyNullPointerException
- if aLocale is nullString getSymbol(Locale aLocale) throws NullPointerException
aLocale
- the locale to use for display of the symbol of this currencyNullPointerException
- if aLocale is nullSitevision - Portal and Content Management Made Easy
Sitevision is an advanced Java enterprise portal product and a portlet container (JSR 286) that implements Java Content Repository (JSR 283).
Copyright© 2008-2022 Sitevision AB, all rights reserved.