Ignore:
Timestamp:
10/12/16 15:29:26 (8 years ago)
Author:
phdmakk
Message:

+ generated resources

File:
1 edited

Legend:

Unmodified
Added
Removed
  • v2/trunk/de.ugoe.cs.swe.bnftools.ebnf/src-gen/de/ugoe/cs/swe/bnftools/ebnf/impl/BnfEntryImpl.java

    r88 r100  
    44 
    55import de.ugoe.cs.swe.bnftools.ebnf.BnfEntry; 
     6import de.ugoe.cs.swe.bnftools.ebnf.Comment; 
    67import de.ugoe.cs.swe.bnftools.ebnf.EbnfPackage; 
    78import de.ugoe.cs.swe.bnftools.ebnf.Rule; 
     
    2627 *   <li>{@link de.ugoe.cs.swe.bnftools.ebnf.impl.BnfEntryImpl#getSectionheader <em>Sectionheader</em>}</li> 
    2728 *   <li>{@link de.ugoe.cs.swe.bnftools.ebnf.impl.BnfEntryImpl#getRule <em>Rule</em>}</li> 
     29 *   <li>{@link de.ugoe.cs.swe.bnftools.ebnf.impl.BnfEntryImpl#getComment <em>Comment</em>}</li> 
    2830 * </ul> 
    2931 * </p> 
     
    5456 
    5557  /** 
     58   * The cached value of the '{@link #getComment() <em>Comment</em>}' containment reference. 
     59   * <!-- begin-user-doc --> 
     60   * <!-- end-user-doc --> 
     61   * @see #getComment() 
     62   * @generated 
     63   * @ordered 
     64   */ 
     65  protected Comment comment; 
     66 
     67  /** 
    5668   * <!-- begin-user-doc --> 
    5769   * <!-- end-user-doc --> 
     
    175187   * @generated 
    176188   */ 
     189  public Comment getComment() 
     190  { 
     191    return comment; 
     192  } 
     193 
     194  /** 
     195   * <!-- begin-user-doc --> 
     196   * <!-- end-user-doc --> 
     197   * @generated 
     198   */ 
     199  public NotificationChain basicSetComment(Comment newComment, NotificationChain msgs) 
     200  { 
     201    Comment oldComment = comment; 
     202    comment = newComment; 
     203    if (eNotificationRequired()) 
     204    { 
     205      ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, EbnfPackage.BNF_ENTRY__COMMENT, oldComment, newComment); 
     206      if (msgs == null) msgs = notification; else msgs.add(notification); 
     207    } 
     208    return msgs; 
     209  } 
     210 
     211  /** 
     212   * <!-- begin-user-doc --> 
     213   * <!-- end-user-doc --> 
     214   * @generated 
     215   */ 
     216  public void setComment(Comment newComment) 
     217  { 
     218    if (newComment != comment) 
     219    { 
     220      NotificationChain msgs = null; 
     221      if (comment != null) 
     222        msgs = ((InternalEObject)comment).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - EbnfPackage.BNF_ENTRY__COMMENT, null, msgs); 
     223      if (newComment != null) 
     224        msgs = ((InternalEObject)newComment).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - EbnfPackage.BNF_ENTRY__COMMENT, null, msgs); 
     225      msgs = basicSetComment(newComment, msgs); 
     226      if (msgs != null) msgs.dispatch(); 
     227    } 
     228    else if (eNotificationRequired()) 
     229      eNotify(new ENotificationImpl(this, Notification.SET, EbnfPackage.BNF_ENTRY__COMMENT, newComment, newComment)); 
     230  } 
     231 
     232  /** 
     233   * <!-- begin-user-doc --> 
     234   * <!-- end-user-doc --> 
     235   * @generated 
     236   */ 
    177237  @Override 
    178238  public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) 
     
    184244      case EbnfPackage.BNF_ENTRY__RULE: 
    185245        return basicSetRule(null, msgs); 
     246      case EbnfPackage.BNF_ENTRY__COMMENT: 
     247        return basicSetComment(null, msgs); 
    186248    } 
    187249    return super.eInverseRemove(otherEnd, featureID, msgs); 
     
    202264      case EbnfPackage.BNF_ENTRY__RULE: 
    203265        return getRule(); 
     266      case EbnfPackage.BNF_ENTRY__COMMENT: 
     267        return getComment(); 
    204268    } 
    205269    return super.eGet(featureID, resolve, coreType); 
     
    222286        setRule((Rule)newValue); 
    223287        return; 
     288      case EbnfPackage.BNF_ENTRY__COMMENT: 
     289        setComment((Comment)newValue); 
     290        return; 
    224291    } 
    225292    super.eSet(featureID, newValue); 
     
    242309        setRule((Rule)null); 
    243310        return; 
     311      case EbnfPackage.BNF_ENTRY__COMMENT: 
     312        setComment((Comment)null); 
     313        return; 
    244314    } 
    245315    super.eUnset(featureID); 
     
    260330      case EbnfPackage.BNF_ENTRY__RULE: 
    261331        return rule != null; 
     332      case EbnfPackage.BNF_ENTRY__COMMENT: 
     333        return comment != null; 
    262334    } 
    263335    return super.eIsSet(featureID); 
Note: See TracChangeset for help on using the changeset viewer.