|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.portal.portlet.StateString org.jboss.portal.portlet.ParametersStateString
A set of parameters.
Field Summary | |
private static java.lang.String |
EOF
. |
static java.lang.String |
JBPNS_PREFIX
. |
private Parameters |
parameters
The data. |
private static long |
serialVersionUID
The serialVersionUID |
Constructor Summary | |
ParametersStateString()
Creates an empty parameter set. |
|
ParametersStateString(Parameters parameterMap)
Copy the parameter map to initialize the object state. |
|
ParametersStateString(java.lang.String opaqueValue)
|
Method Summary | |
void |
clear()
Clear all the parameters. |
boolean |
equals(java.lang.Object o)
|
java.util.Map |
getMap()
Return the a map containing the values. |
Parameters |
getParameters()
Return the underlying parameter object. |
int |
getSize()
Return the size. |
java.lang.String |
getStringValue()
Retrieves the opaque version associated with this navigational state. |
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. |
int |
hashCode()
|
void |
remove(java.lang.String name)
Remove a parameter. |
void |
replace(java.util.Map map)
Replace all the parameters. |
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.portlet.StateString |
createFrom |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final java.lang.String JBPNS_PREFIX
private static final long serialVersionUID
private static final java.lang.String EOF
private Parameters parameters
Constructor Detail |
public ParametersStateString(java.lang.String opaqueValue)
public ParametersStateString()
public ParametersStateString(Parameters parameterMap)
java.lang.IllegalArgumentException
- if the parameter map is null or not validMethod Detail |
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 java.util.Map getMap()
public void clear()
public void replace(java.util.Map map)
java.lang.IllegalArgumentException
- if the map is not validpublic 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 int getSize()
public Parameters getParameters()
public java.lang.String getStringValue()
getStringValue
in class StateString
public int hashCode()
hashCode
in class StateString
public boolean equals(java.lang.Object o)
equals
in class StateString
public java.lang.String toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |