GeoSoft API

no.geosoft.cc.currency
Interface CurrencyServer


public interface CurrencyServer

Interface for entities acting as a currency srver.

Author:
GeoSoft

Method Summary
 Collection getCurrencies()
          Return all currencies supported by this server.
 Currency getCurrency(String isoCode)
          Return a specfic currency (or null if this currency is not supported).
 Date getDate()
          Get date of exchange rate information.
 double getExchangeRate(Currency currency)
          Get exchange rate between this currency and the base currency (US$)
 String getName()
          Get name of this currency server.
 String getUrl()
          Get URL of this currency server.
 

Method Detail

getName

public String getName()
Get name of this currency server.

Returns:
Name of this currency server.

getUrl

public String getUrl()
Get URL of this currency server.

Returns:
URL of this currency server.

getCurrencies

public Collection getCurrencies()
Return all currencies supported by this server.

Returns:
Collection of currencies (java.util.Currency)

getCurrency

public Currency getCurrency(String isoCode)
Return a specfic currency (or null if this currency is not supported).

Parameters:
isoCode - ISO code of the currency to get.
Returns:
Requested currency.

getExchangeRate

public double getExchangeRate(Currency currency)
Get exchange rate between this currency and the base currency (US$)

Parameters:
currency - Currency to get exchange rate for.
Returns:
Exchange rate between this currency and US$

getDate

public Date getDate()
Get date of exchange rate information.

Returns:
Date of exchange rate information.

GeoSoft API

Copyright © 2004 - Geotechnical Software Services     geosoft.no