|
IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ForeignExchange
Interfaces with the Foreign Exchange component, which is responsible for performing all foreign exchange calculations. It provides access to:
Method Summary | |
---|---|
java.math.BigDecimal |
convert(java.lang.String fromCurrency,
java.lang.String toCurrency,
java.lang.String fromMonetaryItem,
java.lang.String toMonetaryItem,
java.math.BigDecimal fromAmount)
Converts an amount in the source currency to another currency. |
java.math.BigDecimal |
convertReverse(java.lang.String fromCurrency,
java.lang.String toCurrency,
java.lang.String fromMonetaryItem,
java.lang.String toMonetaryItem,
java.math.BigDecimal toAmount)
Converts the source currency to the specified amount in the destination currency. |
java.lang.String[] |
getAllSupportedCurrencies()
Returns all supported currency codes in a Set. |
java.math.BigDecimal |
getBuyRate(java.lang.String toCurrency,
java.lang.String fromMonetaryItem,
java.lang.String toMonetaryItem)
Returns the rate at which the financial institution buys the specified currency against the home currency. |
java.math.BigDecimal |
getBuyRate(java.lang.String fromCurrency,
java.lang.String toCurrency,
java.lang.String fromMonetaryItem,
java.lang.String toMonetaryItem)
Returns the rate at which the financial institution buys the specified currency against the given source currency. |
java.lang.String[] |
getDefinedMonetaryItems()
Returns all defined monetary item types. |
java.lang.String |
getHomeCurrency()
Returns the home currency of financial institution. |
java.math.BigDecimal |
getSellRate(java.lang.String toCurrency,
java.lang.String fromMoetaryItem,
java.lang.String toMonetaryItem)
Returns the rate at which the financial institution sells the specified currency against the home currency. |
java.math.BigDecimal |
getSellRate(java.lang.String fromCurrency,
java.lang.String toCurrency,
java.lang.String fromMonetaryItem,
java.lang.String toMonetaryItem)
Returns the rate at which the financial institution sells the specified currency against the source currency. |
Method Detail |
---|
java.math.BigDecimal convert(java.lang.String fromCurrency, java.lang.String toCurrency, java.lang.String fromMonetaryItem, java.lang.String toMonetaryItem, java.math.BigDecimal fromAmount) throws ForeignExchangeException
fromCurrency
- the String character code of the source currencytoCurrency
- the String character code of the destination currencyfromMonetaryItem
- the type of monetary item of the source currencytoMonetaryItem
- the type of monetary item of the destination currencyfromAmount
- the amount of money in the source currency
ForeignExchangeException
- occurs if there is an error converting the currenciesjava.math.BigDecimal convertReverse(java.lang.String fromCurrency, java.lang.String toCurrency, java.lang.String fromMonetaryItem, java.lang.String toMonetaryItem, java.math.BigDecimal toAmount) throws ForeignExchangeException
fromCurrency
- the String character code of the source currencytoCurrency
- the String character code of the destination currencyfromMonetaryItem
- the type of monetary item of the source currencytoMonetaryItem
- the type of monetary item of the destination currencytoAmount
- the amount of money in the destination currency
ForeignExchangeException
- occurs if there is an error converting the currenciesjava.math.BigDecimal getBuyRate(java.lang.String toCurrency, java.lang.String fromMonetaryItem, java.lang.String toMonetaryItem) throws ForeignExchangeException
toCurrency
- the String character code of the currency being boughtfromMonetaryItem
- the type of monetary item of the source currencytoMonetaryItem
- the type of monetary item of the destination currency
ForeignExchangeException
- occurs if there is an error accessing the ratesjava.math.BigDecimal getSellRate(java.lang.String toCurrency, java.lang.String fromMoetaryItem, java.lang.String toMonetaryItem) throws ForeignExchangeException
toCurrency
- the String character code of the destination currencyfromMoetaryItem
- the type of monetary item of the source currencytoMonetaryItem
- the type of monetary item of the destination currency
ForeignExchangeException
- occurs if there is an error accessing the ratesjava.math.BigDecimal getBuyRate(java.lang.String fromCurrency, java.lang.String toCurrency, java.lang.String fromMonetaryItem, java.lang.String toMonetaryItem) throws ForeignExchangeException
fromCurrency
- the String character code of the given source currencytoCurrency
- the String character code of the currency being boughtfromMonetaryItem
- the type of monetary item of the source currencytoMonetaryItem
- the type of monetary item of the destination currency
ForeignExchangeException
- occurs if there is an error accessing the ratesjava.math.BigDecimal getSellRate(java.lang.String fromCurrency, java.lang.String toCurrency, java.lang.String fromMonetaryItem, java.lang.String toMonetaryItem) throws ForeignExchangeException
fromCurrency
- the String character code of the given source currencytoCurrency
- the String character code of the destination currencyfromMonetaryItem
- the type of monetary item of the source currencytoMonetaryItem
- the type of monetary item of the destination currency
ForeignExchangeException
- occurs if there is an error accessing the ratesjava.lang.String[] getAllSupportedCurrencies() throws ForeignExchangeException
ForeignExchangeException
- occurs if there is an error accessing the Setjava.lang.String[] getDefinedMonetaryItems() throws ForeignExchangeException
ForeignExchangeException
- occurs if there is an error accessing the Setjava.lang.String getHomeCurrency()
|
IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |