eteg.sinon.core
Class ParameterSet

java.lang.Object
  extended by eteg.sinon.core.ParameterSet

public class ParameterSet
extends java.lang.Object

Class that encapsulates a set of Parameters used int a HTTP request.

Version:
$Revision: 1.3 $
Author:
Thiago H. de Paula Figueiredo, Last modified by $Author: thiagohp $

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

ParameterSet

public ParameterSet()
Constructor without parameters.


ParameterSet

public ParameterSet(ParameterSet include)
Constructor that receives another ParameterSet from which this one copies all its parameters. In other words, this instance becames a copy of the ParameterSet passed to this constructor.

Parameters:
include - a ParameterSet instance.
Method Detail

setParameter

public void setParameter(Parameter parameter)
Adds this parameter to this parameter set. It this object already has a parameter with name parameter.getName(), it value is overwritten with parameter.getValue().

Parameters:
parameter - um Parameter.

getParameter

public Parameter getParameter(java.lang.String name)
Returns the parameter name associated with name.

Parameters:
name - a String.
Returns:
uma a Parameter whose name is name or null.

getId

public java.lang.String getId()
Returns the value of the id property.

Returns:
a String.

setId

public void setId(java.lang.String id)
Sets the value of the id property.

Parameters:
id - the new id value.

getParameters

public java.util.Map getParameters()
Returns the value of the parameters property.

Returns:
a Mao.


Copyright © 2004-2005 ETEG Internet Ltda.. All Rights Reserved.