示例#1
0
 /**
  *
  * <!-- begin-user-doc -->
  * <!-- end-user-doc -->
  *
  * @generated
  */
 public void setExpression(ExpCS newExpression) {
   if (newExpression != expression) {
     NotificationChain msgs = null;
     if (expression != null)
       msgs =
           ((InternalEObject) expression)
               .eInverseRemove(
                   this,
                   EOPPOSITE_FEATURE_BASE - QVTOperationalCSPackage.INIT_PART_CS__EXPRESSION,
                   null,
                   msgs);
     if (newExpression != null)
       msgs =
           ((InternalEObject) newExpression)
               .eInverseAdd(
                   this,
                   EOPPOSITE_FEATURE_BASE - QVTOperationalCSPackage.INIT_PART_CS__EXPRESSION,
                   null,
                   msgs);
     msgs = basicSetExpression(newExpression, msgs);
     if (msgs != null) msgs.dispatch();
   } else if (eNotificationRequired())
     eNotify(
         new ENotificationImpl(
             this,
             Notification.SET,
             QVTOperationalCSPackage.INIT_PART_CS__EXPRESSION,
             newExpression,
             newExpression));
 }
 /**
  *
  * <!-- begin-user-doc -->
  * <!-- end-user-doc -->
  *
  * @generated
  */
 public void setMaxLengthConstant(Constant newMaxLengthConstant) {
   if (newMaxLengthConstant != maxLengthConstant) {
     NotificationChain msgs = null;
     if (maxLengthConstant != null)
       msgs =
           ((InternalEObject) maxLengthConstant)
               .eInverseRemove(
                   this,
                   EOPPOSITE_FEATURE_BASE - ModulePackage.MODE_QUEUE_TYPE__MAX_LENGTH_CONSTANT,
                   null,
                   msgs);
     if (newMaxLengthConstant != null)
       msgs =
           ((InternalEObject) newMaxLengthConstant)
               .eInverseAdd(
                   this,
                   EOPPOSITE_FEATURE_BASE - ModulePackage.MODE_QUEUE_TYPE__MAX_LENGTH_CONSTANT,
                   null,
                   msgs);
     msgs = basicSetMaxLengthConstant(newMaxLengthConstant, msgs);
     if (msgs != null) msgs.dispatch();
   } else if (eNotificationRequired())
     eNotify(
         new ENotificationImpl(
             this,
             Notification.SET,
             ModulePackage.MODE_QUEUE_TYPE__MAX_LENGTH_CONSTANT,
             newMaxLengthConstant,
             newMaxLengthConstant));
 }
 /**
  *
  * <!-- begin-user-doc -->
  * <!-- end-user-doc -->
  *
  * @generated
  */
 public void setIArg2(IArg newIArg2) {
   if (newIArg2 != iArg2) {
     NotificationChain msgs = null;
     if (iArg2 != null)
       msgs =
           ((InternalEObject) iArg2)
               .eInverseRemove(
                   this,
                   EOPPOSITE_FEATURE_BASE - Owl2fsPackage.OBJECT_PROPERTY_ATOM__IARG2,
                   null,
                   msgs);
     if (newIArg2 != null)
       msgs =
           ((InternalEObject) newIArg2)
               .eInverseAdd(
                   this,
                   EOPPOSITE_FEATURE_BASE - Owl2fsPackage.OBJECT_PROPERTY_ATOM__IARG2,
                   null,
                   msgs);
     msgs = basicSetIArg2(newIArg2, msgs);
     if (msgs != null) msgs.dispatch();
   } else if (eNotificationRequired())
     eNotify(
         new ENotificationImpl(
             this,
             Notification.SET,
             Owl2fsPackage.OBJECT_PROPERTY_ATOM__IARG2,
             newIArg2,
             newIArg2));
 }
示例#4
0
 /**
  *
  * <!-- begin-user-doc -->
  * <!-- end-user-doc -->
  *
  * @generated
  */
 public void setStyle(Style newStyle) {
   if (newStyle != style) {
     NotificationChain msgs = null;
     if (style != null)
       msgs =
           ((InternalEObject) style)
               .eInverseRemove(
                   this,
                   EOPPOSITE_FEATURE_BASE - CommonPackage.CONTENT_ELEMENT__STYLE,
                   null,
                   msgs);
     if (newStyle != null)
       msgs =
           ((InternalEObject) newStyle)
               .eInverseAdd(
                   this,
                   EOPPOSITE_FEATURE_BASE - CommonPackage.CONTENT_ELEMENT__STYLE,
                   null,
                   msgs);
     msgs = basicSetStyle(newStyle, msgs);
     if (msgs != null) msgs.dispatch();
   } else if (eNotificationRequired())
     eNotify(
         new ENotificationImpl(
             this, Notification.SET, CommonPackage.CONTENT_ELEMENT__STYLE, newStyle, newStyle));
 }
示例#5
0
 /**
  *
  * <!-- begin-user-doc -->
  * <!-- end-user-doc -->
  *
  * @generated
  */
 public void setLineAttributes(LineAttributes newLineAttributes) {
   if (newLineAttributes != lineAttributes) {
     NotificationChain msgs = null;
     if (lineAttributes != null)
       msgs =
           ((InternalEObject) lineAttributes)
               .eInverseRemove(
                   this,
                   EOPPOSITE_FEATURE_BASE - ComponentPackage.DIAL__LINE_ATTRIBUTES,
                   null,
                   msgs);
     if (newLineAttributes != null)
       msgs =
           ((InternalEObject) newLineAttributes)
               .eInverseAdd(
                   this,
                   EOPPOSITE_FEATURE_BASE - ComponentPackage.DIAL__LINE_ATTRIBUTES,
                   null,
                   msgs);
     msgs = basicSetLineAttributes(newLineAttributes, msgs);
     if (msgs != null) msgs.dispatch();
   } else if (eNotificationRequired())
     eNotify(
         new ENotificationImpl(
             this,
             Notification.SET,
             ComponentPackage.DIAL__LINE_ATTRIBUTES,
             newLineAttributes,
             newLineAttributes));
 }
 /**
  *
  * <!-- begin-user-doc -->
  * <!-- end-user-doc -->
  *
  * @generated
  */
 public InputPin getTarget() {
   if (target != null && target.eIsProxy()) {
     InternalEObject oldTarget = (InternalEObject) target;
     target = (InputPin) eResolveProxy(oldTarget);
     if (target != oldTarget) {
       InternalEObject newTarget = (InternalEObject) target;
       NotificationChain msgs =
           oldTarget.eInverseRemove(
               this, EOPPOSITE_FEATURE_BASE - UMLPackage.SEND_SIGNAL_ACTION__TARGET, null, null);
       if (newTarget.eInternalContainer() == null) {
         msgs =
             newTarget.eInverseAdd(
                 this, EOPPOSITE_FEATURE_BASE - UMLPackage.SEND_SIGNAL_ACTION__TARGET, null, msgs);
       }
       if (msgs != null) msgs.dispatch();
       if (eNotificationRequired())
         eNotify(
             new ENotificationImpl(
                 this,
                 Notification.RESOLVE,
                 UMLPackage.SEND_SIGNAL_ACTION__TARGET,
                 oldTarget,
                 target));
     }
   }
   return target;
 }
 /**
  *
  * <!-- begin-user-doc -->
  * <!-- end-user-doc -->
  *
  * @generated
  */
 public void setValue(XExpression newValue) {
   if (newValue != value) {
     NotificationChain msgs = null;
     if (value != null)
       msgs =
           ((InternalEObject) value)
               .eInverseRemove(
                   this,
                   EOPPOSITE_FEATURE_BASE - ProcessorModelPackage.ENUM_ATTRIBUTE_VALUE__VALUE,
                   null,
                   msgs);
     if (newValue != null)
       msgs =
           ((InternalEObject) newValue)
               .eInverseAdd(
                   this,
                   EOPPOSITE_FEATURE_BASE - ProcessorModelPackage.ENUM_ATTRIBUTE_VALUE__VALUE,
                   null,
                   msgs);
     msgs = basicSetValue(newValue, msgs);
     if (msgs != null) msgs.dispatch();
   } else if (eNotificationRequired())
     eNotify(
         new ENotificationImpl(
             this,
             Notification.SET,
             ProcessorModelPackage.ENUM_ATTRIBUTE_VALUE__VALUE,
             newValue,
             newValue));
 }
示例#8
0
 /**
  *
  * <!-- begin-user-doc -->
  * <!-- end-user-doc -->
  *
  * @generated
  */
 public void setAuthorReference(Reference newAuthorReference) {
   if (newAuthorReference != authorReference) {
     NotificationChain msgs = null;
     if (authorReference != null)
       msgs =
           ((InternalEObject) authorReference)
               .eInverseRemove(
                   this,
                   EOPPOSITE_FEATURE_BASE - FhirPackage.ANNOTATION__AUTHOR_REFERENCE,
                   null,
                   msgs);
     if (newAuthorReference != null)
       msgs =
           ((InternalEObject) newAuthorReference)
               .eInverseAdd(
                   this,
                   EOPPOSITE_FEATURE_BASE - FhirPackage.ANNOTATION__AUTHOR_REFERENCE,
                   null,
                   msgs);
     msgs = basicSetAuthorReference(newAuthorReference, msgs);
     if (msgs != null) msgs.dispatch();
   } else if (eNotificationRequired())
     eNotify(
         new ENotificationImpl(
             this,
             Notification.SET,
             FhirPackage.ANNOTATION__AUTHOR_REFERENCE,
             newAuthorReference,
             newAuthorReference));
 }
示例#9
0
 /**
  *
  * <!-- begin-user-doc -->
  * <!-- end-user-doc -->
  *
  * @generated
  */
 public void setAuthorString(org.hl7.fhir.String newAuthorString) {
   if (newAuthorString != authorString) {
     NotificationChain msgs = null;
     if (authorString != null)
       msgs =
           ((InternalEObject) authorString)
               .eInverseRemove(
                   this,
                   EOPPOSITE_FEATURE_BASE - FhirPackage.ANNOTATION__AUTHOR_STRING,
                   null,
                   msgs);
     if (newAuthorString != null)
       msgs =
           ((InternalEObject) newAuthorString)
               .eInverseAdd(
                   this,
                   EOPPOSITE_FEATURE_BASE - FhirPackage.ANNOTATION__AUTHOR_STRING,
                   null,
                   msgs);
     msgs = basicSetAuthorString(newAuthorString, msgs);
     if (msgs != null) msgs.dispatch();
   } else if (eNotificationRequired())
     eNotify(
         new ENotificationImpl(
             this,
             Notification.SET,
             FhirPackage.ANNOTATION__AUTHOR_STRING,
             newAuthorString,
             newAuthorString));
 }
 /**
  *
  * <!-- begin-user-doc -->
  * <!-- end-user-doc -->
  *
  * @generated
  */
 public void setStatement(Sql newStatement) {
   if (newStatement != statement) {
     NotificationChain msgs = null;
     if (statement != null)
       msgs =
           ((InternalEObject) statement)
               .eInverseRemove(
                   this,
                   EOPPOSITE_FEATURE_BASE - ProcessorDslPackage.META_STATEMENT__STATEMENT,
                   null,
                   msgs);
     if (newStatement != null)
       msgs =
           ((InternalEObject) newStatement)
               .eInverseAdd(
                   this,
                   EOPPOSITE_FEATURE_BASE - ProcessorDslPackage.META_STATEMENT__STATEMENT,
                   null,
                   msgs);
     msgs = basicSetStatement(newStatement, msgs);
     if (msgs != null) msgs.dispatch();
   } else if (eNotificationRequired())
     eNotify(
         new ENotificationImpl(
             this,
             Notification.SET,
             ProcessorDslPackage.META_STATEMENT__STATEMENT,
             newStatement,
             newStatement));
 }
示例#11
0
 /**
  *
  * <!-- begin-user-doc -->
  * <!-- end-user-doc -->
  *
  * @generated
  */
 public void setValue(InitUnitElementValue newValue) {
   if (newValue != value) {
     NotificationChain msgs = null;
     if (value != null)
       msgs =
           ((InternalEObject) value)
               .eInverseRemove(
                   this,
                   EOPPOSITE_FEATURE_BASE - CorePackage.INIT_UNIT_ELEMENT__VALUE,
                   null,
                   msgs);
     if (newValue != null)
       msgs =
           ((InternalEObject) newValue)
               .eInverseAdd(
                   this,
                   EOPPOSITE_FEATURE_BASE - CorePackage.INIT_UNIT_ELEMENT__VALUE,
                   null,
                   msgs);
     msgs = basicSetValue(newValue, msgs);
     if (msgs != null) msgs.dispatch();
   } else if (eNotificationRequired())
     eNotify(
         new ENotificationImpl(
             this, Notification.SET, CorePackage.INIT_UNIT_ELEMENT__VALUE, newValue, newValue));
 }
示例#12
0
 /**
  *
  * <!-- begin-user-doc -->
  * <!-- end-user-doc -->
  *
  * @generated
  */
 public void setSynchroni(ModalitySynchroni newSynchroni) {
   if (newSynchroni != synchroni) {
     NotificationChain msgs = null;
     if (synchroni != null)
       msgs =
           ((InternalEObject) synchroni)
               .eInverseRemove(
                   this,
                   EOPPOSITE_FEATURE_BASE - ModelPackage.MODALITY_INFO__SYNCHRONI,
                   null,
                   msgs);
     if (newSynchroni != null)
       msgs =
           ((InternalEObject) newSynchroni)
               .eInverseAdd(
                   this,
                   EOPPOSITE_FEATURE_BASE - ModelPackage.MODALITY_INFO__SYNCHRONI,
                   null,
                   msgs);
     msgs = basicSetSynchroni(newSynchroni, msgs);
     if (msgs != null) msgs.dispatch();
   } else if (eNotificationRequired())
     eNotify(
         new ENotificationImpl(
             this,
             Notification.SET,
             ModelPackage.MODALITY_INFO__SYNCHRONI,
             newSynchroni,
             newSynchroni));
 }
示例#13
0
 /**
  *
  * <!-- begin-user-doc -->
  * <!-- end-user-doc -->
  *
  * @generated
  */
 public void setAppropriateness(ModalityAppropriateness newAppropriateness) {
   if (newAppropriateness != appropriateness) {
     NotificationChain msgs = null;
     if (appropriateness != null)
       msgs =
           ((InternalEObject) appropriateness)
               .eInverseRemove(
                   this,
                   EOPPOSITE_FEATURE_BASE - ModelPackage.MODALITY_INFO__APPROPRIATENESS,
                   null,
                   msgs);
     if (newAppropriateness != null)
       msgs =
           ((InternalEObject) newAppropriateness)
               .eInverseAdd(
                   this,
                   EOPPOSITE_FEATURE_BASE - ModelPackage.MODALITY_INFO__APPROPRIATENESS,
                   null,
                   msgs);
     msgs = basicSetAppropriateness(newAppropriateness, msgs);
     if (msgs != null) msgs.dispatch();
   } else if (eNotificationRequired())
     eNotify(
         new ENotificationImpl(
             this,
             Notification.SET,
             ModelPackage.MODALITY_INFO__APPROPRIATENESS,
             newAppropriateness,
             newAppropriateness));
 }
示例#14
0
 /**
  *
  * <!-- begin-user-doc -->
  * <!-- end-user-doc -->
  *
  * @generated
  */
 public void setRightOperand(Expression newRightOperand) {
   if (newRightOperand != rightOperand) {
     NotificationChain msgs = null;
     if (rightOperand != null)
       msgs =
           ((InternalEObject) rightOperand)
               .eInverseRemove(
                   this,
                   EOPPOSITE_FEATURE_BASE - AltaricaPackage.DIVISION__RIGHT_OPERAND,
                   null,
                   msgs);
     if (newRightOperand != null)
       msgs =
           ((InternalEObject) newRightOperand)
               .eInverseAdd(
                   this,
                   EOPPOSITE_FEATURE_BASE - AltaricaPackage.DIVISION__RIGHT_OPERAND,
                   null,
                   msgs);
     msgs = basicSetRightOperand(newRightOperand, msgs);
     if (msgs != null) msgs.dispatch();
   } else if (eNotificationRequired())
     eNotify(
         new ENotificationImpl(
             this,
             Notification.SET,
             AltaricaPackage.DIVISION__RIGHT_OPERAND,
             newRightOperand,
             newRightOperand));
 }
 /**
  *
  * <!-- begin-user-doc -->
  * <!-- end-user-doc -->
  *
  * @generated
  */
 public void setMediatorFlow(MediatorFlow newMediatorFlow) {
   if (newMediatorFlow != mediatorFlow) {
     NotificationChain msgs = null;
     if (mediatorFlow != null)
       msgs =
           ((InternalEObject) mediatorFlow)
               .eInverseRemove(
                   this,
                   EOPPOSITE_FEATURE_BASE - EsbPackage.SEND_MEDIATOR__MEDIATOR_FLOW,
                   null,
                   msgs);
     if (newMediatorFlow != null)
       msgs =
           ((InternalEObject) newMediatorFlow)
               .eInverseAdd(
                   this,
                   EOPPOSITE_FEATURE_BASE - EsbPackage.SEND_MEDIATOR__MEDIATOR_FLOW,
                   null,
                   msgs);
     msgs = basicSetMediatorFlow(newMediatorFlow, msgs);
     if (msgs != null) msgs.dispatch();
   } else if (eNotificationRequired())
     eNotify(
         new ENotificationImpl(
             this,
             Notification.SET,
             EsbPackage.SEND_MEDIATOR__MEDIATOR_FLOW,
             newMediatorFlow,
             newMediatorFlow));
 }
 /**
  *
  * <!-- begin-user-doc -->
  * <!-- end-user-doc -->
  *
  * @generated
  */
 @Override
 public void setArgument(CGValuedElement newArgument) {
   if (newArgument != argument) {
     NotificationChain msgs = null;
     if (argument != null)
       msgs =
           ((InternalEObject) argument)
               .eInverseRemove(
                   this,
                   EOPPOSITE_FEATURE_BASE - CGModelPackage.CG_IS_EQUAL_EXP__ARGUMENT,
                   null,
                   msgs);
     if (newArgument != null)
       msgs =
           ((InternalEObject) newArgument)
               .eInverseAdd(
                   this,
                   EOPPOSITE_FEATURE_BASE - CGModelPackage.CG_IS_EQUAL_EXP__ARGUMENT,
                   null,
                   msgs);
     msgs = basicSetArgument(newArgument, msgs);
     if (msgs != null) msgs.dispatch();
   } else if (eNotificationRequired())
     eNotify(
         new ENotificationImpl(
             this,
             Notification.SET,
             CGModelPackage.CG_IS_EQUAL_EXP__ARGUMENT,
             newArgument,
             newArgument));
 }
示例#17
0
 /**
  *
  * <!-- begin-user-doc -->
  * <!-- end-user-doc -->
  *
  * @generated
  */
 public void setActual(QualifiedNameWithBinding newActual) {
   if (newActual != actual) {
     NotificationChain msgs = null;
     if (actual != null)
       msgs =
           ((InternalEObject) actual)
               .eInverseRemove(
                   this,
                   EOPPOSITE_FEATURE_BASE - AlfPackage.NAMED_TEMPLATE_BINDING__ACTUAL,
                   null,
                   msgs);
     if (newActual != null)
       msgs =
           ((InternalEObject) newActual)
               .eInverseAdd(
                   this,
                   EOPPOSITE_FEATURE_BASE - AlfPackage.NAMED_TEMPLATE_BINDING__ACTUAL,
                   null,
                   msgs);
     msgs = basicSetActual(newActual, msgs);
     if (msgs != null) msgs.dispatch();
   } else if (eNotificationRequired())
     eNotify(
         new ENotificationImpl(
             this,
             Notification.SET,
             AlfPackage.NAMED_TEMPLATE_BINDING__ACTUAL,
             newActual,
             newActual));
 }
 /**
  *
  * <!-- begin-user-doc -->
  * <!-- end-user-doc -->
  *
  * @generated
  */
 public void setLeftValueExpr(QueryValueExpression newLeftValueExpr) {
   if (newLeftValueExpr != leftValueExpr) {
     NotificationChain msgs = null;
     if (leftValueExpr != null)
       msgs =
           ((InternalEObject) leftValueExpr)
               .eInverseRemove(
                   this,
                   SQLQueryModelPackage.QUERY_VALUE_EXPRESSION__BASIC_LEFT,
                   QueryValueExpression.class,
                   msgs);
     if (newLeftValueExpr != null)
       msgs =
           ((InternalEObject) newLeftValueExpr)
               .eInverseAdd(
                   this,
                   SQLQueryModelPackage.QUERY_VALUE_EXPRESSION__BASIC_LEFT,
                   QueryValueExpression.class,
                   msgs);
     msgs = basicSetLeftValueExpr(newLeftValueExpr, msgs);
     if (msgs != null) msgs.dispatch();
   } else if (eNotificationRequired())
     eNotify(
         new ENotificationImpl(
             this,
             Notification.SET,
             SQLQueryModelPackage.PREDICATE_BASIC__LEFT_VALUE_EXPR,
             newLeftValueExpr,
             newLeftValueExpr));
 }
 /**
  *
  * <!-- begin-user-doc -->
  * <!-- end-user-doc -->
  *
  * @generated
  */
 public void setTarget(InputPin newTarget) {
   if (newTarget != target) {
     NotificationChain msgs = null;
     if (target != null)
       msgs =
           ((InternalEObject) target)
               .eInverseRemove(
                   this,
                   EOPPOSITE_FEATURE_BASE - UMLPackage.SEND_SIGNAL_ACTION__TARGET,
                   null,
                   msgs);
     if (newTarget != null)
       msgs =
           ((InternalEObject) newTarget)
               .eInverseAdd(
                   this,
                   EOPPOSITE_FEATURE_BASE - UMLPackage.SEND_SIGNAL_ACTION__TARGET,
                   null,
                   msgs);
     msgs = basicSetTarget(newTarget, msgs);
     if (msgs != null) msgs.dispatch();
   } else if (eNotificationRequired())
     eNotify(
         new ENotificationImpl(
             this, Notification.SET, UMLPackage.SEND_SIGNAL_ACTION__TARGET, newTarget, newTarget));
 }
 /**
  *
  * <!-- begin-user-doc -->
  * <!-- end-user-doc -->
  *
  * @generated
  */
 public void setMatchResourceSet(MatchResourceSet newMatchResourceSet) {
   if (newMatchResourceSet != matchResourceSet) {
     NotificationChain msgs = null;
     if (matchResourceSet != null)
       msgs =
           ((InternalEObject) matchResourceSet)
               .eInverseRemove(
                   this,
                   EOPPOSITE_FEATURE_BASE
                       - DiffPackage.COMPARISON_RESOURCE_SET_SNAPSHOT__MATCH_RESOURCE_SET,
                   null,
                   msgs);
     if (newMatchResourceSet != null)
       msgs =
           ((InternalEObject) newMatchResourceSet)
               .eInverseAdd(
                   this,
                   EOPPOSITE_FEATURE_BASE
                       - DiffPackage.COMPARISON_RESOURCE_SET_SNAPSHOT__MATCH_RESOURCE_SET,
                   null,
                   msgs);
     msgs = basicSetMatchResourceSet(newMatchResourceSet, msgs);
     if (msgs != null) msgs.dispatch();
   } else if (eNotificationRequired())
     eNotify(
         new ENotificationImpl(
             this,
             Notification.SET,
             DiffPackage.COMPARISON_RESOURCE_SET_SNAPSHOT__MATCH_RESOURCE_SET,
             newMatchResourceSet,
             newMatchResourceSet));
 }
 /**
  *
  * <!-- begin-user-doc -->
  * <!-- end-user-doc -->
  *
  * @generated
  */
 public void setPackage(de.goldschmiede.bodsl.businessObjectDsl.Package newPackage) {
   if (newPackage != package_) {
     NotificationChain msgs = null;
     if (package_ != null)
       msgs =
           ((InternalEObject) package_)
               .eInverseRemove(
                   this,
                   EOPPOSITE_FEATURE_BASE - BusinessObjectDslPackage.MODEL__PACKAGE,
                   null,
                   msgs);
     if (newPackage != null)
       msgs =
           ((InternalEObject) newPackage)
               .eInverseAdd(
                   this,
                   EOPPOSITE_FEATURE_BASE - BusinessObjectDslPackage.MODEL__PACKAGE,
                   null,
                   msgs);
     msgs = basicSetPackage(newPackage, msgs);
     if (msgs != null) msgs.dispatch();
   } else if (eNotificationRequired())
     eNotify(
         new ENotificationImpl(
             this,
             Notification.SET,
             BusinessObjectDslPackage.MODEL__PACKAGE,
             newPackage,
             newPackage));
 }
 /**
  *
  * <!-- begin-user-doc -->
  * <!-- end-user-doc -->
  *
  * @generated
  */
 public void setExpression(FeatureExpression newExpression) {
   if (newExpression != expression) {
     NotificationChain msgs = null;
     if (expression != null)
       msgs =
           ((InternalEObject) expression)
               .eInverseRemove(
                   this,
                   EOPPOSITE_FEATURE_BASE - ConstraintPackage.CONSTRAINT__EXPRESSION,
                   null,
                   msgs);
     if (newExpression != null)
       msgs =
           ((InternalEObject) newExpression)
               .eInverseAdd(
                   this,
                   EOPPOSITE_FEATURE_BASE - ConstraintPackage.CONSTRAINT__EXPRESSION,
                   null,
                   msgs);
     msgs = basicSetExpression(newExpression, msgs);
     if (msgs != null) msgs.dispatch();
   } else if (eNotificationRequired())
     eNotify(
         new ENotificationImpl(
             this,
             Notification.SET,
             ConstraintPackage.CONSTRAINT__EXPRESSION,
             newExpression,
             newExpression));
 }
示例#23
0
 /**
  *
  * <!-- begin-user-doc -->
  * <!-- end-user-doc -->
  *
  * @generated
  */
 public void setFormatSpecifier(FormatSpecifier newFormatSpecifier) {
   if (newFormatSpecifier != formatSpecifier) {
     NotificationChain msgs = null;
     if (formatSpecifier != null)
       msgs =
           ((InternalEObject) formatSpecifier)
               .eInverseRemove(
                   this,
                   EOPPOSITE_FEATURE_BASE - ComponentPackage.DIAL__FORMAT_SPECIFIER,
                   null,
                   msgs);
     if (newFormatSpecifier != null)
       msgs =
           ((InternalEObject) newFormatSpecifier)
               .eInverseAdd(
                   this,
                   EOPPOSITE_FEATURE_BASE - ComponentPackage.DIAL__FORMAT_SPECIFIER,
                   null,
                   msgs);
     msgs = basicSetFormatSpecifier(newFormatSpecifier, msgs);
     if (msgs != null) msgs.dispatch();
   } else if (eNotificationRequired())
     eNotify(
         new ENotificationImpl(
             this,
             Notification.SET,
             ComponentPackage.DIAL__FORMAT_SPECIFIER,
             newFormatSpecifier,
             newFormatSpecifier));
 }
 /**
  *
  * <!-- begin-user-doc -->
  * <!-- end-user-doc -->
  *
  * @generated
  */
 public void setRhs(Expression newRhs) {
   if (newRhs != rhs) {
     NotificationChain msgs = null;
     if (rhs != null)
       msgs =
           ((InternalEObject) rhs)
               .eInverseRemove(
                   this,
                   EOPPOSITE_FEATURE_BASE - ThingMLPackage.GREATER_EXPRESSION__RHS,
                   null,
                   msgs);
     if (newRhs != null)
       msgs =
           ((InternalEObject) newRhs)
               .eInverseAdd(
                   this,
                   EOPPOSITE_FEATURE_BASE - ThingMLPackage.GREATER_EXPRESSION__RHS,
                   null,
                   msgs);
     msgs = basicSetRhs(newRhs, msgs);
     if (msgs != null) msgs.dispatch();
   } else if (eNotificationRequired())
     eNotify(
         new ENotificationImpl(
             this, Notification.SET, ThingMLPackage.GREATER_EXPRESSION__RHS, newRhs, newRhs));
 }
示例#25
0
 /**
  *
  * <!-- begin-user-doc -->
  * <!-- end-user-doc -->
  *
  * @generated
  */
 @Override
 public void setJavaModel(JDTJavaModel newJavaModel) {
   if (newJavaModel != eInternalContainer()
       || (eContainerFeatureID() != JdtmmPackage.JDT_JAVA_PROJECT__JAVA_MODEL
           && newJavaModel != null)) {
     if (EcoreUtil.isAncestor(this, newJavaModel)) {
       throw new IllegalArgumentException("Recursive containment not allowed for " + toString());
     }
     NotificationChain msgs = null;
     if (eInternalContainer() != null) {
       msgs = eBasicRemoveFromContainer(msgs);
     }
     if (newJavaModel != null) {
       msgs =
           ((InternalEObject) newJavaModel)
               .eInverseAdd(
                   this, JdtmmPackage.JDT_JAVA_MODEL__JAVA_PROJECT, JDTJavaModel.class, msgs);
     }
     msgs = basicSetJavaModel(newJavaModel, msgs);
     if (msgs != null) {
       msgs.dispatch();
     }
   } else if (eNotificationRequired()) {
     eNotify(
         new ENotificationImpl(
             this,
             Notification.SET,
             JdtmmPackage.JDT_JAVA_PROJECT__JAVA_MODEL,
             newJavaModel,
             newJavaModel));
   }
 }
 /**
  *
  * <!-- begin-user-doc -->
  * <!-- end-user-doc -->
  *
  * @generated
  */
 public void setDynamicReceivingSequence(NamespacedProperty newDynamicReceivingSequence) {
   if (newDynamicReceivingSequence != dynamicReceivingSequence) {
     NotificationChain msgs = null;
     if (dynamicReceivingSequence != null)
       msgs =
           ((InternalEObject) dynamicReceivingSequence)
               .eInverseRemove(
                   this,
                   EOPPOSITE_FEATURE_BASE - EsbPackage.SEND_MEDIATOR__DYNAMIC_RECEIVING_SEQUENCE,
                   null,
                   msgs);
     if (newDynamicReceivingSequence != null)
       msgs =
           ((InternalEObject) newDynamicReceivingSequence)
               .eInverseAdd(
                   this,
                   EOPPOSITE_FEATURE_BASE - EsbPackage.SEND_MEDIATOR__DYNAMIC_RECEIVING_SEQUENCE,
                   null,
                   msgs);
     msgs = basicSetDynamicReceivingSequence(newDynamicReceivingSequence, msgs);
     if (msgs != null) msgs.dispatch();
   } else if (eNotificationRequired())
     eNotify(
         new ENotificationImpl(
             this,
             Notification.SET,
             EsbPackage.SEND_MEDIATOR__DYNAMIC_RECEIVING_SEQUENCE,
             newDynamicReceivingSequence,
             newDynamicReceivingSequence));
 }
 /**
  *
  * <!-- begin-user-doc -->
  * <!-- end-user-doc -->
  *
  * @generated
  */
 public void setObjectPropertyExpression(ObjectPropertyExpression newObjectPropertyExpression) {
   if (newObjectPropertyExpression != objectPropertyExpression) {
     NotificationChain msgs = null;
     if (objectPropertyExpression != null)
       msgs =
           ((InternalEObject) objectPropertyExpression)
               .eInverseRemove(
                   this,
                   EOPPOSITE_FEATURE_BASE
                       - Owl2fsPackage.OBJECT_PROPERTY_ATOM__OBJECT_PROPERTY_EXPRESSION,
                   null,
                   msgs);
     if (newObjectPropertyExpression != null)
       msgs =
           ((InternalEObject) newObjectPropertyExpression)
               .eInverseAdd(
                   this,
                   EOPPOSITE_FEATURE_BASE
                       - Owl2fsPackage.OBJECT_PROPERTY_ATOM__OBJECT_PROPERTY_EXPRESSION,
                   null,
                   msgs);
     msgs = basicSetObjectPropertyExpression(newObjectPropertyExpression, msgs);
     if (msgs != null) msgs.dispatch();
   } else if (eNotificationRequired())
     eNotify(
         new ENotificationImpl(
             this,
             Notification.SET,
             Owl2fsPackage.OBJECT_PROPERTY_ATOM__OBJECT_PROPERTY_EXPRESSION,
             newObjectPropertyExpression,
             newObjectPropertyExpression));
 }
 /**
  *
  * <!-- begin-user-doc -->
  * <!-- end-user-doc -->
  *
  * @generated
  */
 public void setEndpointOutputConnector(
     SendMediatorEndpointOutputConnector newEndpointOutputConnector) {
   if (newEndpointOutputConnector != endpointOutputConnector) {
     NotificationChain msgs = null;
     if (endpointOutputConnector != null)
       msgs =
           ((InternalEObject) endpointOutputConnector)
               .eInverseRemove(
                   this,
                   EOPPOSITE_FEATURE_BASE - EsbPackage.SEND_MEDIATOR__ENDPOINT_OUTPUT_CONNECTOR,
                   null,
                   msgs);
     if (newEndpointOutputConnector != null)
       msgs =
           ((InternalEObject) newEndpointOutputConnector)
               .eInverseAdd(
                   this,
                   EOPPOSITE_FEATURE_BASE - EsbPackage.SEND_MEDIATOR__ENDPOINT_OUTPUT_CONNECTOR,
                   null,
                   msgs);
     msgs = basicSetEndpointOutputConnector(newEndpointOutputConnector, msgs);
     if (msgs != null) msgs.dispatch();
   } else if (eNotificationRequired())
     eNotify(
         new ENotificationImpl(
             this,
             Notification.SET,
             EsbPackage.SEND_MEDIATOR__ENDPOINT_OUTPUT_CONNECTOR,
             newEndpointOutputConnector,
             newEndpointOutputConnector));
 }
示例#29
0
 /**
  *
  * <!-- begin-user-doc -->
  * <!-- end-user-doc -->
  *
  * @generated
  */
 public void setNextValue(LabelValue newNextValue) {
   if (newNextValue != nextValue) {
     NotificationChain msgs = null;
     if (nextValue != null)
       msgs =
           ((InternalEObject) nextValue)
               .eInverseRemove(
                   this,
                   EOPPOSITE_FEATURE_BASE - TransportPackage.LOAD_UNLOAD_EDGE_LABEL__NEXT_VALUE,
                   null,
                   msgs);
     if (newNextValue != null)
       msgs =
           ((InternalEObject) newNextValue)
               .eInverseAdd(
                   this,
                   EOPPOSITE_FEATURE_BASE - TransportPackage.LOAD_UNLOAD_EDGE_LABEL__NEXT_VALUE,
                   null,
                   msgs);
     msgs = basicSetNextValue(newNextValue, msgs);
     if (msgs != null) msgs.dispatch();
   } else if (eNotificationRequired())
     eNotify(
         new ENotificationImpl(
             this,
             Notification.SET,
             TransportPackage.LOAD_UNLOAD_EDGE_LABEL__NEXT_VALUE,
             newNextValue,
             newNextValue));
 }
 /**
  *
  * <!-- begin-user-doc -->
  * <!-- end-user-doc -->
  *
  * @generated
  */
 public void setIfcNormalisedRatioMeasure(
     IfcNormalisedRatioMeasureType newIfcNormalisedRatioMeasure) {
   if (newIfcNormalisedRatioMeasure != ifcNormalisedRatioMeasure) {
     NotificationChain msgs = null;
     if (ifcNormalisedRatioMeasure != null)
       msgs =
           ((InternalEObject) ifcNormalisedRatioMeasure)
               .eInverseRemove(
                   this,
                   EOPPOSITE_FEATURE_BASE
                       - FinalPackage
                           .DIFFUSE_TRANSMISSION_COLOUR_TYPE__IFC_NORMALISED_RATIO_MEASURE,
                   null,
                   msgs);
     if (newIfcNormalisedRatioMeasure != null)
       msgs =
           ((InternalEObject) newIfcNormalisedRatioMeasure)
               .eInverseAdd(
                   this,
                   EOPPOSITE_FEATURE_BASE
                       - FinalPackage
                           .DIFFUSE_TRANSMISSION_COLOUR_TYPE__IFC_NORMALISED_RATIO_MEASURE,
                   null,
                   msgs);
     msgs = basicSetIfcNormalisedRatioMeasure(newIfcNormalisedRatioMeasure, msgs);
     if (msgs != null) msgs.dispatch();
   } else if (eNotificationRequired())
     eNotify(
         new ENotificationImpl(
             this,
             Notification.SET,
             FinalPackage.DIFFUSE_TRANSMISSION_COLOUR_TYPE__IFC_NORMALISED_RATIO_MEASURE,
             newIfcNormalisedRatioMeasure,
             newIfcNormalisedRatioMeasure));
 }