|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.portal.common.util.TypedMap 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.TypedMap |
TypedMap.TypedEntry, TypedMap.TypedEntryIterator, TypedMap.TypedEntrySet |
Nested classes inherited from class java.util.Map |
java.util.Map.Entry |
Field Summary | |
private java.util.Map |
map
The data. |
private static long |
serialVersionUID
The serialVersionUID |
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)
Append the content of the argument map to that map. |
protected void |
checkValidity(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. |
private void |
internalAppend(java.util.Map params)
Append actual implementation. |
void |
replace(java.util.Map params)
Replace all the existing 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 |
assertKeyValidity, getExternalValue, getInternalValue |
Methods inherited from class org.jboss.portal.common.util.TypedMap |
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 |
Field Detail |
private static final long serialVersionUID
private java.util.Map map
Constructor Detail |
public Parameters()
public Parameters(Parameters parameters) throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException
- if the parameters is nullpublic Parameters(java.util.Map parameterMap) throws java.lang.NullPointerException, java.lang.ClassCastException, java.lang.IllegalArgumentException
java.lang.IllegalArgumentException
- if the parameter map is null or not valid
java.lang.NullPointerException
- if the map contains a null key or a null value
java.lang.IllegalArgumentException
- if the map is null or it contains a value with a zero length array or a null
element in the array
java.lang.ClassCastException
- if the map contains a key that is not a string or a value that is not a string
arrayMethod Detail |
protected java.util.Map getDelegate()
getDelegate
in class TypedMap
public java.lang.String getValue(java.lang.String name) throws java.lang.IllegalArgumentException
name
- the parameter name
java.lang.NullPointerException
- if the name is null
java.lang.IllegalArgumentException
public java.lang.String[] getValues(java.lang.String name) throws java.lang.IllegalArgumentException
name
- the value to get
java.lang.NullPointerException
- if the name is null
java.lang.IllegalArgumentException
public void setValue(java.lang.String name, java.lang.String value)
name
- the parameter namevalue
- the parameter value
java.lang.NullPointerException
- if the name or the value is nullpublic void setValues(java.lang.String name, java.lang.String[] values) throws java.lang.NullPointerException, java.lang.IllegalArgumentException
name
- the parameter namevalues
- the parameter values
java.lang.NullPointerException
- if the name or the value is null
java.lang.IllegalArgumentException
- if the values length is zero or contains a null elementpublic void append(java.util.Map params) throws java.lang.ClassCastException, java.lang.NullPointerException, java.lang.IllegalArgumentException
params
- the parameters to appends
java.lang.NullPointerException
- if the map contains a null key or a null value
java.lang.IllegalArgumentException
- if the map is null or it contains a value with a zero length array or a null
element in the array
java.lang.ClassCastException
- if the map contains a key that is not a string or a value that is not a string
arraypublic void replace(java.util.Map params)
params
- the parameters to replace
java.lang.NullPointerException
- if the map contains a null key or a null value
java.lang.IllegalArgumentException
- if the map is null or it contains a value with a zero length array or a null
element in the array
java.lang.ClassCastException
- if the map contains a key that is not a string or a value that is not a string
arrayprivate void internalAppend(java.util.Map params)
public boolean equals(java.lang.Object o)
equals
in interface java.util.Map
public java.lang.String toString()
protected void checkValidity(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 |