/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public void setEcoreOperation(EOperation newEcoreOperation) { EOperation oldEcoreOperation = ecoreOperation; ecoreOperation = newEcoreOperation; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, GenModelPackage.GEN_OPERATION__ECORE_OPERATION, oldEcoreOperation, ecoreOperation)); }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public void setEcoreOperation(EOperation newEcoreOperation) { EOperation oldEcoreOperation = ecoreOperation; ecoreOperation = newEcoreOperation; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, GenModelPackage.GEN_OPERATION__ECORE_OPERATION, oldEcoreOperation, ecoreOperation)); }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @since 2.14 * @generated */ public void setSuppressedVisibility(boolean newSuppressedVisibility) { boolean oldSuppressedVisibility = suppressedVisibility; suppressedVisibility = newSuppressedVisibility; boolean oldSuppressedVisibilityESet = suppressedVisibilityESet; suppressedVisibilityESet = true; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, GenModelPackage.GEN_OPERATION__SUPPRESSED_VISIBILITY, oldSuppressedVisibility, suppressedVisibility, !oldSuppressedVisibilityESet)); }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @since 2.14 * @generated */ public void unsetSuppressedVisibility() { boolean oldSuppressedVisibility = suppressedVisibility; boolean oldSuppressedVisibilityESet = suppressedVisibilityESet; suppressedVisibility = SUPPRESSED_VISIBILITY_EDEFAULT; suppressedVisibilityESet = false; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.UNSET, GenModelPackage.GEN_OPERATION__SUPPRESSED_VISIBILITY, oldSuppressedVisibility, SUPPRESSED_VISIBILITY_EDEFAULT, oldSuppressedVisibilityESet)); }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @since 2.14 * @generated */ public void setBody(String newBody) { String oldBody = body; body = newBody; boolean oldBodyESet = bodyESet; bodyESet = true; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, GenModelPackage.GEN_OPERATION__BODY, oldBody, body, !oldBodyESet)); }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @since 2.14 * @generated */ public void unsetBody() { String oldBody = body; boolean oldBodyESet = bodyESet; body = BODY_EDEFAULT; bodyESet = false; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.UNSET, GenModelPackage.GEN_OPERATION__BODY, oldBody, BODY_EDEFAULT, oldBodyESet)); }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EOperation getEcoreOperation() { if (ecoreOperation != null && ecoreOperation.eIsProxy()) { InternalEObject oldEcoreOperation = (InternalEObject)ecoreOperation; ecoreOperation = (EOperation)eResolveProxy(oldEcoreOperation); if (ecoreOperation != oldEcoreOperation) { if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.RESOLVE, GenModelPackage.GEN_OPERATION__ECORE_OPERATION, oldEcoreOperation, ecoreOperation)); } } return ecoreOperation; }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EOperation getEcoreOperation() { if (ecoreOperation != null && ecoreOperation.eIsProxy()) { InternalEObject oldEcoreOperation = (InternalEObject)ecoreOperation; ecoreOperation = (EOperation)eResolveProxy(oldEcoreOperation); if (ecoreOperation != oldEcoreOperation) { if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.RESOLVE, GenModelPackage.GEN_OPERATION__ECORE_OPERATION, oldEcoreOperation, ecoreOperation)); } } return ecoreOperation; }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public void setGenClass(GenClass newGenClass) { if (newGenClass != eInternalContainer() || (eContainerFeatureID != GenModelPackage.GEN_OPERATION__GEN_CLASS && newGenClass != null)) { if (EcoreUtil.isAncestor(this, newGenClass)) throw new IllegalArgumentException("Recursive containment not allowed for " + toString()); NotificationChain msgs = null; if (eInternalContainer() != null) msgs = eBasicRemoveFromContainer(msgs); if (newGenClass != null) msgs = ((InternalEObject)newGenClass).eInverseAdd(this, GenModelPackage.GEN_CLASS__GEN_OPERATIONS, GenClass.class, msgs); msgs = basicSetGenClass(newGenClass, msgs); if (msgs != null) msgs.dispatch(); } else if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, GenModelPackage.GEN_OPERATION__GEN_CLASS, newGenClass, newGenClass)); }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public void setGenClass(GenClass newGenClass) { if (newGenClass != eInternalContainer() || (eContainerFeatureID() != GenModelPackage.GEN_OPERATION__GEN_CLASS && newGenClass != null)) { if (EcoreUtil.isAncestor(this, newGenClass)) throw new IllegalArgumentException("Recursive containment not allowed for " + toString()); NotificationChain msgs = null; if (eInternalContainer() != null) msgs = eBasicRemoveFromContainer(msgs); if (newGenClass != null) msgs = ((InternalEObject)newGenClass).eInverseAdd(this, GenModelPackage.GEN_CLASS__GEN_OPERATIONS, GenClass.class, msgs); msgs = basicSetGenClass(newGenClass, msgs); if (msgs != null) msgs.dispatch(); } else if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, GenModelPackage.GEN_OPERATION__GEN_CLASS, newGenClass, newGenClass)); }