/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public void setFeature(CompareFeature newFeature) { CompareFeature oldFeature = feature; feature = newFeature == null ? FEATURE_EDEFAULT : newFeature; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, PatternLanguagePackage.COMPARE_CONSTRAINT__FEATURE, oldFeature, feature)); }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public void setRightOperand(ValueReference newRightOperand) { if (newRightOperand != rightOperand) { NotificationChain msgs = null; if (rightOperand != null) msgs = ((InternalEObject)rightOperand).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - PatternLanguagePackage.COMPARE_CONSTRAINT__RIGHT_OPERAND, null, msgs); if (newRightOperand != null) msgs = ((InternalEObject)newRightOperand).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - PatternLanguagePackage.COMPARE_CONSTRAINT__RIGHT_OPERAND, null, msgs); msgs = basicSetRightOperand(newRightOperand, msgs); if (msgs != null) msgs.dispatch(); } else if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, PatternLanguagePackage.COMPARE_CONSTRAINT__RIGHT_OPERAND, newRightOperand, newRightOperand)); }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public void setLeftOperand(ValueReference newLeftOperand) { if (newLeftOperand != leftOperand) { NotificationChain msgs = null; if (leftOperand != null) msgs = ((InternalEObject)leftOperand).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - PatternLanguagePackage.COMPARE_CONSTRAINT__LEFT_OPERAND, null, msgs); if (newLeftOperand != null) msgs = ((InternalEObject)newLeftOperand).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - PatternLanguagePackage.COMPARE_CONSTRAINT__LEFT_OPERAND, null, msgs); msgs = basicSetLeftOperand(newLeftOperand, msgs); if (msgs != null) msgs.dispatch(); } else if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, PatternLanguagePackage.COMPARE_CONSTRAINT__LEFT_OPERAND, newLeftOperand, newLeftOperand)); }