deegree 2.3 (2010/04/09 10:10 build-4-official)

org.deegree.framework.util
Class ParameterList

java.lang.Object
  extended by org.deegree.framework.util.ParameterList

public final class ParameterList
extends Object

The interface defines the access to a list of paramters that can be used as submitted parameters to methods that may receive an variable list of parameters.

Version:
$Revision: 18195 $ $Date: 2009-06-18 17:55:39 +0200 (Do, 18. Jun 2009) $
Author:
Andreas Poth, last edited by: $Author: mschneider $

Constructor Summary
ParameterList()
           
 
Method Summary
 void addParameter(Parameter param)
          adds a new Parameter to the list
 void addParameter(String name, Object value)
          adds a new Parameter to the list
 Parameter getParameter(String name)
          returns the parameter that matches the submitted name. if no parameter can be found null will be returned.
 String[] getParameterNames()
          returns an array of all Parameters names. it is guarenteered that the arrays isn't null
 Parameter[] getParameters()
          returns all Parameters contained within the list as array. it is guarenteered that the arrays isn't null
 Object[] getParameterValues()
          returns an array of all Parameters values. it is guarenteered that the arrays isn't null
 Parameter removeParameter(String name)
          removes a parameter from the list
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ParameterList

public ParameterList()
Method Detail

getParameter

public Parameter getParameter(String name)
returns the parameter that matches the submitted name. if no parameter can be found null will be returned.

Parameters:
name -
Returns:
name parameter

addParameter

public void addParameter(String name,
                         Object value)
adds a new Parameter to the list

Parameters:
name -
value -

addParameter

public void addParameter(Parameter param)
adds a new Parameter to the list

Parameters:
param -

getParameters

public Parameter[] getParameters()
returns all Parameters contained within the list as array. it is guarenteered that the arrays isn't null

Returns:
returns an array with all Parameters from the list.

getParameterNames

public String[] getParameterNames()
returns an array of all Parameters names. it is guarenteered that the arrays isn't null

Returns:
parameter names

getParameterValues

public Object[] getParameterValues()
returns an array of all Parameters values. it is guarenteered that the arrays isn't null

Returns:
parameter values

removeParameter

public Parameter removeParameter(String name)
removes a parameter from the list

Parameters:
name - name of the parameter
Returns:
nemd parameter

toString

public String toString()
Overrides:
toString in class Object
Returns:
string representation

deegree 2.3 (2010/04/09 10:10 build-4-official)

an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org