|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.portal.server.util.Parameters
A set of parameters.
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 |
clear()
Clear all the parameters. |
java.util.Map |
getMap()
Return the a map containing the values. |
java.util.Enumeration |
getNames()
Return all the parameter names. |
int |
getSize()
Return the size. |
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 map)
Replace all the parameters. |
void |
replace(Parameters parameters)
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()
|
protected void |
validateMap(java.util.Map map)
Validate the parameter map. |
protected void |
validateStringArray(java.lang.String[] values)
Validate the string array. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
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 |
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.util.Enumeration getNames()
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 java.util.Map getMap()
public void clear()
public void replace(java.util.Map map)
java.lang.IllegalArgumentException
- if the map is not validpublic void replace(Parameters parameters)
java.lang.IllegalArgumentException
- if the parameters 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 java.lang.String toString()
protected void validateMap(java.util.Map map) throws java.lang.IllegalArgumentException
map
- the map to validate
java.lang.IllegalArgumentException
- if the map is not validprotected void validateStringArray(java.lang.String[] values) throws java.lang.IllegalArgumentException
values
- the string array to validate
java.lang.IllegalArgumentException
- if the array is not valid
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |