Ignore:
Timestamp:
10/12/16 14:34:24 (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/RepeatedSequenceImpl.java

    r88 r95  
    55import de.ugoe.cs.swe.bnftools.ebnf.DefinitionList; 
    66import de.ugoe.cs.swe.bnftools.ebnf.EbnfPackage; 
     7import de.ugoe.cs.swe.bnftools.ebnf.RepeatRange; 
    78import de.ugoe.cs.swe.bnftools.ebnf.RepeatedSequence; 
    89 
     
    3233 *   <li>{@link de.ugoe.cs.swe.bnftools.ebnf.impl.RepeatedSequenceImpl#getDefinitions <em>Definitions</em>}</li> 
    3334 *   <li>{@link de.ugoe.cs.swe.bnftools.ebnf.impl.RepeatedSequenceImpl#isMorethanonce <em>Morethanonce</em>}</li> 
     35 *   <li>{@link de.ugoe.cs.swe.bnftools.ebnf.impl.RepeatedSequenceImpl#getRange <em>Range</em>}</li> 
    3436 * </ul> 
    3537 * </p> 
     
    7072 
    7173  /** 
     74   * The cached value of the '{@link #getRange() <em>Range</em>}' containment reference. 
     75   * <!-- begin-user-doc --> 
     76   * <!-- end-user-doc --> 
     77   * @see #getRange() 
     78   * @generated 
     79   * @ordered 
     80   */ 
     81  protected RepeatRange range; 
     82 
     83  /** 
    7284   * <!-- begin-user-doc --> 
    7385   * <!-- end-user-doc --> 
     
    132144   * @generated 
    133145   */ 
     146  public RepeatRange getRange() 
     147  { 
     148    return range; 
     149  } 
     150 
     151  /** 
     152   * <!-- begin-user-doc --> 
     153   * <!-- end-user-doc --> 
     154   * @generated 
     155   */ 
     156  public NotificationChain basicSetRange(RepeatRange newRange, NotificationChain msgs) 
     157  { 
     158    RepeatRange oldRange = range; 
     159    range = newRange; 
     160    if (eNotificationRequired()) 
     161    { 
     162      ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, EbnfPackage.REPEATED_SEQUENCE__RANGE, oldRange, newRange); 
     163      if (msgs == null) msgs = notification; else msgs.add(notification); 
     164    } 
     165    return msgs; 
     166  } 
     167 
     168  /** 
     169   * <!-- begin-user-doc --> 
     170   * <!-- end-user-doc --> 
     171   * @generated 
     172   */ 
     173  public void setRange(RepeatRange newRange) 
     174  { 
     175    if (newRange != range) 
     176    { 
     177      NotificationChain msgs = null; 
     178      if (range != null) 
     179        msgs = ((InternalEObject)range).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - EbnfPackage.REPEATED_SEQUENCE__RANGE, null, msgs); 
     180      if (newRange != null) 
     181        msgs = ((InternalEObject)newRange).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - EbnfPackage.REPEATED_SEQUENCE__RANGE, null, msgs); 
     182      msgs = basicSetRange(newRange, msgs); 
     183      if (msgs != null) msgs.dispatch(); 
     184    } 
     185    else if (eNotificationRequired()) 
     186      eNotify(new ENotificationImpl(this, Notification.SET, EbnfPackage.REPEATED_SEQUENCE__RANGE, newRange, newRange)); 
     187  } 
     188 
     189  /** 
     190   * <!-- begin-user-doc --> 
     191   * <!-- end-user-doc --> 
     192   * @generated 
     193   */ 
    134194  @Override 
    135195  public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) 
     
    139199      case EbnfPackage.REPEATED_SEQUENCE__DEFINITIONS: 
    140200        return ((InternalEList<?>)getDefinitions()).basicRemove(otherEnd, msgs); 
     201      case EbnfPackage.REPEATED_SEQUENCE__RANGE: 
     202        return basicSetRange(null, msgs); 
    141203    } 
    142204    return super.eInverseRemove(otherEnd, featureID, msgs); 
     
    157219      case EbnfPackage.REPEATED_SEQUENCE__MORETHANONCE: 
    158220        return isMorethanonce(); 
     221      case EbnfPackage.REPEATED_SEQUENCE__RANGE: 
     222        return getRange(); 
    159223    } 
    160224    return super.eGet(featureID, resolve, coreType); 
     
    179243        setMorethanonce((Boolean)newValue); 
    180244        return; 
     245      case EbnfPackage.REPEATED_SEQUENCE__RANGE: 
     246        setRange((RepeatRange)newValue); 
     247        return; 
    181248    } 
    182249    super.eSet(featureID, newValue); 
     
    198265      case EbnfPackage.REPEATED_SEQUENCE__MORETHANONCE: 
    199266        setMorethanonce(MORETHANONCE_EDEFAULT); 
     267        return; 
     268      case EbnfPackage.REPEATED_SEQUENCE__RANGE: 
     269        setRange((RepeatRange)null); 
    200270        return; 
    201271    } 
     
    217287      case EbnfPackage.REPEATED_SEQUENCE__MORETHANONCE: 
    218288        return morethanonce != MORETHANONCE_EDEFAULT; 
     289      case EbnfPackage.REPEATED_SEQUENCE__RANGE: 
     290        return range != null; 
    219291    } 
    220292    return super.eIsSet(featureID); 
Note: See TracChangeset for help on using the changeset viewer.