|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.portal.common.util.ParameterMap org.jboss.portal.portlet.Parameters
A set of parameters.
Nested Class Summary |
Nested classes inherited from class org.jboss.portal.common.util.ParameterMap |
ParameterMap.ParameterEntry, ParameterMap.ParameterEntryIterator, ParameterMap.ParameterEntrySet |
Nested classes inherited from class java.util.Map |
java.util.Map.Entry |
Constructor Summary | |
Parameters()
Creates an empty parameter set. |
|
Parameters(java.util.Map parameterMap)
Copy the parameter map to initialize the object state. |
|
Parameters(Parameters parameters)
Copy constructor. |
Method Summary | |
void |
append(java.util.Map params)
|
void |
append(Parameters params)
Append the parameters to this object. |
protected void |
assertMap(java.util.Map that)
|
boolean |
equals(java.lang.Object o)
Compare to parameters objects. |
protected java.util.Map |
getDelegate()
|
java.lang.String |
getValue(java.lang.String name)
Return the parameter value or null if it does not exist. |
java.lang.String[] |
getValues(java.lang.String name)
Return the parameter values or null if it does not exist. |
void |
remove(java.lang.String name)
Remove a parameter. |
void |
replace(java.util.Map params)
Replace all the exisint parameters with the new ones. |
void |
replace(Parameters params)
Replace all the parameters with the new ones. |
void |
setValue(java.lang.String name,
java.lang.String value)
Set the a parameter value. |
void |
setValues(java.lang.String name,
java.lang.String[] values)
Set the parameter values. |
java.lang.String |
toString()
|
Methods inherited from class org.jboss.portal.common.util.ParameterMap |
assertKey, assertValue, clear, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, size, values |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.Map |
hashCode |
Constructor Detail |
public Parameters()
public Parameters(Parameters parameters)
java.lang.IllegalArgumentException
- if the parameters is nullpublic Parameters(java.util.Map parameterMap)
java.lang.IllegalArgumentException
- if the parameter map is null or not validMethod Detail |
protected java.util.Map getDelegate()
getDelegate
in class ParameterMap
public java.lang.String getValue(java.lang.String name) throws java.lang.IllegalArgumentException
name
- the parameter name
java.lang.IllegalArgumentException
- if the name is nullpublic java.lang.String[] getValues(java.lang.String name) throws java.lang.IllegalArgumentException
name
- the value to get
java.lang.IllegalArgumentException
- if the name is nullpublic void setValue(java.lang.String name, java.lang.String value)
name
- the parameter namevalue
- the parameter value
java.lang.IllegalArgumentException
- if the name is null
java.lang.IllegalArgumentException
- if the value is nullpublic void setValues(java.lang.String name, java.lang.String[] values)
name
- the parameter namevalues
- the parameter values
java.lang.IllegalArgumentException
- if the name is nullpublic void remove(java.lang.String name)
java.lang.IllegalArgumentException
- if the name is nullpublic void append(Parameters params) throws java.lang.IllegalArgumentException
params
-
java.lang.IllegalArgumentException
- if the params is nullpublic void append(java.util.Map params) throws java.lang.IllegalArgumentException
params
- the parameters to appends
java.lang.IllegalArgumentException
- if the params argument is not validpublic void replace(java.util.Map params)
java.lang.IllegalArgumentException
- if the map is not validpublic void replace(Parameters params)
java.lang.IllegalArgumentException
- if the parameters is not validpublic boolean equals(java.lang.Object o)
equals
in interface java.util.Map
public java.lang.String toString()
protected void assertMap(java.util.Map that) throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |