com.ibm.commerce.order.facade.client.util

Class ResolveMapParameter

  • java.lang.Object
    • com.ibm.commerce.order.facade.client.util.ResolveMapParameter


  • public class ResolveMapParameter
    extends java.lang.Object
    Reserved for IBM internal use.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method and Description
      static java.math.BigDecimal getBigDecimal(java.lang.Integer i, java.util.HashMap hashMap) 
      static java.lang.Integer getInteger(java.lang.Integer i, java.util.HashMap hashMap) 
      static java.lang.Long getLong(java.lang.Integer i, java.util.HashMap hashMap) 
      static java.lang.Long[] getLongArray(java.lang.Integer i, java.util.HashMap hashMap) 
      static java.lang.Short getShort(java.lang.Integer i, java.util.HashMap hashMap) 
      static java.lang.String getString(java.lang.Integer i, java.util.HashMap hashMap) 
      static java.lang.String[] getStringArray(java.lang.Integer i, java.util.HashMap hashMap) 
      static java.util.HashMap resolveValues(java.lang.String name, TypedMap aRequestProperty, boolean isArray)
      This method returns a HashMap containing the enumerated values for parameter name.
      static java.util.HashMap resolveValues(java.lang.String name, TypedMap aRequestProperty, boolean isArray, boolean isSkipEnumValues)
      Returns a HashMap containing the enumerated values for parameter name
      • Methods inherited from class java.lang.Object

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

      • getBigDecimal

        public static java.math.BigDecimal getBigDecimal(java.lang.Integer i,
                                                         java.util.HashMap hashMap)
                                                  throws java.lang.NumberFormatException
        Parameters:
        i - Integer key used in HashMap to indicate position of enumerated parameter
        hashMap - is collection of enumerated values of a parameter
        Returns:
        BigDecimal value of the ith enumerated value for this parameter
        Throws:
        java.lang.NumberFormatException
      • getShort

        public static java.lang.Short getShort(java.lang.Integer i,
                                               java.util.HashMap hashMap)
                                        throws java.lang.NumberFormatException
        Parameters:
        i - Integer key used in HashMap to indicate position of enumerated parameter
        hashMap - is collection of enumerated values of a parameter
        Returns:
        Short value of the ith enumerated value for this parameter
        Throws:
        java.lang.NumberFormatException
      • getInteger

        public static java.lang.Integer getInteger(java.lang.Integer i,
                                                   java.util.HashMap hashMap)
                                            throws java.lang.NumberFormatException
        Parameters:
        i - Integer key used in HashMap to indicate position of enumerated parameter
        hashMap - is collection of enumerated values of a parameter
        Returns:
        Integer value of the ith enumerated value for this parameter
        Throws:
        java.lang.NumberFormatException
      • getLong

        public static java.lang.Long getLong(java.lang.Integer i,
                                             java.util.HashMap hashMap)
                                      throws java.lang.NumberFormatException
        Parameters:
        i - Integer key used in HashMap to indicate position of enumerated parameter
        hashMap - is collection of enumerated values of a parameter
        Returns:
        Long value of the ith enumerated value for this parameter
        Throws:
        java.lang.NumberFormatException
      • getLongArray

        public static java.lang.Long[] getLongArray(java.lang.Integer i,
                                                    java.util.HashMap hashMap)
                                             throws java.lang.NumberFormatException
        Parameters:
        i - Integer key used in HashMap to indicate position of enumerated parameter
        hashMap - is collection of enumerated values of a parameter
        Returns:
        Long value of the ith enumerated value for this parameter
        Throws:
        java.lang.NumberFormatException
      • getString

        public static java.lang.String getString(java.lang.Integer i,
                                                 java.util.HashMap hashMap)
        Parameters:
        i - Integer key used in HashMap to indicate position of enumerated parameter
        hashMap - is collection of enumerated values of a parameter
        Returns:
        String value of the ith enumerated value for this parameter
      • getStringArray

        public static java.lang.String[] getStringArray(java.lang.Integer i,
                                                        java.util.HashMap hashMap)
        Parameters:
        i - Integer key used in HashMap to indicate position of enumerated parameter
        hashMap - is collection of enumerated values of a parameter
        Returns:
        String[] value of the ith enumerated value for this parameter
      • resolveValues

        public static java.util.HashMap resolveValues(java.lang.String name,
                                                      TypedMap aRequestProperty,
                                                      boolean isArray,
                                                      boolean isSkipEnumValues)
        Returns a HashMap containing the enumerated values for parameter name
        Parameters:
        name - the name of the enumerated parameter
        aRequestProperty - the request properties containing enumerated parameter name value pairs
        isArray - if true, treat the value as an Array; otherwise expect String
        isSkipEnumValues - skips resolving the enumerated name value pairs if the non-enumerated version of the parameter exists
        Returns:
        HashMap containing enumerated values with the keys being the enumeration index. The non-enumerated parameter value will be stored in index 0.
      • resolveValues

        public static java.util.HashMap resolveValues(java.lang.String name,
                                                      TypedMap aRequestProperty,
                                                      boolean isArray)
        This method returns a HashMap containing the enumerated values for parameter name.
        Parameters:
        name - the name of the enumerated parameter
        aRequestProperty - the request properties
        isArray - if true, treat the value as an Array; otherwise expect String
        Returns:
        HashMap containing enumerated values with the keys being the enumeration index.