org.apache.cocoon.objectmodel.helper
Class ParametersMap

java.lang.Object
  extended byorg.apache.avalon.framework.parameters.Parameters
      extended byorg.apache.cocoon.objectmodel.helper.ParametersMap
All Implemented Interfaces:
Map, Serializable

public final class ParametersMap
extends Parameters
implements Map

Wrapper class for Parameters class that exposes parameters through Map interface.

Use this wrapper if you want to put Parameters in ObjectModel.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class java.util.Map
Map.Entry
 
Field Summary
protected  Map map
           
protected  Parameters wrappedParameters
           
 
Fields inherited from class org.apache.avalon.framework.parameters.Parameters
EMPTY_PARAMETERS
 
Constructor Summary
ParametersMap(Parameters wrapped)
           
 
Method Summary
 void clear()
           
 boolean containsKey(Object arg0)
           
 boolean containsValue(Object arg0)
           
 Set entrySet()
           
 boolean equals(Object arg0)
           
 Object get(Object arg0)
           
protected  Map getMap()
           
 String[] getNames()
           
 String getParameter(String arg0)
           
 String getParameter(String arg0, String arg1)
           
 boolean getParameterAsBoolean(String arg0)
           
 boolean getParameterAsBoolean(String arg0, boolean arg1)
           
 float getParameterAsFloat(String arg0)
           
 float getParameterAsFloat(String arg0, float arg1)
           
 int getParameterAsInteger(String arg0)
           
 int getParameterAsInteger(String arg0, int arg1)
           
 long getParameterAsLong(String arg0)
           
 long getParameterAsLong(String arg0, long arg1)
           
 Iterator getParameterNames()
           
 int hashCode()
           
 boolean isEmpty()
           
 boolean isParameter(String arg0)
           
 Set keySet()
           
 void makeReadOnly()
           
 Parameters merge(Parameters arg0)
           
 Object put(Object arg0, Object arg1)
           
 void putAll(Map arg0)
           
 Object remove(Object arg0)
           
 void removeParameter(String arg0)
           
 String setParameter(String arg0, String arg1)
           
 int size()
           
 Collection values()
           
 
Methods inherited from class org.apache.avalon.framework.parameters.Parameters
checkWriteable, fromConfiguration, fromConfiguration, fromProperties, toProperties, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

wrappedParameters

protected final Parameters wrappedParameters

map

protected Map map
Constructor Detail

ParametersMap

public ParametersMap(Parameters wrapped)
Method Detail

equals

public boolean equals(Object arg0)
Specified by:
equals in interface Map

getNames

public String[] getNames()

getParameter

public String getParameter(String arg0,
                           String arg1)

getParameter

public String getParameter(String arg0)
                    throws ParameterException
Throws:
ParameterException

getParameterAsBoolean

public boolean getParameterAsBoolean(String arg0,
                                     boolean arg1)

getParameterAsBoolean

public boolean getParameterAsBoolean(String arg0)
                              throws ParameterException
Throws:
ParameterException

getParameterAsFloat

public float getParameterAsFloat(String arg0,
                                 float arg1)

getParameterAsFloat

public float getParameterAsFloat(String arg0)
                          throws ParameterException
Throws:
ParameterException

getParameterAsInteger

public int getParameterAsInteger(String arg0,
                                 int arg1)

getParameterAsInteger

public int getParameterAsInteger(String arg0)
                          throws ParameterException
Throws:
ParameterException

getParameterAsLong

public long getParameterAsLong(String arg0,
                               long arg1)

getParameterAsLong

public long getParameterAsLong(String arg0)
                        throws ParameterException
Throws:
ParameterException

getParameterNames

public Iterator getParameterNames()

hashCode

public int hashCode()
Specified by:
hashCode in interface Map

isParameter

public boolean isParameter(String arg0)

makeReadOnly

public void makeReadOnly()

merge

public Parameters merge(Parameters arg0)

removeParameter

public void removeParameter(String arg0)

setParameter

public String setParameter(String arg0,
                           String arg1)
                    throws IllegalStateException
Throws:
IllegalStateException

clear

public void clear()
Specified by:
clear in interface Map

getMap

protected Map getMap()

containsKey

public boolean containsKey(Object arg0)
Specified by:
containsKey in interface Map

containsValue

public boolean containsValue(Object arg0)
Specified by:
containsValue in interface Map

entrySet

public Set entrySet()
Specified by:
entrySet in interface Map

get

public Object get(Object arg0)
Specified by:
get in interface Map

isEmpty

public boolean isEmpty()
Specified by:
isEmpty in interface Map

keySet

public Set keySet()
Specified by:
keySet in interface Map

put

public Object put(Object arg0,
                  Object arg1)
Specified by:
put in interface Map

putAll

public void putAll(Map arg0)
Specified by:
putAll in interface Map

remove

public Object remove(Object arg0)
Specified by:
remove in interface Map

size

public int size()
Specified by:
size in interface Map

values

public Collection values()
Specified by:
values in interface Map


Copyright 1999-2008 The Apache Software Foundation. All Rights Reserved.