public abstract class CurrencyUnitDataProvider
extends java.lang.Object
Constructor | Description |
---|---|
CurrencyUnitDataProvider() |
Modifier and Type | Method | Description |
---|---|---|
protected void |
registerCountry(java.lang.String countryCode,
java.lang.String currencyCode) |
Registers a country allowing it to be used.
|
protected abstract void |
registerCurrencies() |
Registers all the currencies known by this provider.
|
protected void |
registerCurrency(java.lang.String currencyCode,
int numericCurrencyCode,
int decimalPlaces) |
Registers a currency allowing it to be used.
|
protected abstract void registerCurrencies() throws java.lang.Exception
java.lang.Exception
- if an error occursprotected final void registerCurrency(java.lang.String currencyCode, int numericCurrencyCode, int decimalPlaces)
This method is called by registerCurrencies()
to perform the
actual creation of a currency.
currencyCode
- the currency code, not nullnumericCurrencyCode
- the numeric currency code, -1 if nonedecimalPlaces
- the number of decimal places that the currency
normally has, from 0 to 3, or -1 for a pseudo-currencyprotected final void registerCountry(java.lang.String countryCode, java.lang.String currencyCode)
This method is called by registerCurrencies()
to perform the
actual creation of a country.
countryCode
- the country code, not nullcurrencyCode
- the currency code, not nullCopyright © 2009–2018 Joda.org. All rights reserved.