oracle.portal.utils.v1
Class SimpleParameterMap
java.lang.Object
|
+--oracle.portal.utils.v1.SimpleParameterMap
- public class SimpleParameterMap
- extends java.lang.Object
- implements ParameterMap
A ParameterMap contains a set of parameters whose values
are Objects mapped to String names.
|
Method Summary |
boolean |
containsParameter(java.lang.String parameterName)
Returns true if this ParameterMap object contains the
specified String as a parameter name. |
java.util.Enumeration |
getParameterNames()
Returns an Enumeration of the parameter names belonging to
this ParameterMap object, this may then be used to fetch
the parameters sequentially. |
java.lang.Object |
getParameterValue(java.lang.String parameterName)
Gets the value of the parameter with the given name. |
void |
putParameterValue(java.lang.String paramName,
java.lang.Object paramValue)
Adds the specified parameter. |
| Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
SimpleParameterMap
public SimpleParameterMap()
getParameterValue
public java.lang.Object getParameterValue(java.lang.String parameterName)
- Gets the value of the parameter with the given name. If either the name
or parameter does not exist, null is returned.
- Specified by:
- getParameterValue in interface ParameterMap
- Parameters:
parameterName - the parameter name.- Returns:
- the parameter with given name.
putParameterValue
public void putParameterValue(java.lang.String paramName,
java.lang.Object paramValue)
- Adds the specified parameter.
- Parameters:
paramName - the parameter name.paramValue - the parameter value.
getParameterNames
public java.util.Enumeration getParameterNames()
- Returns an
Enumeration of the parameter names belonging to
this ParameterMap object, this may then be used to fetch
the parameters sequentially.
- Specified by:
- getParameterNames in interface ParameterMap
- Returns:
- an
Enumeration of the parameter names.
containsParameter
public boolean containsParameter(java.lang.String parameterName)
- Returns true if this
ParameterMap object contains the
specified String as a parameter name.
- Specified by:
- containsParameter in interface ParameterMap
- Parameters:
parameterName - parameter name to search for.- Returns:
- true if the give name is found, false otherwise.