|
Golibri | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.golibri.iso.CurrencyCodes
The CurrencyCodes class contains all 3-character currency codes as specified by the ISO 4217 Standard.
The class allows to create CurrencyCode objects that are verified againsts the existing
set of currency codes in the ISO 4217 Standard.
The full set of currency codes can be found in the resource file org/golibri/iso/currencycodes.xml.
This resource file can be found in the zip-file golibri-resources.zip which comes with each golibri
distribution. If needed the XML-file can be updated or changed to serve your own needs.
The CurrencyCodes class is for working specifically with currency codes.
The preferred way to represent currencies is with org.golibri.common.finance.Currency.
CurrencyCode,
Currency| Constructor Summary | |
CurrencyCodes()
|
|
| Method Summary | |
static boolean |
exists(CurrencyCode currencyCode)
Static method to check whether a currency code exists. |
static boolean |
exists(java.lang.String currencyCode)
Static method to check whether a currency code exists. |
static CurrencyCode |
getCurrencyCode(java.lang.String currencyCode)
Static factory method to create currency code objects. |
static CurrencyCode[] |
getCurrencyCodes()
Static method that returns all existing currency codes. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public CurrencyCodes()
| Method Detail |
public static CurrencyCode getCurrencyCode(java.lang.String currencyCode)
currencyCode - String parameter containing the currency code
java.lang.NullPointerException - If the parameter currencyCode is null
java.lang.IllegalArgumentException - If the parameter currencyCode is not well-formatted or does not exist in the ISO 4217 Standardpublic static CurrencyCode[] getCurrencyCodes()
public static boolean exists(CurrencyCode currencyCode)
currencyCode - The currency code that needs to be checked
public static boolean exists(java.lang.String currencyCode)
currencyCode - The currency code that needs to be checked
|
Golibri | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||