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:07:28
    6    */
    7   package org.asyrinx.joey.gen.model.rdb;
    8
    9   import org.apache.commons.lang.builder.EqualsBuilder;
    10  import org.asyrinx.joey.gen.model.Element;
    11
    12  /***
    13   * @author takeshi
    14   */
    15  public class TablePatternParam extends Element {
    16
    17      /***
    18       *
    19       */
    20      public TablePatternParam() {
    21          super();
    22      }
    23
    24      /***
    25       * @param parent
    26       * @param name
    27       * @param label
    28       */
    29      public TablePatternParam(Element parent, String name, String label) {
    30          super(parent, name, label);
    31      }
    32
    33      private String value = null;
    34
    35      public String getValue() {
    36          return value;
    37      }
    38
    39      public void setValue(String value) {
    40          this.value = value;
    41      }
    42
    43      /*
    44       * (non-Javadoc)
    45       *
    46       * @see java.lang.Object#equals(java.lang.Object)
    47       */
    48      public boolean equals(Object obj) {
    49          if (!super.equals(obj))
    50              return false;
    51          if (!(obj instanceof TablePatternParam))
    52              return false;
    53          final TablePatternParam other = (TablePatternParam) obj;
    54          return new EqualsBuilder() //
    55                  .append(this.getValue(), other.getValue()) //
    56                  .isEquals();
    57      }
    58  }