/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public void setAggregator(AggregatorExpression newAggregator) { if (newAggregator != aggregator) { NotificationChain msgs = null; if (aggregator != null) msgs = ((InternalEObject)aggregator).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - PatternLanguagePackage.AGGREGATED_VALUE__AGGREGATOR, null, msgs); if (newAggregator != null) msgs = ((InternalEObject)newAggregator).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - PatternLanguagePackage.AGGREGATED_VALUE__AGGREGATOR, null, msgs); msgs = basicSetAggregator(newAggregator, msgs); if (msgs != null) msgs.dispatch(); } else if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, PatternLanguagePackage.AGGREGATED_VALUE__AGGREGATOR, newAggregator, newAggregator)); }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public void setCall(PatternCall newCall) { if (newCall != call) { NotificationChain msgs = null; if (call != null) msgs = ((InternalEObject)call).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - PatternLanguagePackage.AGGREGATED_VALUE__CALL, null, msgs); if (newCall != null) msgs = ((InternalEObject)newCall).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - PatternLanguagePackage.AGGREGATED_VALUE__CALL, null, msgs); msgs = basicSetCall(newCall, msgs); if (msgs != null) msgs.dispatch(); } else if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, PatternLanguagePackage.AGGREGATED_VALUE__CALL, newCall, newCall)); }