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/12/27 12:05:27
    6    */
    7   package org.asyrinx.joey.gen.model.rdb;
    8
    9   import org.asyrinx.joey.gen.model.ElementSet;
    10
    11  /***
    12   * @author takeshi
    13   */
    14  public class TablePatternSet extends ElementSet {
    15
    16      /***
    17       * @param parent
    18       */
    19      public TablePatternSet(Table parent) {
    20          super(parent);
    21      }
    22
    23      /***
    24       * @param parent
    25       * @param name
    26       */
    27      public TablePatternSet(Table parent, String name) {
    28          super(parent, name);
    29      }
    30
    31      /***
    32       * @param parent
    33       * @param name
    34       * @param label
    35       */
    36      public TablePatternSet(Table parent, String name, String label) {
    37          super(parent, name, label);
    38      }
    39
    40      /***
    41       * @param name
    42       */
    43      public TablePatternSet(String name) {
    44          super(name);
    45      }
    46
    47      public boolean isEntity() {
    48          return false;
    49      }
    50
    51      public void add(TablePattern pattern) {
    52          super.add(pattern);
    53      }
    54
    55      public boolean contains(TablePattern pattern) {
    56          return super.contains(pattern);
    57      }
    58
    59      public TablePattern getPattern(int idx) {
    60          return (TablePattern) super.getElement(idx);
    61      }
    62
    63      public TablePattern getPattern(String name) {
    64          return (TablePattern) super.getElement(name);
    65      }
    66
    67      public TablePattern removePattern(String name) {
    68          return (TablePattern) super.removeElement(name);
    69      }
    70
    71      public Table getParent() {
    72          return (Table) super.getParentElement();
    73      }
    74  }