|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecteteg.sinon.core.ParameterSet
public class ParameterSet
Class that encapsulates a set of Parameter
s used
int a HTTP request.
Constructor Summary | |
---|---|
ParameterSet()
Constructor without parameters. |
|
ParameterSet(ParameterSet include)
Constructor that receives another ParameterSet from which
this one copies all its parameters. |
Method Summary | |
---|---|
java.lang.String |
getId()
Returns the value of the id property. |
Parameter |
getParameter(java.lang.String name)
Returns the parameter name associated with name . |
java.util.Map |
getParameters()
Returns the value of the parameters property. |
void |
setId(java.lang.String id)
Sets the value of the id property. |
void |
setParameter(Parameter parameter)
Adds this parameter to this parameter set. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ParameterSet()
public ParameterSet(ParameterSet include)
ParameterSet
from which
this one copies all its parameters. In other words, this instance
becames a copy of the ParameterSet
passed to this constructor.
include
- a ParameterSet
instance.Method Detail |
---|
public void setParameter(Parameter parameter)
parameter
to this parameter set.
It this object already has a parameter with name
parameter.getName()
, it value is overwritten with
parameter.getValue()
.
parameter
- um Parameter
.public Parameter getParameter(java.lang.String name)
name
.
name
- a String
.
Parameter
whose name is name
or null
.public java.lang.String getId()
id
property.
String
.public void setId(java.lang.String id)
id
property.
id
- the new id
value.public java.util.Map getParameters()
parameters
property.
Mao
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |