|
www.element4solution.com | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objecte4s.util.E4Object
e4s.util.E4String
e4s.application.CurrencyCode
public class CurrencyCode
ISO CurrencyCode-Code datatype and definitions.
E4ApplObj_Intf.getCountryCode(),
E4ModuleImplementation.getCountryCode(),
E4ServletImplementation_Intf.getCountryCode(),
T_E4S_CLIENT_Sel.get_COUNTRY(),
Language,
Example_CurrencyCode.java
http://www.ecb.int/stats/eurofxref/eurofxref-daily.xml
| Nested Class Summary | |
|---|---|
static class |
CurrencyCode.CURRENCY
|
| Fields inherited from class e4s.util.E4String |
|---|
CLASSNAME, m_maxsize, m_nullable, m_string |
| Fields inherited from class e4s.util.E4Object |
|---|
CRLF, E4S_CORE_SYSTEM_LANGUAGE, NBSP, NULLSTR, URL_ENCODING_CHARSET |
| Constructor Summary | |
|---|---|
CurrencyCode(char[] initval)
|
|
CurrencyCode(E4String initval)
|
|
CurrencyCode(java.lang.String initval)
|
|
CurrencyCode(java.lang.StringBuffer initval)
|
|
| Method Summary | |
|---|---|
static java.lang.String |
_getSVNVersionString()
Get version info string from subversion. |
static void |
addLegend(E4HtmlContentElement element,
E4ApplObj_Intf applobj)
|
static CurrencyCode.CURRENCY[] |
getCurrencies()
Get an array of country definitions - including ISO code, name and flag if defined. |
java.lang.String |
getCurrencyCode()
Get the county code, same as E4String.getString(). |
static E4SelectValues |
getCurrencySelection()
|
static E4SelectValues |
getCurrencySelection(CurrencyCode[] filtered)
Get a country selection for all the countries listed in the specified array. |
static java.util.Date |
getLastSyncDate()
Date and Time of last synchronization with EZB. |
E4Label_Intf |
getName()
Get the name associated with this currency code. |
static E4Label_Intf |
getName(CurrencyCode code)
Get the associated english name for a currency code. |
java.lang.String |
getPicture()
Deprecated. |
float |
getRate()
Get the current exchange rate to EURO issued by the EZB. |
static float |
getRate(CurrencyCode code)
Get the current exchange rate to EURO issued by the EZB. |
static float |
getRate(CurrencyCode from,
CurrencyCode to)
Get the exchange rate of one currency into another. |
java.lang.String |
getSymbol()
Get the associated symbol ($, €, ..) for this currency code, if defined. |
static java.lang.String |
getSymbol(CurrencyCode code)
Get the associated symbol ($, €, ..) for a currency code, if defined. |
java.lang.String |
getSymbolOrCode()
If available, uses a currency symbol such as the DOllar-, Euro, Yen- Sign and if not, uses the currency-code. |
static java.lang.String |
getSymbolOrCode(CurrencyCode code)
If available, uses a currency symbol such as the DOllar-, Euro, Yen- Sign and if not, uses the currency-code. |
static E4DBTypeUsage[] |
getUsage()
Returns null, only for compatibility reasons. |
static void |
init()
|
static CurrencyCode |
newInstance(java.lang.String string)
Make an instance of a country code or return null if the specified value is null. |
| Methods inherited from class e4s.util.E4String |
|---|
_equals, charAt, clone, compareTo, compareTo, compareTo, compareToIgnoreCase, compareToIgnoreCase, concat, concat, concat, concat, concat, cut, cut, endsWith, endsWith, equals, equals, equalsIgnoreCase, equalsIgnoreCase, fixed, fixedRight, getMaxSize, getNullable, getString, hashCode, indexOf, indexOf, indexOf, indexOf, indexOf, indexOf, lastIndexOf, lastIndexOf, lastIndexOf, lastIndexOf, lastIndexOf, lastIndexOf, left, left, length, matches, matchesIgnoreCase, regionMatches, regionMatches, regionMatches, regionMatches, remove, removeSpaces, removeSpaces, replace, replace, replace, replace, replace, replaceIgnoreCase, right, right, setMaxSize, setNullable, setString, startsWith, startsWith, startsWith, startsWith, substring, substring, toCharArray, toLowerCase, toLowerCase, toString, toUpperCase, toUpperCase, trim, validate |
| Methods inherited from class e4s.util.E4Object |
|---|
Calendar, CName, CName, E4LabelApp, E4LabelApp, E4LabelApp, E4LabelApp, E4LabelApp, E4LabelApp, E4LabelNone, E4LabelNone, E4LabelNone, E4LabelNone, E4LabelSys, E4LabelSys, e4sCopyright, e4sVersion, encode, encode, encode, encodeHtml, encodeHtml, encodeHtml, encodeURL, encodeURL, encodeURL, finalize, getLINE, getTRACE, getTRACE, getTRACE, getTRACE, getTRACE, getTRACE, getTraceMemory, HtmlEncode, HtmlEncode, HtmlEncode, isdecimal, isdigit, isnotok, isnotok, isnumeric, isok, isok, isok, isok, lastCallingFunction, lastCallingFunction, lastCallingFunction, lastCallingFunction, lastCallingStack, mkdirs, null2nbsp, null2nbsp, null2nbsp, ok, ok, ok, ok, outPrintln, setLogFile4Trace, setTraceMemory, STACKTRACE, toDebug, toDouble, toFloat, toFloat, TRACE_CALLS, TRACE, TRACE, TRACE, TRACE, TRACE, TRACE, TRACE, TRACE, TRACE, TRACE, TRACE, TRACE, wait |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int LEN
public static final java.lang.String URL_EUROFXREF
public static final E4DBColumnType _DATATYPE
public static final CurrencyCode C_EUR
public static final CurrencyCode C_USD
public static final CurrencyCode C_JPY
public static final CurrencyCode C_BGN
public static final CurrencyCode C_CYP
public static final CurrencyCode C_CZK
public static final CurrencyCode C_DKK
public static final CurrencyCode C_EEK
public static final CurrencyCode C_GBP
public static final CurrencyCode C_HUF
public static final CurrencyCode C_LTL
public static final CurrencyCode C_LVL
public static final CurrencyCode C_MTL
public static final CurrencyCode C_PLN
public static final CurrencyCode C_RON
public static final CurrencyCode C_SEK
public static final CurrencyCode C_SKK
public static final CurrencyCode C_CHF
public static final CurrencyCode C_ISK
public static final CurrencyCode C_NOK
public static final CurrencyCode C_HRK
public static final CurrencyCode C_RUB
public static final CurrencyCode C_TRY
public static final CurrencyCode C_AUD
public static final CurrencyCode C_CAD
public static final CurrencyCode C_CNY
public static final CurrencyCode C_HKD
public static final CurrencyCode C_IDR
public static final CurrencyCode C_KRW
public static final CurrencyCode C_MYR
public static final CurrencyCode C_NZD
public static final CurrencyCode C_PHP
public static final CurrencyCode C_SGD
public static final CurrencyCode C_THB
public static final CurrencyCode C_ZAR
public static final CurrencyCode C_TRL
public static final java.lang.String CURRENCY_EUR_SYMBOL
public static final java.lang.String CURRENCY_GBP_SYMBOL
public static final java.lang.String CURRENCY_USD_SYMBOL
public static final java.lang.String CURRENCY_JPY_SYMBOL
| Constructor Detail |
|---|
public CurrencyCode(java.lang.String initval)
public CurrencyCode(E4String initval)
public CurrencyCode(java.lang.StringBuffer initval)
public CurrencyCode(char[] initval)
| Method Detail |
|---|
public static E4Label_Intf getName(CurrencyCode code)
code - the currency-code which name is required.
public java.lang.String getSymbol()
code - the currency-code which name is required
CURRENCY_EUR_SYMBOL,
CURRENCY_GBP_SYMBOL,
CURRENCY_USD_SYMBOL,
CURRENCY_JPY_SYMBOLpublic static java.lang.String getSymbol(CurrencyCode code)
code - the currency-code which name is required
CURRENCY_EUR_SYMBOL,
CURRENCY_GBP_SYMBOL,
CURRENCY_USD_SYMBOL,
CURRENCY_JPY_SYMBOLpublic static java.lang.String getSymbolOrCode(CurrencyCode code)
getSymbol(),
getCurrencyCode()public static float getRate(CurrencyCode code)
code - the currency-code which rate is required
public static E4SelectValues getCurrencySelection(CurrencyCode[] filtered)
filtered - an array of countries
E4SelectValues.OPTION elements.getCountrySelection(boolean),
getCountrySelection()public static E4SelectValues getCurrencySelection()
public static void init()
public static E4DBTypeUsage[] getUsage()
public java.lang.String getCurrencyCode()
E4String.getString().
public E4Label_Intf getName()
public java.lang.String getPicture()
getSymbol()public java.lang.String getSymbolOrCode()
getSymbol(),
getCurrencyCode()public float getRate()
public static CurrencyCode.CURRENCY[] getCurrencies()
public static CurrencyCode newInstance(java.lang.String string)
string - the value
public static java.util.Date getLastSyncDate()
getRate()
public static float getRate(CurrencyCode from,
CurrencyCode to)
from - the origin currencyto - the target currency
public static void addLegend(E4HtmlContentElement element,
E4ApplObj_Intf applobj)
public static java.lang.String _getSVNVersionString()
E4Util.getRevisionCodeFromSVN(Class)
|
www.element4solution.com | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||