org.joda.money
Class CurrencyUnitDataProvider
java.lang.Object
org.joda.money.CurrencyUnitDataProvider
public abstract class CurrencyUnitDataProvider
- extends Object
Provider for available currencies.
Method Summary |
protected abstract void |
registerCurrencies()
Registers all the currencies known by this provider. |
protected void |
registerCurrency(String currencyCode,
int numericCurrencyCode,
int decimalPlaces,
List<String> countryCodes)
Registers a currency allowing it to be used. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CurrencyUnitDataProvider
public CurrencyUnitDataProvider()
registerCurrencies
protected abstract void registerCurrencies()
throws Exception
- Registers all the currencies known by this provider.
- Throws:
Exception
- if an error occurs
registerCurrency
protected final void registerCurrency(String currencyCode,
int numericCurrencyCode,
int decimalPlaces,
List<String> countryCodes)
- Registers a currency allowing it to be used.
This method is called by registerCurrencies()
to perform the
actual creation of a currency.
- Parameters:
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-currencycountryCodes
- the country codes to register the currency under, not null
Copyright © 2009–2013 Joda.org. All rights reserved.