|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectParamHelper
public class ParamHelper
This class is used by NetUI tags that use parameters.
Constructor Summary | |
---|---|
ParamHelper()
|
Method Summary | |
---|---|
static void |
addParam(Map params,
String name,
Object value)
Add a new parameter or update an existing parameter's list of values. |
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ParamHelper()
Method Detail |
---|
public static void addParam(Map params, String name, Object value)
value
parameter, the this returns without doing
anything; in any other case, params is updated (even in
value
is null).
If value is some object (not an array or list), the string
representation of that object is added as a value for name. If the
value is a list (or array) of objects, then the string representation
of each element is added as a value for name. When there are multiple
values for a name, then an array of Strings is used in Map.
params
- an existing Map of names and values to updatename
- the name of the parameter to add or updatevalue
- an item or list of items to put into the map
IllegalArgumentException
- in the case that either the params
or name given was null
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |