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/08/12 23:16:04
    6    */
    7   package org.asyrinx.joey.gen.model.java;
    8
    9   import org.asyrinx.joey.gen.model.Element;
    10  import org.asyrinx.joey.gen.model.ElementSet;
    11
    12  /***
    13   * @author akima
    14   */
    15  public class EntitySet extends ElementSet {
    16
    17      /***
    18       * @param parent
    19       * @param isEntity
    20       */
    21      public EntitySet(Element parent) {
    22          super(parent);
    23      }
    24
    25      /*
    26       * (non-Javadoc)
    27       *
    28       * @see org.asyrinx.joey.gen.model.ElementSet#isEntity()
    29       */
    30      public boolean isEntity() {
    31          return false;
    32      }
    33
    34      public void add(Entity javaType) {
    35          super.add(javaType);
    36      }
    37
    38      /*
    39       * (non-Javadoc)
    40       *
    41       * @see org.asyrinx.joey.gen.model.ElementSet#contains(org.asyrinx.joey.gen.model.Element)
    42       */
    43      public boolean contains(Entity javaType) {
    44          return super.contains(javaType);
    45      }
    46
    47      /*
    48       * (non-Javadoc)
    49       *
    50       * @see org.asyrinx.joey.gen.model.ElementSet#getElement(int)
    51       */
    52      public Entity getJavaType(int index) {
    53          return (Entity) super.getElement(index);
    54      }
    55
    56      /*
    57       * (non-Javadoc)
    58       *
    59       * @see org.asyrinx.joey.gen.model.ElementSet#get(java.lang.String)
    60       */
    61      public Entity getJavaType(String name) {
    62          return (Entity) super.getElement(name);
    63      }
    64
    65      /*
    66       * (non-Javadoc)
    67       *
    68       * @see org.asyrinx.joey.gen.model.ElementSet#remove(java.lang.String)
    69       */
    70      public Entity removeJavaType(String name) {
    71          return (Entity) super.removeElement(name);
    72      }
    73
    74  }