public class ResolveMapParameter
extends java.lang.Object
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 |
public static java.math.BigDecimal getBigDecimal(java.lang.Integer i, java.util.HashMap hashMap) throws java.lang.NumberFormatException
java.math.BigDecimal
object for the given index enumerated
value in the input map.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.ith
enumerated value for
this parameterjava.lang.NumberFormatException
public static java.lang.Short getShort(java.lang.Integer i, java.util.HashMap hashMap) throws java.lang.NumberFormatException
java.lang.Short
object for the given index enumerated
value in the input map.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.ith
enumerated value for this
parameterjava.lang.NumberFormatException
public static java.lang.Integer getInteger(java.lang.Integer i, java.util.HashMap hashMap) throws java.lang.NumberFormatException
java.lang.Integer
object for the given index enumerated
value in the input map.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.ith
enumerated value for this
parameterjava.lang.NumberFormatException
public static java.lang.Long getLong(java.lang.Integer i, java.util.HashMap hashMap) throws java.lang.NumberFormatException
java.lang.Long
object for the given index enumerated
value in the input map.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.ith
enumerated value for this
parameterjava.lang.NumberFormatException
public static java.lang.Long[] getLongArray(java.lang.Integer i, java.util.HashMap hashMap) throws java.lang.NumberFormatException
java.lang.Long
object for the given index enumerated
value in the input map.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.ith
enumerated value for this
parameterjava.lang.NumberFormatException
public static java.lang.String getString(java.lang.Integer i, java.util.HashMap hashMap)
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.ith
enumerated value for this
parameterpublic static java.lang.String[] getStringArray(java.lang.Integer i, java.util.HashMap hashMap)
java.lang.String
objects for the given index enumerated
value in the input map.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.ith
enumerated value for this
parameterpublic static java.util.HashMap resolveValues(java.lang.String name, TypedMap aRequestProperty, boolean isArray, boolean isSkipEnumValues)
name
name
- the name of the enumerated parameteraRequestProperty
- the request properties containing enumerated parameter name
value pairsisArray
- if true, treat the value as an Array; otherwise expect StringisSkipEnumValues
- skips resolving the enumerated name value pairs if the
non-enumerated version of the parameter existspublic static java.util.HashMap resolveValues(java.lang.String name, TypedMap aRequestProperty, boolean isArray)
name
.name
- the name of the enumerated parameteraRequestProperty
- the request propertiesisArray
- if true, treat the value as an Array; otherwise expect String