home *** CD-ROM | disk | FTP | other *** search
/ Computer Shopper 139 / dpcs0999.iso / Web / CFserver / data1.cab / Java / allaire / util / template / TemplateRuntimeContext.class (.txt) < prev    next >
Encoding:
Java Class File  |  1999-04-12  |  951 b   |  25 lines

  1. package allaire.util.template;
  2.  
  3. import netscape.util.Hashtable;
  4.  
  5. public class TemplateRuntimeContext {
  6.    private SymbolTable m_symbols;
  7.    private Hashtable m_customContexts = new Hashtable();
  8.  
  9.    public SymbolTable getSymbolTable() {
  10.       return this.m_symbols;
  11.    }
  12.  
  13.    public TemplateRuntimeContext(SymbolTable var1) {
  14.       this.m_symbols = var1;
  15.    }
  16.  
  17.    public void addCustomContext(String var1, Object var2) {
  18.       this.m_customContexts.put(var1.toUpperCase(), var2);
  19.    }
  20.  
  21.    public Object getCustomContext(String var1) {
  22.       return this.m_customContexts.get(var1.toUpperCase());
  23.    }
  24. }
  25.