/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public NotificationChain basicSetDst(ValueReference newDst, NotificationChain msgs) { ValueReference oldDst = dst; dst = newDst; if (eNotificationRequired()) { ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, PatternLanguagePackage.PATH_EXPRESSION_HEAD__DST, oldDst, newDst); if (msgs == null) msgs = notification; else msgs.add(notification); } return msgs; }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public NotificationChain basicSetSrc(VariableReference newSrc, NotificationChain msgs) { VariableReference oldSrc = src; src = newSrc; if (eNotificationRequired()) { ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, PatternLanguagePackage.PATH_EXPRESSION_HEAD__SRC, oldSrc, newSrc); if (msgs == null) msgs = notification; else msgs.add(notification); } return msgs; }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public void setSrc(VariableReference newSrc) { if (newSrc != src) { NotificationChain msgs = null; if (src != null) msgs = ((InternalEObject)src).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - PatternLanguagePackage.PATH_EXPRESSION_HEAD__SRC, null, msgs); if (newSrc != null) msgs = ((InternalEObject)newSrc).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - PatternLanguagePackage.PATH_EXPRESSION_HEAD__SRC, null, msgs); msgs = basicSetSrc(newSrc, msgs); if (msgs != null) msgs.dispatch(); } else if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, PatternLanguagePackage.PATH_EXPRESSION_HEAD__SRC, newSrc, newSrc)); }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public void setDst(ValueReference newDst) { if (newDst != dst) { NotificationChain msgs = null; if (dst != null) msgs = ((InternalEObject)dst).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - PatternLanguagePackage.PATH_EXPRESSION_HEAD__DST, null, msgs); if (newDst != null) msgs = ((InternalEObject)newDst).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - PatternLanguagePackage.PATH_EXPRESSION_HEAD__DST, null, msgs); msgs = basicSetDst(newDst, msgs); if (msgs != null) msgs.dispatch(); } else if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, PatternLanguagePackage.PATH_EXPRESSION_HEAD__DST, newDst, newDst)); }