com.ibm.commerce.payments.plugin.util

Class ISO4217AlphaNumericCurrencyCodeMappings

  • java.lang.Object
    • com.ibm.commerce.payments.plugin.util.ISO4217AlphaNumericCurrencyCodeMappings


  • public class ISO4217AlphaNumericCurrencyCodeMappings
    extends java.lang.Object
    This class is a helper class to convert currency codes from alpha to numeric representation (and vice versa) as defined by ISO 4217 standard.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method and Description
      static java.lang.String getAlphaCode(java.lang.String numericCode)
      This method obtains the alpha representation of an ISO 4217 currency code.
      static java.lang.String getNumericCode(java.lang.String alphaCode)
      This method obtains the numeric representation of an ISO 4217 currency code.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ISO4217AlphaNumericCurrencyCodeMappings

        public ISO4217AlphaNumericCurrencyCodeMappings()
    • Method Detail

      • getAlphaCode

        public static java.lang.String getAlphaCode(java.lang.String numericCode)
                                             throws InvalidDataException
        This method obtains the alpha representation of an ISO 4217 currency code.
        Parameters:
        numericCode - The numeric representation of an ISO 4217 currency code
        Returns:
        The alpha representation of an ISO 4217 currency code
        Throws:
        InvalidDataException - If the conversion cannot be done
      • getNumericCode

        public static java.lang.String getNumericCode(java.lang.String alphaCode)
                                               throws InvalidDataException
        This method obtains the numeric representation of an ISO 4217 currency code.
        Parameters:
        alphaCode - The alpha representation of an ISO 4217 currency code
        Returns:
        The numeric representation of an ISO 4217 currency code
        Throws:
        InvalidDataException - If the conversion cannot be done