KickJava   Java API By Example, From Geeks To Geeks.

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


1 package org.sapia.soto.state;
2
3
4 /**
5  * Specifies basic variable binding behavior.
6  *
7  * @see org.sapia.soto.state.ContextImpl
8  *
9  * @author Yanick Duchesne
10  * <dl>
11  * <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>
12  * <dt><b>License:</b><dd>Read the license.txt file of the jar or visit the
13  * <a HREF="http://www.sapia-oss.org/license.html">license page</a> at the Sapia OSS web site</dd></dt>
14  * </dl>
15  */

16 public interface Scope {
17   /**
18    * Returns the value that corresponds to the given key.
19    *
20    * @param key an <code>Object</code>.
21    * @return the <code>Object</code> that corresponds to the given key, or
22    * <code>null</code> if no object was found.
23    */

24   public Object JavaDoc getVal(Object JavaDoc key);
25
26   /**
27    * Puts the value in this scope, under the given key.
28    *
29    * @param key an <code>Object</code>.
30    * @param value an <code>Object</code> that is bound under the given key.
31    */

32   public void putVal(Object JavaDoc key, Object JavaDoc value);
33 }
34
Popular Tags