|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface that provides type-conversion methods for the values of a parameter map. The parameter map consists of name/value pairs. For example, HTTP request parameters obtained via GET/POST data, or Cookies.
Method Summary | |
boolean |
containsKey(java.lang.Object key)
Determine whether a given key has been inserted |
java.lang.String |
get(java.lang.String name)
Return a String for the given name. |
java.math.BigDecimal |
getBigDecimal(java.lang.String name)
Return a BigDecimal for the given name. |
java.math.BigDecimal |
getBigDecimal(java.lang.String name,
java.math.BigDecimal defaultValue)
Return a BigDecimal for the given name. |
java.math.BigDecimal[] |
getBigDecimals(java.lang.String name)
Return an array of BigDecimals for the given name. |
java.lang.Boolean |
getBool(java.lang.String name)
Return a Boolean for the given name. |
java.lang.Boolean |
getBool(java.lang.String name,
boolean defaultValue)
Return a Boolean for the given name. |
boolean |
getBoolean(java.lang.String name)
Return a boolean for the given name. |
boolean |
getBoolean(java.lang.String name,
boolean defaultValue)
Return a boolean for the given name. |
byte |
getByte(java.lang.String name)
Return a byte for the given name. |
byte |
getByte(java.lang.String name,
byte defaultValue)
Return a byte for the given name. |
byte[] |
getBytes(java.lang.String name)
Return an array of bytes for the given name. |
java.util.Date |
getDate(java.lang.String name)
Returns a Date object. |
java.util.Date |
getDate(java.lang.String name,
java.text.DateFormat df)
Returns a Date object. |
java.util.Date |
getDate(java.lang.String name,
java.text.DateFormat df,
java.util.Date defaultValue)
Returns a Date object. |
double |
getDouble(java.lang.String name)
Return a double for the given name. |
double |
getDouble(java.lang.String name,
double defaultValue)
Return a double for the given name. |
float |
getFloat(java.lang.String name)
Return a float for the given name. |
float |
getFloat(java.lang.String name,
float defaultValue)
Return a float for the given name. |
int |
getInt(java.lang.String name)
Return an int for the given name. |
int |
getInt(java.lang.String name,
int defaultValue)
Return an int for the given name. |
java.lang.Integer |
getInteger(java.lang.String name)
Return an Integer for the given name. |
java.lang.Integer |
getInteger(java.lang.String name,
int defaultValue)
Return an Integer for the given name. |
java.lang.Integer |
getInteger(java.lang.String name,
java.lang.Integer def)
Return an Integer for the given name. |
java.lang.Integer[] |
getIntegers(java.lang.String name)
Return an array of Integers for the given name. |
int[] |
getInts(java.lang.String name)
Return an array of ints for the given name. |
java.lang.Object[] |
getKeys()
Get an array of all the parameter names. |
long |
getLong(java.lang.String name)
Return a long for the given name. |
long |
getLong(java.lang.String name,
long defaultValue)
Return a long for the given name. |
java.lang.Long[] |
getLongObjects(java.lang.String name)
Return an array of Longs for the given name. |
long[] |
getLongs(java.lang.String name)
Return an array of longs for the given name. |
java.lang.Object |
getObject(java.lang.String name)
Return an Object for the given name. |
java.lang.Object[] |
getObjects(java.lang.String name)
Return an array of Objects for the given name. |
java.lang.String |
getString(java.lang.String name)
Return a String for the given name. |
java.lang.String |
getString(java.lang.String name,
java.lang.String defaultValue)
Return a String for the given name. |
java.lang.String[] |
getStrings(java.lang.String name)
Return an array of Strings for the given name. |
java.lang.String[] |
getStrings(java.lang.String name,
java.lang.String[] defaultValue)
Return an array of Strings for the given name. |
java.util.Iterator |
keys()
Get an Iterator for the parameter names. |
Method Detail |
public boolean containsKey(java.lang.Object key)
key
- An Object with the key to search for.
public java.util.Iterator keys()
public java.lang.Object[] getKeys()
public boolean getBoolean(java.lang.String name, boolean defaultValue)
name
- A String with the name.defaultValue
- The default value.
public boolean getBoolean(java.lang.String name)
name
- A String with the name.
public java.lang.Boolean getBool(java.lang.String name, boolean defaultValue)
name
- A String with the name.defaultValue
- The default value.
public java.lang.Boolean getBool(java.lang.String name)
name
- A String with the name.
public double getDouble(java.lang.String name, double defaultValue)
name
- A String with the name.defaultValue
- The default value.
public double getDouble(java.lang.String name)
name
- A String with the name.
public float getFloat(java.lang.String name, float defaultValue)
name
- A String with the name.defaultValue
- The default value.
public float getFloat(java.lang.String name)
name
- A String with the name.
public java.math.BigDecimal getBigDecimal(java.lang.String name, java.math.BigDecimal defaultValue)
name
- A String with the name.defaultValue
- The default value.
public java.math.BigDecimal getBigDecimal(java.lang.String name)
name
- A String with the name.
public java.math.BigDecimal[] getBigDecimals(java.lang.String name)
name
- A String with the name.
public int getInt(java.lang.String name, int defaultValue)
name
- A String with the name.defaultValue
- The default value.
public int getInt(java.lang.String name)
name
- A String with the name.
public java.lang.Integer getInteger(java.lang.String name, int defaultValue)
name
- A String with the name.defaultValue
- The default value.
public java.lang.Integer getInteger(java.lang.String name, java.lang.Integer def)
name
- A String with the name.def
- The default value.
public java.lang.Integer getInteger(java.lang.String name)
name
- A String with the name.
public int[] getInts(java.lang.String name)
name
- A String with the name.
public java.lang.Integer[] getIntegers(java.lang.String name)
name
- A String with the name.
public long getLong(java.lang.String name, long defaultValue)
name
- A String with the name.defaultValue
- The default value.
public long getLong(java.lang.String name)
name
- A String with the name.
public long[] getLongs(java.lang.String name)
name
- A String with the name.
public java.lang.Long[] getLongObjects(java.lang.String name)
name
- A String with the name.
public byte getByte(java.lang.String name, byte defaultValue)
name
- A String with the name.defaultValue
- The default value.
public byte getByte(java.lang.String name)
name
- A String with the name.
public byte[] getBytes(java.lang.String name) throws java.io.UnsupportedEncodingException
name
- A String with the name.
java.io.UnsupportedEncodingException
public java.lang.String getString(java.lang.String name)
name
- A String with the name.
public java.lang.String get(java.lang.String name)
$data.Parameters.form_variable_name
name
- A String with the name.
public java.lang.String getString(java.lang.String name, java.lang.String defaultValue)
name
- A String with the name.defaultValue
- The default value.
public java.lang.String[] getStrings(java.lang.String name)
name
- A String with the name.
public java.lang.String[] getStrings(java.lang.String name, java.lang.String[] defaultValue)
name
- A String with the name.defaultValue
- The default value.
public java.lang.Object getObject(java.lang.String name)
name
- A String with the name.
public java.lang.Object[] getObjects(java.lang.String name)
name
- A String with the name.
public java.util.Date getDate(java.lang.String name, java.text.DateFormat df, java.util.Date defaultValue)
Date
object. String is parsed by supplied
DateFormat. If the name does not exist, return the
defaultValue.
name
- A String with the name.df
- A DateFormat.defaultValue
- The default value.
public java.util.Date getDate(java.lang.String name, java.text.DateFormat df)
Date
object. String is parsed by supplied
DateFormat. If the name does not exist, return null.
name
- A String with the name.df
- A DateFormat.
public java.util.Date getDate(java.lang.String name)
Date
object. String is parsed by supplied
DateFormat. If the name does not exist, return null.
name
- A String with the name.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |