1 package org.sapia.gumby; 2 3 /** 4 * A scope is a simple associative datastructure that is kept within a 5 * <code>GuiEnv</code> instance, under a given name. 6 * 7 * @see org.sapia.gumby.GuiEnv 8 * 9 * @author Yanick Duchesne 10 * 11 * <dl> 12 * <dt><b>Copyright: </b> 13 * <dd>Copyright © 2002-2005 <a HREF="http://www.sapia-oss.org">Sapia Open 14 * Source Software </a>. All Rights Reserved.</dd> 15 * </dt> 16 * <dt><b>License: </b> 17 * <dd>Read the license.txt file of the jar or visit the <a 18 * HREF="http://www.sapia-oss.org/license.html">license page </a> at the Sapia 19 * OSS web site</dd> 20 * </dt> 21 * </dl> 22 */ 23 public interface Scope { 24 25 /** 26 * @param name 27 * the name under which to keep the object. 28 * @param o 29 * an <code>Object</code>. 30 */ 31 public void put(String name, Object o); 32 33 /** 34 * @param name 35 * the name of the object to retrieve. 36 * @return the <code>Object</code> corresponding to the given name, or 37 * <code>null</code> if no such object exists. 38 */ 39 public Object get(String name); 40 41 } 42