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/08 21:06:19
    6    */
    7   package org.asyrinx.joey.gen.model.java;
    8
    9   import org.apache.commons.lang.enum.Enum;
    10
    11  /***
    12   * @author takeshi
    13   */
    14  public class ReferenceType extends Enum {
    15
    16      /***
    17       * @param name
    18       */
    19      public ReferenceType(String name) {
    20          super(name);
    21      }
    22
    23      public static final ReferenceType NORMAL = new ReferenceType("normal");
    24
    25      public static final ReferenceType EXTENDS = new ReferenceType("extends");
    26
    27      public static final ReferenceType COMPOSITE = new ReferenceType("composite");
    28
    29      public static ReferenceType get(String name) {
    30          return (ReferenceType) Enum.getEnum(ReferenceType.class, name);
    31      }
    32  }