KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > sapia > soto > state > MapScope


1 package org.sapia.soto.state;
2
3 import java.util.HashMap JavaDoc;
4
5
6 /**
7  * Implements the <code>Scope</code> interface by inheriting from the <code>HashMap</code>
8  * class.
9  *
10  * @author Yanick Duchesne
11  * <dl>
12  * <dt><b>Copyright:</b><dd>Copyright &#169; 2002-2003 <a HREF="http://www.sapia-oss.org">Sapia Open Source Software</a>. All Rights Reserved.</dd></dt>
13  * <dt><b>License:</b><dd>Read the license.txt file of the jar or visit the
14  * <a HREF="http://www.sapia-oss.org/license.html">license page</a> at the Sapia OSS web site</dd></dt>
15  * </dl>
16  */

17 public class MapScope extends HashMap JavaDoc implements Scope {
18   /**
19    * @see org.sapia.soto.state.Scope#putVal(java.lang.Object, java.lang.Object)
20    */

21   public void putVal(Object JavaDoc key, Object JavaDoc value) {
22     super.put(key, value);
23   }
24
25   /**
26    * @see org.sapia.soto.state.Scope#getVal(java.lang.Object)
27    */

28   public Object JavaDoc getVal(Object JavaDoc key) {
29     return super.get(key);
30   }
31 }
32
Popular Tags