toolbox.services.util
Interface CurrencyCodeService

Package class diagram package CurrencyCodeService
All Known Implementing Classes:
CurrencyCodeServiceISO4217Impl

public interface CurrencyCodeService

Simple interface definition to obtain currency codes and numbers.


Method Summary
 java.lang.String getCurrencyCode(java.lang.String number)
          Return the currency code for the given currecy number.
 java.lang.String getCurrencyNumber(java.lang.String code)
          Return the currency number for the given currency code.
 

Method Detail

getCurrencyNumber

java.lang.String getCurrencyNumber(java.lang.String code)
Return the currency number for the given currency code.

Parameters:
code - String containing the currency code.
Returns:
String containing the currency number or null if the code cannot be mapped.

getCurrencyCode

java.lang.String getCurrencyCode(java.lang.String number)
Return the currency code for the given currecy number.

Parameters:
number - String containing the currency number.
Returns:
String containing the currency code or null if the number could not be mapped.