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 2004/11/09 13:18:41
6    */
7   package org.asyrinx.joey.gen.command.rdb;
8   
9   import org.asyrinx.joey.gen.model.Element;
10  import org.asyrinx.joey.gen.model.command.Command;
11  import org.asyrinx.joey.gen.model.rdb.RdbVisitor;
12  import org.asyrinx.joey.gen.model.rdb.visitor.RdbTopDownVisitor;
13  import org.asyrinx.joey.gen.model.rdb.visitor.RdbVisitorAdapter;
14  
15  /***
16   * @author takeshi
17   */
18  public class RdbCommandAdapter extends Command {
19  
20      /***
21       *  
22       */
23      public RdbCommandAdapter(RdbVisitor adaptee) {
24          super();
25          this.adaptee = adaptee;
26      }
27  
28      protected final RdbVisitor adaptee;
29  
30      /*
31       * (non-Javadoc)
32       * 
33       * @see org.asyrinx.joey.gen.model.command.Command#execute(org.asyrinx.joey.gen.model.Element)
34       */
35      public void execute(Element element) {
36          new RdbVisitorAdapter(new RdbTopDownVisitor(this.adaptee)).visit(element);
37      }
38  
39  }