IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc

com.ibm.btt.bc.fx
Class RatesQueryRequest

java.lang.Object
  extended by com.ibm.btt.bc.fx.RatesQueryRequest

public class RatesQueryRequest
extends java.lang.Object

This class represents a request for a conversion rate.


Constructor Summary
RatesQueryRequest()
          This constructor creates a RatesQueryRequest object.
RatesQueryRequest(RatesQueryRequest request)
          Creates an object that is a clone of the given RatesQueryRequest.
RatesQueryRequest(java.lang.String fromCurrency, java.lang.String toCurrency, java.lang.String fromMonetaryItem, java.lang.String toMonetaryItem)
          This constructor creates a RatesQueryRequest object that identifies the source and destination currencies, and what types of monetary items are involved in the foreign exchange conversion.
 
Method Summary
 boolean equals(java.lang.Object anObject)
          Determines if the specified object is the same as the current RatesQueryRequest.
 java.lang.String getFromCurrency()
          Returns the source currency of the conversion.
 java.lang.String getFromMonetaryItem()
          Returns the destination currency of the conversion.
 java.lang.String getToCurrency()
          Returns the destination currency of the conversion.
 java.lang.String getToMonetaryItem()
          Returns the type of monetary item used to contain the results of the conversion.
 int hashCode()
           
 void setFromCurrency(java.lang.String fromCurrency)
          Sets the source currency of the conversion.
 void setFromMonetaryItem(java.lang.String fromMonetaryItem)
          Returns the type of monetary item being converted.
 void setToCurrency(java.lang.String toCurrency)
          Sets the destination currency of the conversion.
 void setToMonetaryItem(java.lang.String toMonetaryItem)
          Sets the type of monetary item used to contain the results of the conversion.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RatesQueryRequest

public RatesQueryRequest()
This constructor creates a RatesQueryRequest object. The source and destination currencies, and what types of monetary items are involved in the foreign exchange conversion are all null.


RatesQueryRequest

public RatesQueryRequest(RatesQueryRequest request)
Creates an object that is a clone of the given RatesQueryRequest.

Parameters:
request - the existing RatesQueryRequest instance

RatesQueryRequest

public RatesQueryRequest(java.lang.String fromCurrency,
                         java.lang.String toCurrency,
                         java.lang.String fromMonetaryItem,
                         java.lang.String toMonetaryItem)
This constructor creates a RatesQueryRequest object that identifies the source and destination currencies, and what types of monetary items are involved in the foreign exchange conversion.

Parameters:
fromCurrency - the String character code for the source currency
toCurrency - the String character code for the destination currency
fromMonetaryItem - the type of monetary item of the source currency
toMonetaryItem - the type of monetary item of the destination currency
Method Detail

getFromCurrency

public java.lang.String getFromCurrency()
Returns the source currency of the conversion.

Returns:
the code for the currency

setFromCurrency

public void setFromCurrency(java.lang.String fromCurrency)
Sets the source currency of the conversion.

Parameters:
fromCurrency - the code for the currency

getFromMonetaryItem

public java.lang.String getFromMonetaryItem()
Returns the destination currency of the conversion.

Returns:
the code for the currency

setFromMonetaryItem

public void setFromMonetaryItem(java.lang.String fromMonetaryItem)
Returns the type of monetary item being converted.

Parameters:
fromMonetaryItem - the code for the monetary item

getToCurrency

public java.lang.String getToCurrency()
Returns the destination currency of the conversion.

Returns:
the code for the currency

setToCurrency

public void setToCurrency(java.lang.String toCurrency)
Sets the destination currency of the conversion.

Parameters:
toCurrency - the code for the currency

getToMonetaryItem

public java.lang.String getToMonetaryItem()
Returns the type of monetary item used to contain the results of the conversion.

Returns:
the code for the monetary item

setToMonetaryItem

public void setToMonetaryItem(java.lang.String toMonetaryItem)
Sets the type of monetary item used to contain the results of the conversion.

Parameters:
toMonetaryItem - the code for the monetary item

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object anObject)
Determines if the specified object is the same as the current RatesQueryRequest.

Overrides:
equals in class java.lang.Object
Parameters:
anObject - the object to check
Returns:
boolean true if the object and the current RatesQueryRequest are the same

IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc

(c) Copyright IBM Corporation 1998, 2009