Changeset 95 in default for v2/trunk/de.ugoe.cs.swe.bnftools.ebnf/src-gen/de/ugoe/cs/swe/bnftools/ebnf/impl/RepeatedSequenceImpl.java
- Timestamp:
- 10/12/16 14:34:24 (8 years ago)
- 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 5 5 import de.ugoe.cs.swe.bnftools.ebnf.DefinitionList; 6 6 import de.ugoe.cs.swe.bnftools.ebnf.EbnfPackage; 7 import de.ugoe.cs.swe.bnftools.ebnf.RepeatRange; 7 8 import de.ugoe.cs.swe.bnftools.ebnf.RepeatedSequence; 8 9 … … 32 33 * <li>{@link de.ugoe.cs.swe.bnftools.ebnf.impl.RepeatedSequenceImpl#getDefinitions <em>Definitions</em>}</li> 33 34 * <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> 34 36 * </ul> 35 37 * </p> … … 70 72 71 73 /** 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 /** 72 84 * <!-- begin-user-doc --> 73 85 * <!-- end-user-doc --> … … 132 144 * @generated 133 145 */ 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 */ 134 194 @Override 135 195 public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) … … 139 199 case EbnfPackage.REPEATED_SEQUENCE__DEFINITIONS: 140 200 return ((InternalEList<?>)getDefinitions()).basicRemove(otherEnd, msgs); 201 case EbnfPackage.REPEATED_SEQUENCE__RANGE: 202 return basicSetRange(null, msgs); 141 203 } 142 204 return super.eInverseRemove(otherEnd, featureID, msgs); … … 157 219 case EbnfPackage.REPEATED_SEQUENCE__MORETHANONCE: 158 220 return isMorethanonce(); 221 case EbnfPackage.REPEATED_SEQUENCE__RANGE: 222 return getRange(); 159 223 } 160 224 return super.eGet(featureID, resolve, coreType); … … 179 243 setMorethanonce((Boolean)newValue); 180 244 return; 245 case EbnfPackage.REPEATED_SEQUENCE__RANGE: 246 setRange((RepeatRange)newValue); 247 return; 181 248 } 182 249 super.eSet(featureID, newValue); … … 198 265 case EbnfPackage.REPEATED_SEQUENCE__MORETHANONCE: 199 266 setMorethanonce(MORETHANONCE_EDEFAULT); 267 return; 268 case EbnfPackage.REPEATED_SEQUENCE__RANGE: 269 setRange((RepeatRange)null); 200 270 return; 201 271 } … … 217 287 case EbnfPackage.REPEATED_SEQUENCE__MORETHANONCE: 218 288 return morethanonce != MORETHANONCE_EDEFAULT; 289 case EbnfPackage.REPEATED_SEQUENCE__RANGE: 290 return range != null; 219 291 } 220 292 return super.eIsSet(featureID);
Note: See TracChangeset
for help on using the changeset viewer.