1 package org.apache.turbine.modules; 2 3 56 57 import java.util.HashMap ; 58 import java.util.Set ; 59 import org.apache.turbine.TemplateContext; 60 61 68 public class DefaultTemplateContext 69 implements TemplateContext 70 { 71 private HashMap context = new HashMap (); 72 73 public Object put(String key, Object value) 74 { 75 context.put(key, value); 76 return value; 77 } 78 79 public Object get(String key) 80 { 81 return context.get(key); 82 } 83 84 public Object remove(Object target) 85 { 86 context.remove(target); 87 return target; 88 } 89 90 public boolean containsKey(Object key) 91 { 92 return context.containsKey(key); 93 } 94 95 public Set keySet() 96 { 97 return context.keySet(); 98 } 99 } 100 | Popular Tags |