org.deegree_impl.tools
Class ParameterList_Impl

java.lang.Object
  extended byorg.deegree_impl.tools.ParameterList_Impl
All Implemented Interfaces:
ParameterList

public final class ParameterList_Impl
extends java.lang.Object
implements ParameterList

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: 1.4 $ $Date: 2004/03/11 16:28:45 $
Author:
Andreas Poth

Field Summary
private  java.util.ArrayList keys
           
private  java.util.HashMap params
           
 
Constructor Summary
ParameterList_Impl()
           
 
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.
 Parameter[] getParameters()
          returns all Parameters contained within the list as array.
 java.lang.Object[] getParameterValues()
          returns an array of all Parameters values.
 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
 

Field Detail

params

private java.util.HashMap params

keys

private java.util.ArrayList keys
Constructor Detail

ParameterList_Impl

public ParameterList_Impl()
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.

Specified by:
getParameter in interface ParameterList

addParameter

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

Specified by:
addParameter in interface ParameterList

addParameter

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

Specified by:
addParameter in interface ParameterList

getParameters

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

Specified by:
getParameters in interface ParameterList

getParameterNames

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

Specified by:
getParameterNames in interface ParameterList

getParameterValues

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

Specified by:
getParameterValues in interface ParameterList

removeParameter

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

Specified by:
removeParameter in interface ParameterList
Parameters:
name - name of the parameter

toString

public java.lang.String toString()