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 12:39:21
    6    */
    7   package org.asyrinx.joey.gen.model.java.visitor;
    8
    9   import org.asyrinx.joey.gen.model.java.AppDomain;
    10  import org.asyrinx.joey.gen.model.java.Entity;
    11  import org.asyrinx.joey.gen.model.java.EntityKey;
    12  import org.asyrinx.joey.gen.model.java.JavaEnumeration;
    13  import org.asyrinx.joey.gen.model.java.JavaVisitor;
    14  import org.asyrinx.joey.gen.model.java.Property;
    15  import org.asyrinx.joey.gen.model.java.Reference;
    16
    17  /***
    18   * @author takeshi
    19   */
    20  public class JavaVisitorWrapper implements JavaVisitor {
    21
    22      /***
    23       *
    24       */
    25      public JavaVisitorWrapper(JavaVisitor wrapped) {
    26          super();
    27          this.wrapped = wrapped;
    28      }
    29
    30      protected final JavaVisitor wrapped;
    31
    32      /***
    33       * @param appDomain
    34       */
    35      public void visit(AppDomain appDomain) {
    36          wrapped.visit(appDomain);
    37      }
    38
    39      /***
    40       * @param javaClass
    41       */
    42      public void visit(Entity javaClass) {
    43          wrapped.visit(javaClass);
    44      }
    45
    46      /***
    47       * @param javaClassKey
    48       */
    49      public void visit(EntityKey javaClassKey) {
    50          wrapped.visit(javaClassKey);
    51      }
    52
    53      /***
    54       * @param enum
    55       */
    56      public void visit(JavaEnumeration enum) {
    57          wrapped.visit(enum);
    58      }
    59
    60      /***
    61       * @param property
    62       */
    63      public void visit(Property property) {
    64          wrapped.visit(property);
    65      }
    66
    67      /***
    68       * @param reference
    69       */
    70      public void visit(Reference reference) {
    71          wrapped.visit(reference);
    72      }
    73  }