public class TypedProperty
extends java.util.Hashtable
implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
static java.lang.String | COPYRIGHT
The IBM Copyright notice field.
|
protected static com.ibm.commerce.datatype.UrlParamMapperFile | urlMapperFile
The URL parameter mapping file for converting ECML parameters to a WebSphere Commerce parameter name.
|
protected java.util.Hashtable | urlNameMapper
The mapping between ECML URL parameter names and WebSphere Commerce URL parameter names.
|
Constructor and Description |
---|
TypedProperty()
This is the default constructor for this class.
|
TypedProperty(java.util.Hashtable hTP)
This constructor creates a typed property object from the given hashtable.
|
TypedProperty(int initialCapacity)
This constructor creates a typed property object, given an initial capacity for the object.
|
TypedProperty(int initialCapacity, float loadFactor)
This constructor creates a typed property object, given an initial capacity and load factor for the object.
|
Modifier and Type | Method and Description |
---|---|
static TypedProperty | createTextResponse(java.lang.String textResponse)
Deprecated.
Use the static method of the same name defined in the AbstractDirectViewCommand class.
|
java.lang.Object | get(java.lang.String key)
This method returns the Object associated with the specified key.
|
java.lang.Object | get(java.lang.String key, java.lang.Object def)
This method returns the Object associated with the specified key.
|
java.lang.String[] | getArray(java.lang.String key)
This method returns the object associated with the given key as an array of String objects.
|
java.lang.String[] | getArray(java.lang.String key, java.lang.String[] def)
This method returns the object associated with the given key as an array of String objects.
|
java.math.BigDecimal | getBigDecimal(java.lang.String key)
This method returns the object associated with the given key as a BigDecimal object.
|
java.math.BigDecimal | getBigDecimal(java.lang.String key, java.math.BigDecimal def)
This method returns the object associated with the given key as a BigDecimal object.
|
java.math.BigDecimal | getBigDecimalChecked(java.lang.String key, java.math.BigDecimal def)
This method returns the object associated with the given key as a BigDecimal object.
|
boolean | getBoolean(java.lang.String key)
This method returns the object associated with the given key as a boolean value.
|
boolean | getBoolean(java.lang.String key, boolean def)
This method returns the object associated with the given key as a boolean value.
|
java.lang.Double | getDouble(java.lang.String key)
This method returns the object associated with the given key as a Double object.
|
java.lang.Double | getDouble(java.lang.String key, double def)
This method returns the object associated with the given key as a Double object.
|
java.lang.Double | getDouble(java.lang.String key, java.lang.Double def)
This method returns the object associated with the given key as a Double object.
|
java.lang.Double | getDoubleChecked(java.lang.String key, double def)
This method returns the object associated with the given key as a Double object.
|
java.lang.Double | getDoubleChecked(java.lang.String key, java.lang.Double def)
This method returns the object associated with the given key as a Double object.
|
double | getDoubleValue(java.lang.String key)
This method returns the object associated with the given key as a double value.
|
double | getDoubleValue(java.lang.String key, double def)
This method returns the object associated with the given key as a double value.
|
double | getDoubleValueChecked(java.lang.String key, double def)
This method returns the object associated with the given key as a double value.
|
java.lang.String | getEncodedQueryString()
This method returns the query string representation of the parameters stored in the typed property object.
|
java.lang.Float | getFloat(java.lang.String key)
This method returns the object associated with the given key as a Float object.
|
java.lang.Float | getFloat(java.lang.String key, float def)
This method returns the object associated with the given key as a Float object.
|
java.lang.Float | getFloat(java.lang.String key, java.lang.Float def)
This method returns the object associated with the given key as a Float object.
|
java.lang.Float | getFloatChecked(java.lang.String key, float def)
This method returns the object associated with the given key as a Float object.
|
java.lang.Float | getFloatChecked(java.lang.String key, java.lang.Float def)
This method returns the object associated with the given key as a Float object.
|
float | getFloatValue(java.lang.String key)
This method returns the object associated with the given key as a float value.
|
float | getFloatValue(java.lang.String key, float def)
This method returns the value associated with the given key as a float value.
|
float | getFloatValueChecked(java.lang.String key, float def)
This method returns the value associated with the given key as a float value.
|
java.lang.Integer | getInteger(java.lang.String key)
This method returns the object associated with the given key as an Integer object.
|
java.lang.Integer | getInteger(java.lang.String key, int def)
This method returns the object associated with the given key as an Integer object.
|
java.lang.Integer | getInteger(java.lang.String key, java.lang.Integer def)
This method returns the object associated with the given key as an Integer object.
|
java.lang.Integer | getIntegerChecked(java.lang.String key, int def)
This method returns the object associated with the given key as an Integer object.
|
java.lang.Integer | getIntegerChecked(java.lang.String key, java.lang.Integer def)
This method returns the object associated with the given key as an Integer object.
|
java.lang.String | getIntParamName(java.lang.String key)
This method returns the corresponding Electronic Commerce Modeling Language (ECML) version of the parameter name.
|
int | getIntValue(java.lang.String key)
This method returns the object associated with the given key as an integer value.
|
int | getIntValue(java.lang.String key, int def)
This method returns the object associated with the given key as an integer value.
|
int | getIntValueChecked(java.lang.String key, int def)
This method returns the object associated with the given key as an integer value.
|
java.lang.Long | getLong(java.lang.String key)
This method returns the object associated with the given key as a Long object.
|
java.lang.Long | getLong(java.lang.String key, long def)
This method returns the object associated with the given key as a Long object.
|
java.lang.Long | getLong(java.lang.String key, java.lang.Long def)
This method returns the object associated with the given key as a Long object.
|
java.lang.Long[] | getLongArray(java.lang.String key)
This method returns the object associated with the given key as an array of Long objects.
|
java.lang.Long[] | getLongArray(java.lang.String key, java.lang.Long[] def)
This method returns the object associated with the given key as an array of Long objects.
|
java.lang.Long[] | getLongArrayChecked(java.lang.String key, java.lang.Long[] def)
This method returns the object associated with the given key as an array of Long objects.
|
java.lang.Long | getLongChecked(java.lang.String key, long def)
This method returns the object associated with the given key as a Long object.
|
java.lang.Long | getLongChecked(java.lang.String key, java.lang.Long def)
This method returns the object associated with the given key as a Long object.
|
long | getLongValue(java.lang.String key)
This method returns the object associated with the given key as a long value.
|
long | getLongValue(java.lang.String key, long def)
This method returns the object associated with the given key as a long value.
|
long | getLongValueChecked(java.lang.String key, long def)
This method returns the object associated with the given key as a long value.
|
java.util.Map | getMap()
This method returns a map representation of the properties.
|
java.lang.String | getQueryString()
This method returns the query string representation of the parameters stored in the typed property object.
|
java.lang.Short | getShort(java.lang.String key)
This method returns the object associated with the given key as a Short object.
|
java.lang.Short | getShort(java.lang.String key, short def)
This method returns the object associated with the given key as a Short object.
|
java.lang.Short | getShort(java.lang.String key, java.lang.Short def)
This method returns the object associated with the given key as a Short object.
|
java.lang.Short | getShortChecked(java.lang.String key, short def)
This method returns the object associated with the given key as a Short object.
|
java.lang.Short | getShortChecked(java.lang.String key, java.lang.Short def)
This method returns the object associated with the given key as a Short object.
|
short | getShortValue(java.lang.String key)
This method returns the object associated with the given key as a short value.
|
short | getShortValue(java.lang.String key, short def)
This method returns the object associated with the given key as a short value..
|
short | getShortValueChecked(java.lang.String key, short def)
This method returns the object associated with the given key as a short value..
|
java.lang.String | getString(java.lang.String key)
This method returns the value associated with the key as a String object.
|
java.lang.String | getString(java.lang.String key, java.lang.String def)
This method returns the object associated with the key as a String object.
|
java.lang.Object | getUrlParam(java.lang.String key)
This method returns the object associated with a given URL parameter name.
|
java.lang.String | getUrlParamName(java.lang.String key)
This method returns the parameter name of a given parameter.
|
static void | initUrlParamNameMapper(com.ibm.commerce.datatype.UrlParamMapperFile mapper)
This method initializes the URL mapping file.
|
static java.lang.String[] | objectToArrayOfString(java.lang.Object aObject, java.lang.String[] def)
This method converts a TypedProperty object to an array of String objects.
|
static java.lang.String | objectToString(java.lang.Object aObject, java.lang.String def)
This method converts a TypedProperty object to a String object.
|
void | populateParameterAndValueList(java.util.List<java.lang.String> values)
Populate a list of strings with the key and values contained within this object.
|
void | putUrlParam(java.lang.String key, java.lang.Object obj)
This method adds a new property using the URL parameter name as a key.
|
java.util.Map | toMap()
This method returns a map representation of the properties.
|
java.lang.String | toProtectedString()
This method returns a String object that represents that context of the current object.
|
java.lang.String | toString()
This method returns a String object that represents the information stored in the current object.
|
java.lang.String | toUnprotectedString()
This method returns a String object that represents the information stored in the current object.
|
public static final java.lang.String COPYRIGHT
protected static com.ibm.commerce.datatype.UrlParamMapperFile urlMapperFile
protected java.util.Hashtable urlNameMapper
public TypedProperty()
public TypedProperty(int initialCapacity)
public TypedProperty(int initialCapacity, float loadFactor)
public TypedProperty(java.util.Hashtable hTP)
public static TypedProperty createTextResponse(java.lang.String textResponse)
public java.lang.Object get(java.lang.String key) throws ParameterNotFoundException
public java.lang.Object get(java.lang.String key, java.lang.Object def)
public static java.lang.String[] objectToArrayOfString(java.lang.Object aObject, java.lang.String[] def)
public java.lang.String[] getArray(java.lang.String key) throws ParameterNotFoundException, InvalidParameterValueException
public java.lang.String[] getArray(java.lang.String key, java.lang.String[] def)
public java.math.BigDecimal getBigDecimal(java.lang.String key) throws ParameterNotFoundException, InvalidParameterValueException
public java.math.BigDecimal getBigDecimal(java.lang.String key, java.math.BigDecimal def)
public java.math.BigDecimal getBigDecimalChecked(java.lang.String key, java.math.BigDecimal def) throws InvalidParameterValueException
public boolean getBoolean(java.lang.String key) throws ParameterNotFoundException
public boolean getBoolean(java.lang.String key, boolean def)
public java.lang.Double getDouble(java.lang.String key) throws ParameterNotFoundException, InvalidParameterValueException
public java.lang.Double getDouble(java.lang.String key, double def)
public java.lang.Double getDoubleChecked(java.lang.String key, double def) throws InvalidParameterValueException
public java.lang.Double getDouble(java.lang.String key, java.lang.Double def)
public java.lang.Double getDoubleChecked(java.lang.String key, java.lang.Double def) throws InvalidParameterValueException
public double getDoubleValue(java.lang.String key) throws ParameterNotFoundException
public double getDoubleValue(java.lang.String key, double def)
public double getDoubleValueChecked(java.lang.String key, double def) throws InvalidParameterValueException
public java.lang.Float getFloat(java.lang.String key) throws ParameterNotFoundException, InvalidParameterValueException
public java.lang.Float getFloat(java.lang.String key, float def)
public java.lang.Float getFloatChecked(java.lang.String key, float def) throws InvalidParameterValueException
public java.lang.Float getFloat(java.lang.String key, java.lang.Float def)
public java.lang.Float getFloatChecked(java.lang.String key, java.lang.Float def) throws InvalidParameterValueException
public float getFloatValue(java.lang.String key) throws ParameterNotFoundException, InvalidParameterValueException
public float getFloatValue(java.lang.String key, float def)
public float getFloatValueChecked(java.lang.String key, float def) throws InvalidParameterValueException
public java.lang.Integer getInteger(java.lang.String key) throws ParameterNotFoundException, InvalidParameterValueException
public java.lang.Integer getInteger(java.lang.String key, int def)
public java.lang.Integer getIntegerChecked(java.lang.String key, int def) throws InvalidParameterValueException
public java.lang.Integer getInteger(java.lang.String key, java.lang.Integer def)
public java.lang.Integer getIntegerChecked(java.lang.String key, java.lang.Integer def) throws InvalidParameterValueException
public java.lang.String getIntParamName(java.lang.String key)
public int getIntValue(java.lang.String key) throws ParameterNotFoundException, InvalidParameterValueException
public int getIntValue(java.lang.String key, int def)
public int getIntValueChecked(java.lang.String key, int def) throws InvalidParameterValueException
public java.lang.Long getLong(java.lang.String key) throws ParameterNotFoundException, InvalidParameterValueException
public java.lang.Long getLong(java.lang.String key, long def)
public java.lang.Long getLongChecked(java.lang.String key, long def) throws InvalidParameterValueException
public java.lang.Long getLong(java.lang.String key, java.lang.Long def)
public java.lang.Long getLongChecked(java.lang.String key, java.lang.Long def) throws InvalidParameterValueException
public java.lang.Long[] getLongArray(java.lang.String key) throws ParameterNotFoundException, InvalidParameterValueException
public java.lang.Long[] getLongArray(java.lang.String key, java.lang.Long[] def)
public java.lang.Long[] getLongArrayChecked(java.lang.String key, java.lang.Long[] def) throws InvalidParameterValueException
public long getLongValue(java.lang.String key) throws ParameterNotFoundException, InvalidParameterValueException
public long getLongValue(java.lang.String key, long def)
public long getLongValueChecked(java.lang.String key, long def) throws InvalidParameterValueException
public java.lang.String getQueryString()
public java.lang.String getEncodedQueryString()
public java.lang.Short getShort(java.lang.String key) throws InvalidParameterValueException, ParameterNotFoundException
public java.lang.Short getShort(java.lang.String key, java.lang.Short def)
public java.lang.Short getShortChecked(java.lang.String key, java.lang.Short def) throws InvalidParameterValueException
public java.lang.Short getShort(java.lang.String key, short def)
public java.lang.Short getShortChecked(java.lang.String key, short def) throws InvalidParameterValueException
public short getShortValue(java.lang.String key) throws ParameterNotFoundException, InvalidParameterValueException
public short getShortValue(java.lang.String key, short def)
public short getShortValueChecked(java.lang.String key, short def) throws InvalidParameterValueException
public static java.lang.String objectToString(java.lang.Object aObject, java.lang.String def)
public java.lang.String getString(java.lang.String key) throws ParameterNotFoundException
public java.lang.String getString(java.lang.String key, java.lang.String def)
public java.lang.Object getUrlParam(java.lang.String key)
public java.lang.String getUrlParamName(java.lang.String key)
public static void initUrlParamNameMapper(com.ibm.commerce.datatype.UrlParamMapperFile mapper)
public void putUrlParam(java.lang.String key, java.lang.Object obj)
public java.lang.String toProtectedString()
public java.lang.String toString()
public java.lang.String toUnprotectedString()
public java.util.Map toMap()
public java.util.Map getMap()
public void populateParameterAndValueList(java.util.List<java.lang.String> values)