ZMObject
|
+--ZMCurrencies
public class ZMCurrencies
extends ZMObject
| Fields inherited from org.zenmagick.ZMObject | |
|---|---|
| properties_ | |
| Constructor Summary | |
|---|---|
Create new instance. |
|
| Method Summary | |
|---|---|
| array | Get all currencies. |
| ZMCurrency | getCurrencyForCode(string code) Get the currency for the given code. |
| static void | instance() Get instance. |
| boolean | isValid(string code) Checks if a currency exists for the given code. |
| private void | load() Load all currencies. |
| Methods inherited from org.zenmagick.ZMObject | |
|---|---|
| attachMethod, get, getAttachedMethods, getPropertyNames, set, singleton | |
public ZMCurrencies()
Create new instance. /
public array getCurrencies()
Get all currencies.
ZMCurrency objects.public ZMCurrency getCurrencyForCode(string code)
Get the currency for the given code.
null.public static void instance()
Get instance. /
public boolean isValid(string code)
Checks if a currency exists for the given code.
true if a currency exists for the given code, false if not.private void load()
Load all currencies. /
Currencies.