All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.roguewave.examples.money.currency.v1_0.USDollarGroup

java.lang.Object
   |
   +----com.roguewave.examples.money.currency.v1_0.USDollarGroup

public class USDollarGroup
extends Object
implements ExchangeGroup
Implements a currency exchange group. An exchange group's purpose in life is to create instances of the Exchange class when given source and target currencies and an ExchangeRateTable. The class USDollarGroup creates Exchange objects with a USDollarExchange implementation.

Author:
Trevor Misfeldt
See Also:
ExchangeGroup, Exchange, USDollarExchange

Variable Index

 o NAME
The name of this group is "USDollarGroup"

Constructor Index

 o USDollarGroup()
Creates a US Dollar group.

Method Index

 o getExchange(String, String, ExchangeRateTable)
Creates an exchange object, with the rates in the given exchange rate table, that manages the conversion of source currency amounts to target currency amounts through the use of the US Dollar as a base.
 o getName()
Returns the name of this exchange group.

Variables

 o NAME
 public static final String NAME
The name of this group is "USDollarGroup"

Constructors

 o USDollarGroup
 public USDollarGroup()
Creates a US Dollar group.

Methods

 o getName
 public String getName()
Returns the name of this exchange group.

Returns:
the name
 o getExchange
 public Exchange getExchange(String source,
                             String target,
                             ExchangeRateTable rates)
Creates an exchange object, with the rates in the given exchange rate table, that manages the conversion of source currency amounts to target currency amounts through the use of the US Dollar as a base.

Parameters:
source - the source currency mnemonic
target - the target currency mnemonic
rates - the exchange rate table
Returns:
an exchange object for converting from source->target or, if one could not be found, a null value.

All Packages  Class Hierarchy  This Package  Previous  Next  Index