com.highdeal.currency
Interface CurrencyBook

All Known Implementing Classes:
CurrencyBookNotifier, CurrencyMapBook, PropertyCurrencyBook

public interface CurrencyBook

This Java interface specifies a currency book that keeps the currencies available in your client application; The currency list can be updated by the instances of the connected SAP CC Core Server system.


Method Summary
 void addCurrency(Currency currency)
          Deprecated. The client cannot update the list of currencies (Can return an UnsupportedOperationException).
 java.util.Vector<Currency> getCurrencies()
          Returns all the current currencies that can be used in your client application.
 Currency getCurrency(int code)
          Deprecated. The ISO digit code is not stored and cannot be returned. Returns null.
 Currency getCurrency(java.lang.String code)
          Returns a currency from a specified code.
 Currency getCurrency(java.lang.String iso4217code, int precision)
          Returns a currency from a given ISO 4217 code and with a precision greater or equal to the given precision; If there is no currency a given ISO 4217 code for with a precision greater or equal to the given precision, return null.
 

Method Detail

getCurrencies

java.util.Vector<Currency> getCurrencies()
Returns all the current currencies that can be used in your client application.

Returns:
The current list of currencies that can be used in your client application

getCurrency

Currency getCurrency(java.lang.String code)
Returns a currency from a specified code.

Parameters:
code - The code of the currency
Returns:
The currency for this code

getCurrency

Currency getCurrency(java.lang.String iso4217code,
                     int precision)
Returns a currency from a given ISO 4217 code and with a precision greater or equal to the given precision; If there is no currency a given ISO 4217 code for with a precision greater or equal to the given precision, return null.

Parameters:
iso4217code - The ISO 4217 code of the currency
precision - The minimum precision of the currency
Returns:
The currency for this ISO 4217 code and precision or null

getCurrency

@Deprecated
Currency getCurrency(int code)
Deprecated. The ISO digit code is not stored and cannot be returned. Returns null.

Returns a currency from a given ISO 4217 code.

Parameters:
code - The ISO 4217 three-digit currency code
Returns:
The currency for this code

addCurrency

@Deprecated
void addCurrency(Currency currency)
Deprecated. The client cannot update the list of currencies (Can return an UnsupportedOperationException).

Adds a currency in the currency book.

Parameters:
currency - The currency to be added

Document Published: October 2015 (SAP CC 4.0 SP10 and Later)