/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public void setEFactoryInstance(EFactory newEFactoryInstance) { if (newEFactoryInstance != eFactoryInstance) { NotificationChain msgs = null; if (eFactoryInstance != null) msgs = ((InternalEObject)eFactoryInstance).eInverseRemove(this, EcorePackage.EFACTORY__EPACKAGE, EFactory.class, msgs); if (newEFactoryInstance != null) msgs = ((InternalEObject)newEFactoryInstance).eInverseAdd(this, EcorePackage.EFACTORY__EPACKAGE, EFactory.class, msgs); msgs = basicSetEFactoryInstance(newEFactoryInstance, msgs); if (msgs != null) msgs.dispatch(); } else if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, EcorePackage.EPACKAGE__EFACTORY_INSTANCE, newEFactoryInstance, newEFactoryInstance)); }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public void setEFactoryInstance(EFactory newEFactoryInstance) { if (newEFactoryInstance != eFactoryInstance) { NotificationChain msgs = null; if (eFactoryInstance != null) msgs = ((InternalEObject)eFactoryInstance).eInverseRemove(this, EcorePackage.EFACTORY__EPACKAGE, EFactory.class, msgs); if (newEFactoryInstance != null) msgs = ((InternalEObject)newEFactoryInstance).eInverseAdd(this, EcorePackage.EFACTORY__EPACKAGE, EFactory.class, msgs); msgs = basicSetEFactoryInstance(newEFactoryInstance, msgs); if (msgs != null) msgs.dispatch(); } else if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, EcorePackage.EPACKAGE__EFACTORY_INSTANCE, newEFactoryInstance, newEFactoryInstance)); }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { switch (featureID) { case EcorePackage.EPACKAGE__EANNOTATIONS: return ((InternalEList<?>)getEAnnotations()).basicRemove(otherEnd, msgs); case EcorePackage.EPACKAGE__EFACTORY_INSTANCE: return basicSetEFactoryInstance(null, msgs); case EcorePackage.EPACKAGE__ECLASSIFIERS: return ((InternalEList<?>)getEClassifiers()).basicRemove(otherEnd, msgs); case EcorePackage.EPACKAGE__ESUBPACKAGES: return ((InternalEList<?>)getESubpackages()).basicRemove(otherEnd, msgs); case EcorePackage.EPACKAGE__ESUPER_PACKAGE: return eBasicSetContainer(null, EcorePackage.EPACKAGE__ESUPER_PACKAGE, msgs); } return eDynamicInverseRemove(otherEnd, featureID, msgs); }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { switch (featureID) { case EcorePackage.EPACKAGE__EANNOTATIONS: return ((InternalEList<?>)getEAnnotations()).basicRemove(otherEnd, msgs); case EcorePackage.EPACKAGE__EFACTORY_INSTANCE: return basicSetEFactoryInstance(null, msgs); case EcorePackage.EPACKAGE__ECLASSIFIERS: return ((InternalEList<?>)getEClassifiers()).basicRemove(otherEnd, msgs); case EcorePackage.EPACKAGE__ESUBPACKAGES: return ((InternalEList<?>)getESubpackages()).basicRemove(otherEnd, msgs); case EcorePackage.EPACKAGE__ESUPER_PACKAGE: return eBasicSetContainer(null, EcorePackage.EPACKAGE__ESUPER_PACKAGE, msgs); } return eDynamicInverseRemove(otherEnd, featureID, msgs); }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @SuppressWarnings("unchecked") @Override public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) { switch (featureID) { case EcorePackage.EPACKAGE__EANNOTATIONS: return ((InternalEList<InternalEObject>)(InternalEList<?>)getEAnnotations()).basicAdd(otherEnd, msgs); case EcorePackage.EPACKAGE__EFACTORY_INSTANCE: if (eFactoryInstance != null) msgs = ((InternalEObject)eFactoryInstance).eInverseRemove(this, EcorePackage.EFACTORY__EPACKAGE, EFactory.class, msgs); return basicSetEFactoryInstance((EFactory)otherEnd, msgs); case EcorePackage.EPACKAGE__ECLASSIFIERS: return ((InternalEList<InternalEObject>)(InternalEList<?>)getEClassifiers()).basicAdd(otherEnd, msgs); case EcorePackage.EPACKAGE__ESUBPACKAGES: return ((InternalEList<InternalEObject>)(InternalEList<?>)getESubpackages()).basicAdd(otherEnd, msgs); case EcorePackage.EPACKAGE__ESUPER_PACKAGE: if (eInternalContainer() != null) msgs = eBasicRemoveFromContainer(msgs); return eBasicSetContainer(otherEnd, EcorePackage.EPACKAGE__ESUPER_PACKAGE, msgs); } return eDynamicInverseAdd(otherEnd, featureID, msgs); }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @SuppressWarnings("unchecked") @Override public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) { switch (featureID) { case EcorePackage.EPACKAGE__EANNOTATIONS: return ((InternalEList<InternalEObject>)(InternalEList<?>)getEAnnotations()).basicAdd(otherEnd, msgs); case EcorePackage.EPACKAGE__EFACTORY_INSTANCE: if (eFactoryInstance != null) msgs = ((InternalEObject)eFactoryInstance).eInverseRemove(this, EcorePackage.EFACTORY__EPACKAGE, EFactory.class, msgs); return basicSetEFactoryInstance((EFactory)otherEnd, msgs); case EcorePackage.EPACKAGE__ECLASSIFIERS: return ((InternalEList<InternalEObject>)(InternalEList<?>)getEClassifiers()).basicAdd(otherEnd, msgs); case EcorePackage.EPACKAGE__ESUBPACKAGES: return ((InternalEList<InternalEObject>)(InternalEList<?>)getESubpackages()).basicAdd(otherEnd, msgs); case EcorePackage.EPACKAGE__ESUPER_PACKAGE: if (eInternalContainer() != null) msgs = eBasicRemoveFromContainer(msgs); return eBasicSetContainer(otherEnd, EcorePackage.EPACKAGE__ESUPER_PACKAGE, msgs); } return eDynamicInverseAdd(otherEnd, featureID, msgs); }