IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc

com.ibm.btt.bc.fx.impl
Class RatesRepositoryFileImpl

java.lang.Object
  extended by com.ibm.btt.bc.fx.impl.RatesRepositoryFileImpl
All Implemented Interfaces:
RatesRepository

public class RatesRepositoryFileImpl
extends java.lang.Object
implements RatesRepository

This class accesses the xml file containing the Foreign Exchange conversion rates.


Constructor Summary
RatesRepositoryFileImpl()
           
 
Method Summary
 java.util.Set<java.lang.String> getAllSupportedCurrencies()
          Returns all supported currency codes in a Set.
 java.util.Set<java.lang.String> getDefinedMonetaryItems()
          Returns all defined monetary item types.
 java.math.BigDecimal getRate(RatesQueryRequest request, boolean isBuy)
          Returns the foreign exchange rate according to the given parameters.
 java.util.List getRatesTable()
          Returns ratesTable property of the receiver which contains the data entries.
 void setRatesTable(java.util.List<java.util.HashMap> ratesTable)
          Sets ratesTable property of the receiver which contains the data entries.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RatesRepositoryFileImpl

public RatesRepositoryFileImpl()
Method Detail

getRate

public java.math.BigDecimal getRate(RatesQueryRequest request,
                                    boolean isBuy)
Description copied from interface: RatesRepository
Returns the foreign exchange rate according to the given parameters.

Specified by:
getRate in interface RatesRepository
Parameters:
request - the RatesQueryRequest identifying the request data
isBuy - true if the requested rate is a buy rate, otherwise it should be false
Returns:
the requested rate, null if the requested rate is not found in the datastorage

setRatesTable

public void setRatesTable(java.util.List<java.util.HashMap> ratesTable)
Sets ratesTable property of the receiver which contains the data entries.

Parameters:
ratesTable - the list containing data entries of rates

getRatesTable

public java.util.List getRatesTable()
Returns ratesTable property of the receiver which contains the data entries.

Returns:
the list containing data entries of rates

getAllSupportedCurrencies

public java.util.Set<java.lang.String> getAllSupportedCurrencies()
Description copied from interface: RatesRepository
Returns all supported currency codes in a Set.

Specified by:
getAllSupportedCurrencies in interface RatesRepository
Returns:
the Set containing all supported currency codes

getDefinedMonetaryItems

public java.util.Set<java.lang.String> getDefinedMonetaryItems()
Description copied from interface: RatesRepository
Returns all defined monetary item types.

Specified by:
getDefinedMonetaryItems in interface RatesRepository
Returns:
the Set containing all supported monetary item types

IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc

(c) Copyright IBM Corporation 1998, 2011