/* Copyright (c) 2001 Oracle Corporation. All Rights Reserved. */
package oracle.portal.utils.v2;

import java.util.*;

/**
 * A <code>ParameterMap</code> contains a set of parameters whose values
 * are <code>Object</code>s mapped to <code>String</code> names.
 *
 * @deprecated use Java 2 collection class such as HashMap
 */
public interface ParameterMap
{

    /**
     * Gets the value of the parameter with the given name. If either the name
     * or parameter does not exist, null is returned.
     *
     * @param parameterName the parameter name.
     * @return the parameter with given name.
     */
    public Object getParameterValue(String parameterName);

    /**
     * Returns an <code>Enumeration</code> of the parameter names belonging to
     * this <code>ParameterMap</code> object, this may then be used to fetch
     * the parameters sequentially.
     *
     * @return an <code>Enumeration</code> of the parameter names.
     */
    public Enumeration getParameterNames();

    /**
     * Returns true if this <code>ParameterMap</code> object contains the
     * specified String as a parameter name.
     *
     * @param parameterName parameter name to search for.
     * @return true if the give name is found, false otherwise.
     */
    public boolean containsParameter(String parameterName);

}
