Euro Converter public API

The EuroConverter bean provides the public methods shown in the table below. The bean is non-visual, and has non-customizable properties that are akin to being a public API. Unlike the properties of a visual bean, these special properties of the EuroConverter bean might be thought of as attributes rather than properties.
Table 1. EuroConverter public API
Method Name Description
modifyCurrencyLabel(ISO_code, label) Modifies a value in the labelCurrencies dictionary. If the specified ISO code does not exist, the DSEInvalidCurrencyCodeException exception is thrown.
convertFromEuro(amountInEuroCurrency, targetCurrencyId) Converts a euro currency amount to the specified currency. The targetCurrencyId argument contains the target ISO code. If that code is not in the defined ISO codes, the DSEInvalidCurrencyCodeException exception is thrown.
convertToEuro(amountInSourceCurrency, sourceCurrencyId) Converts an amount in the specified currency. The sourceCurrencyId argument contains the source ISO code. If that code is not in the defined ISO codes, the DSEInvalidCurrencyCodeException exception is thrown.
getEuropeanCurrencies() Returns all the European currency labels included in the labelCurrencies dictionary.