org.apache.cocoon.objectmodel.helper
Class ParametersMap
java.lang.Object
org.apache.avalon.framework.parameters.Parameters
org.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
wrappedParameters
protected final Parameters wrappedParameters
map
protected Map map
ParametersMap
public ParametersMap(Parameters wrapped)
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.