com.ibm.commerce.giftcenter.facade.client.util

Class ResolveMapParameter

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


  • public class ResolveMapParameter
    extends java.lang.Object
    This utility class resolves the data types from map parameter.
    • 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)
      This method returns the java.math.BigDecimal object for the given index enumerated value in the input map.
      static java.lang.Integer getInteger(java.lang.Integer i, java.util.HashMap hashMap)
      This method returns a java.lang.Integer object for the given index enumerated value in the input map.
      static java.lang.Long getLong(java.lang.Integer i, java.util.HashMap hashMap)
      This method returns a java.lang.Long object for the given index enumerated value in the input map.
      static java.lang.Long[] getLongArray(java.lang.Integer i, java.util.HashMap hashMap)
      This method returns an array of java.lang.Long object for the given index enumerated value in the input map.
      static java.lang.Short getShort(java.lang.Integer i, java.util.HashMap hashMap)
      This method returns a java.lang.Short object for the given index enumerated value in the input map.
      static java.lang.String getString(java.lang.Integer i, java.util.HashMap hashMap)
      This method returns the string object for the given index enumerated value in the input map.
      static java.lang.String[] getStringArray(java.lang.Integer i, java.util.HashMap hashMap)
      This method returns an array of java.lang.String objects for the given index enumerated value in the input map.
      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)
      This method 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
        This method returns the java.math.BigDecimal object for the given index enumerated value in the input map.
        Parameters:
        i - The integer key used in the HashMap to indicate the position of the enumerated parameter.
        hashMap - A collection of enumerated values for 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
        This method returns a java.lang.Short object for the given index enumerated value in the input map.
        Parameters:
        i - The integer key used in the HashMap to indicate the position of the enumerated parameter.
        hashMap - A collection of enumerated values for 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
        This method returns a java.lang.Integer object for the given index enumerated value in the input map.
        Parameters:
        i - The integer key used in the HashMap to indicate the position of the enumerated parameter.
        hashMap - A collection of enumerated values for 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
        This method returns a java.lang.Long object for the given index enumerated value in the input map.
        Parameters:
        i - The integer key used in the HashMap to indicate the position of the enumerated parameter.
        hashMap - A collection of enumerated values for 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
        This method returns an array of java.lang.Long object for the given index enumerated value in the input map.
        Parameters:
        i - The integer key used in the HashMap to indicate the position of the enumerated parameter.
        hashMap - A collection of enumerated values for 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)
        This method returns the string object for the given index enumerated value in the input map.
        Parameters:
        i - The integer key used in the HashMap to indicate the position of the enumerated parameter.
        hashMap - A collection of enumerated values for 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)
        This method returns an array of java.lang.String objects for the given index enumerated value in the input map.
        Parameters:
        i - The integer key used in the HashMap to indicate the position of the enumerated parameter.
        hashMap - A collection of enumerated values for 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)
        This method 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.