|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.weborganic.uri.template.Parameters
public class Parameters
A class to hold a collection of parameters for use during the expansion process. It provides more convenient functions that the underlying map and handles the rules for parameter values.
| Constructor Summary | |
|---|---|
Parameters()
Creates a new instance. |
|
Parameters(Map<String,String[]> params)
Creates a new instance from the specified map. |
|
| Method Summary | |
|---|---|
boolean |
exists(String name)
Indicates whether the parameters for the given name has a value. |
String |
getValue(String name)
Returns the value for the specified parameter. |
String[] |
getValues(String name)
Returns the values for the specified parameter. |
boolean |
hasValue(String name)
Indicates whether the parameters for the given name has a value. |
Iterator<String> |
names()
Returns an iterator over the names. |
void |
set(String name,
String value)
Set a parameter with only one value. |
void |
set(String name,
String[] values)
Set a parameter with only multiple values. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Parameters()
public Parameters(Map<String,String[]> params)
| Method Detail |
|---|
public void set(String name,
String value)
name - The name of the parameter.value - The value.
public void set(String name,
String[] values)
name - The name of the parameter.values - The values.public Iterator<String> names()
public String getValue(String name)
name - The name of the parameter.
null if not specified.public String[] getValues(String name)
name - The name of the parameter.
null if not specified.public boolean exists(String name)
name - The name of the parameter.
true if it has a value; false otherwise.public boolean hasValue(String name)
name - The name of the parameter.
true if it has a value; false otherwise.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||