deegree 2.5 (2011/06/29 09:44 build-8-official)

org.deegree.framework.util
Class ParameterList

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

public final class ParameterList
extends java.lang.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(java.lang.String name, java.lang.Object value)
          adds a new Parameter to the list
 Parameter getParameter(java.lang.String name)
          returns the parameter that matches the submitted name. if no parameter can be found null will be returned.
 java.lang.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
 java.lang.Object[] getParameterValues()
          returns an array of all Parameters values. it is guarenteered that the arrays isn't null
 Parameter removeParameter(java.lang.String name)
          removes a parameter from the list
 java.lang.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(java.lang.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(java.lang.String name,
                         java.lang.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 java.lang.String[] getParameterNames()
returns an array of all Parameters names. it is guarenteered that the arrays isn't null

Returns:
parameter names

getParameterValues

public java.lang.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(java.lang.String name)
removes a parameter from the list

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

toString

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

deegree 2.5 (2011/06/29 09:44 build-8-official)

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