KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > sapia > util > text > TemplateContextIF


1 package org.sapia.util.text;
2
3
4 /**
5  * Holds values that are bound to names. Provides a "lookup" method that is
6  * used by a <code>TemplateElementIF</code> to resolve variables.
7  *
8  * @author JC Desrochers
9  *
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 TemplateContextIF {
17   /**
18    * Returns the value of this context for the property name passed in.
19    *
20    * @param aName The name of the property.
21    */

22   public Object JavaDoc getValue(String JavaDoc aName);
23
24   /**
25    * Puts the given value in this context; if one already exists
26    * under the given name, it is overwritten.
27    *
28    * @param name the name under which to map the given value.
29    * @param value an <code>Object</code>.
30    */

31   public void put(String JavaDoc name, Object JavaDoc value);
32 }
33
Popular Tags