/*
 * Created on 2004-3-11
 *
 * To change the template for this generated file go to
 * Window - Preferences - Java - Code Generation - Code and Comments
 */
package workflow.script;
import java.util.Enumeration;
import java.util.Hashtable;
/**
 * @author zosatapo
 *
 * To change the template for this generated type comment go to
 * Window - Preferences - Java - Code Generation - Code and Comments
 */
public class ParameterContext
{
	private Hashtable parameters;
  
	public ParameterContext()
	{
		parameters = new Hashtable(10);
	}
	public ScriptParameter getParameter(String name)
	{
		return (ScriptParameter) parameters.get(name);
	}
	public void putParameter(ScriptParameter param)
	{
		parameters.put(param.getName(), param);
	}
	
	public void clear()
	{
		parameters.clear();
	}
	
	public Enumeration names()
	{
		return parameters.keys();
	}
}
