View Javadoc

    1   /*
    2    * joey-gen and its relative products are published under the terms
    3    * of the Apache Software License.
    4    *
    5    * Created on 2005/01/14 20:51:56
    6    */
    7   package org.asyrinx.joey.gen.velocity;
    8
    9   import org.apache.velocity.context.Context;
    10
    11  /***
    12   * @author takeshi
    13   */
    14  public class ContextWrapper implements Context {
    15
    16      /***
    17       *
    18       */
    19      public ContextWrapper(Context wrapped) {
    20          super();
    21          this.wrapped = wrapped;
    22      }
    23
    24      private final Context wrapped;
    25
    26      public boolean containsKey(Object key) {
    27          return wrapped.containsKey(key);
    28      }
    29
    30      public Object get(String key) {
    31          return wrapped.get(key);
    32      }
    33
    34      public Object[] getKeys() {
    35          return wrapped.getKeys();
    36      }
    37
    38      public Object put(String key, Object value) {
    39          return wrapped.put(key, value);
    40      }
    41
    42      public Object remove(Object key) {
    43          return wrapped.remove(key);
    44      }
    45  }