|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.portal.portlet.StateString
org.jboss.portal.portlet.ParametersStateString
public class ParametersStateString
A set of parameters.
| Field Summary | |
|---|---|
static java.lang.String |
JBPNS_PREFIX
. |
| Method Summary | |
|---|---|
void |
clear()
Clear all the parameters. |
static ParametersStateString |
create()
|
static StateString |
create(java.io.DataInputStream in)
Factory method that will create the most appropriate form from the byte representation. |
static ParametersStateString |
create(java.util.Map<java.lang.String,java.lang.String[]> parameters)
|
static ParametersStateString |
create(StateString stateString)
Create a parameters state string. |
static StateString |
create(java.lang.String opaqueValue)
Factory method that will create the most appropriate form from the string representation. |
boolean |
equals(java.lang.Object obj)
|
java.util.Map<java.lang.String,java.lang.String[]> |
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<java.lang.String,java.lang.String[]> 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()
|
void |
writeTo(java.io.DataOutputStream out)
|
| 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
| Method Detail |
|---|
public static ParametersStateString create()
public static ParametersStateString create(java.util.Map<java.lang.String,java.lang.String[]> parameters)
public static StateString create(java.io.DataInputStream in)
throws java.io.IOException
in - the inputstream to read from
java.io.IOException - any IOExceptionpublic static StateString create(java.lang.String opaqueValue)
opaqueValue - the opaque value
public static ParametersStateString create(StateString stateString)
throws java.lang.IllegalArgumentException
ParametersStateString or that it is the string encoded value of a
ParametersStateString.
stateString - the state string
java.lang.IllegalArgumentException - if the state string is opaque and does not represent parameters
public java.lang.String getValue(java.lang.String name)
throws java.lang.IllegalArgumentException
name - the parameter name
java.lang.IllegalArgumentException - if the name is null
public 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 clear()
public void replace(java.util.Map<java.lang.String,java.lang.String[]> map)
map - the map to replace
java.lang.IllegalArgumentException - if the map is not valid
public void setValue(java.lang.String name,
java.lang.String value)
name - the parameter namevalue - the parameter value
java.lang.IllegalArgumentException - if the name or the value is null
public 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)
name - the parameter name
java.lang.IllegalArgumentException - if the name is nullpublic int getSize()
public java.util.Map<java.lang.String,java.lang.String[]> getParameters()
public java.lang.String getStringValue()
getStringValue in class StateString
public void writeTo(java.io.DataOutputStream out)
throws java.io.IOException
writeTo in class StateStringjava.io.IOExceptionpublic java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||