View Javadoc

    1   /*
    2    * Joey and its relative products are published under the terms
    3    * of the Apache Software License.
    4    */
    5   /*
    6    * Created on 2004/01/27
    7    */
    8   package org.asyrinx.joey.gen.model;
    9
    10  /***
    11   * @author akima
    12   */
    13  public class EnumerationEntry extends Element {
    14
    15      /***
    16       *
    17       */
    18      public EnumerationEntry() {
    19          super();
    20      }
    21
    22      /***
    23       *
    24       */
    25      public EnumerationEntry(AbstractEnumeration parent, String name, String label) {
    26          this(parent, null, name, label);
    27      }
    28
    29      /***
    30       *
    31       */
    32      public EnumerationEntry(AbstractEnumeration parent, String value, String name, String label) {
    33          super(parent, name, label);
    34          this.value = value;
    35      }
    36
    37      /*
    38       * (non-Javadoc)
    39       *
    40       * @see org.asyrinx.joey.gen.model.Element#getParentElement()
    41       */
    42      public AbstractEnumeration getParent() {
    43          return (AbstractEnumeration) super.getParentElement();
    44      }
    45
    46      private String value = null;
    47
    48      /***
    49       * @return Returns the value.
    50       */
    51      public String getValue() {
    52          return value;
    53      }
    54
    55      /***
    56       * @param value
    57       *               The value to set.
    58       */
    59      public void setValue(String value) {
    60          this.value = value;
    61      }
    62  }