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/14 18:05:08
    6    */
    7   package org.asyrinx.joey.gen.model.java;
    8
    9   import org.asyrinx.joey.gen.model.Element;
    10
    11  /***
    12   * @author akima
    13   */
    14  public class EntityElement extends Element {
    15
    16      /***
    17       *
    18       */
    19      public EntityElement() {
    20          super();
    21      }
    22
    23      /***
    24       * @param parent
    25       */
    26      public EntityElement(Entity parent) {
    27          super(parent);
    28      }
    29
    30      /***
    31       * @param parent
    32       */
    33      public EntityElement(Entity parent, String name) {
    34          super(parent, name);
    35      }
    36
    37      /*
    38       * (non-Javadoc)
    39       *
    40       * @see org.asyrinx.joey.gen.model.Element#isEntity()
    41       */
    42      public boolean isEntity() {
    43          return true;
    44      }
    45
    46      /***
    47       *
    48       * @return
    49       */
    50      public Entity getParent() {
    51          return (Entity) super.getParentElement();
    52      }
    53
    54      private boolean statik = false;
    55
    56      private boolean finall = false;
    57
    58      private Visibility visibility = Visibility.PRIVATE;
    59
    60      /***
    61       * @return Returns the statik.
    62       */
    63      public boolean isStatik() {
    64          return statik;
    65      }
    66
    67      /***
    68       * @param statik
    69       *               The statik to set.
    70       */
    71      public void setStatik(boolean classMethod) {
    72          this.statik = classMethod;
    73      }
    74
    75      /***
    76       * @return Returns the visibility.
    77       */
    78      public Visibility getVisibility() {
    79          return visibility;
    80      }
    81
    82      /***
    83       * @param visibility
    84       *               The visibility to set.
    85       */
    86      public void setVisibility(Visibility visibility) {
    87          this.visibility = visibility;
    88      }
    89
    90      /***
    91       * @return Returns the finall.
    92       */
    93      public boolean isFinall() {
    94          return finall;
    95      }
    96
    97      /***
    98       * @param finall
    99       *               The finall to set.
    100      */
    101     public void setFinall(boolean readOnly) {
    102         this.finall = readOnly;
    103     }
    104 }