Changeset 100 in default for v2/trunk/de.ugoe.cs.swe.bnftools.ebnf/src-gen/de/ugoe/cs/swe/bnftools/ebnf/impl/BnfEntryImpl.java
- Timestamp:
- 10/12/16 15:29:26 (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/BnfEntryImpl.java
r88 r100 4 4 5 5 import de.ugoe.cs.swe.bnftools.ebnf.BnfEntry; 6 import de.ugoe.cs.swe.bnftools.ebnf.Comment; 6 7 import de.ugoe.cs.swe.bnftools.ebnf.EbnfPackage; 7 8 import de.ugoe.cs.swe.bnftools.ebnf.Rule; … … 26 27 * <li>{@link de.ugoe.cs.swe.bnftools.ebnf.impl.BnfEntryImpl#getSectionheader <em>Sectionheader</em>}</li> 27 28 * <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> 28 30 * </ul> 29 31 * </p> … … 54 56 55 57 /** 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 /** 56 68 * <!-- begin-user-doc --> 57 69 * <!-- end-user-doc --> … … 175 187 * @generated 176 188 */ 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 */ 177 237 @Override 178 238 public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) … … 184 244 case EbnfPackage.BNF_ENTRY__RULE: 185 245 return basicSetRule(null, msgs); 246 case EbnfPackage.BNF_ENTRY__COMMENT: 247 return basicSetComment(null, msgs); 186 248 } 187 249 return super.eInverseRemove(otherEnd, featureID, msgs); … … 202 264 case EbnfPackage.BNF_ENTRY__RULE: 203 265 return getRule(); 266 case EbnfPackage.BNF_ENTRY__COMMENT: 267 return getComment(); 204 268 } 205 269 return super.eGet(featureID, resolve, coreType); … … 222 286 setRule((Rule)newValue); 223 287 return; 288 case EbnfPackage.BNF_ENTRY__COMMENT: 289 setComment((Comment)newValue); 290 return; 224 291 } 225 292 super.eSet(featureID, newValue); … … 242 309 setRule((Rule)null); 243 310 return; 311 case EbnfPackage.BNF_ENTRY__COMMENT: 312 setComment((Comment)null); 313 return; 244 314 } 245 315 super.eUnset(featureID); … … 260 330 case EbnfPackage.BNF_ENTRY__RULE: 261 331 return rule != null; 332 case EbnfPackage.BNF_ENTRY__COMMENT: 333 return comment != null; 262 334 } 263 335 return super.eIsSet(featureID);
Note: See TracChangeset
for help on using the changeset viewer.