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) |
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 |
public static java.math.BigDecimal getBigDecimal(java.lang.Integer i, java.util.HashMap hashMap) throws java.lang.NumberFormatException
i
- Integer key used in HashMap to indicate position of enumerated parameterhashMap
- is collection of enumerated values of a parameterith
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
i
- Integer key used in HashMap to indicate position of enumerated parameterhashMap
- is collection of enumerated values of a parameterith
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
i
- Integer key used in HashMap to indicate position of enumerated parameterhashMap
- is collection of enumerated values of a parameterith
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
i
- Integer key used in HashMap to indicate position of enumerated parameterhashMap
- is collection of enumerated values of a parameterith
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
i
- Integer key used in HashMap to indicate position of enumerated parameterhashMap
- is collection of enumerated values of a parameterith
enumerated value for this parameterjava.lang.NumberFormatException
public static java.lang.String getString(java.lang.Integer i, java.util.HashMap hashMap)
i
- Integer key used in HashMap to indicate position of enumerated parameterhashMap
- is collection of enumerated values of a parameterith
enumerated value for this parameterpublic static java.lang.String[] getStringArray(java.lang.Integer i, java.util.HashMap hashMap)
i
- Integer key used in HashMap to indicate position of enumerated parameterhashMap
- is collection of enumerated values of a parameterith
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