public InternalEObject getInstanceContainer(InternalEObject instance) { return instance.eInternalContainer(); }
public InternalEObject eInternalContainer() { return instance.eInternalContainer(); }
public InternalEObject getInstanceContainer(InternalEObject instance) { return instance.eInternalContainer(); }
public InternalEObject eInternalContainer() { return instance.eInternalContainer(); }
protected boolean isOrphan(EObject eObject) { return ((InternalEObject)eObject).eInternalContainer() == null && eObject.eResource() == null; }
protected boolean isOrphan(EObject eObject) { return ((InternalEObject)eObject).eInternalContainer() == null && eObject.eResource() == null; }
public boolean dynamicIsSet(InternalEObject owner, EStructuralFeature.Internal.DynamicValueHolder settings, int index) { int featureID = owner.eClass().getFeatureID(feature); return owner.eInternalContainer() != null && owner.eContainerFeatureID() == featureID; }
public boolean dynamicIsSet(InternalEObject owner, EStructuralFeature.Internal.DynamicValueHolder settings, int index) { int featureID = owner.eClass().getFeatureID(feature); return owner.eInternalContainer() != null && owner.eContainerFeatureID() == featureID; }
protected static EObject getContainingEObject(EObject eObject, EClass eClass, boolean resolve) { EObject containingEObject = null; for (EObject container = eObject; (containingEObject = resolve ? container.eContainer() : ((InternalEObject) container).eInternalContainer()) != null && !(eClass.isInstance(containingEObject));) { container = container.eContainer(); } return containingEObject; }
public Object dynamicGet(InternalEObject owner, EStructuralFeature.Internal.DynamicValueHolder settings, int index, boolean resolve, boolean coreType) { return owner.eContainmentFeature() == inverseFeature ? isResolveProxies() && resolve ? owner.eContainer() : owner.eInternalContainer() : null; }
public Object dynamicGet(InternalEObject owner, EStructuralFeature.Internal.DynamicValueHolder settings, int index, boolean resolve, boolean coreType) { return owner.eContainmentFeature() == inverseFeature ? isResolveProxies() && resolve ? owner.eContainer() : owner.eInternalContainer() : null; }
@Override public NotificationChain dynamicInverseAdd (InternalEObject owner, EStructuralFeature.Internal.DynamicValueHolder settings, int index, InternalEObject otherEnd, NotificationChain notifications) { if (owner.eInternalContainer() != null) { notifications = owner.eBasicRemoveFromContainer(notifications); } int featureID = owner.eClass().getFeatureID(feature); return owner.eBasicSetContainer(otherEnd, featureID, notifications); }
@Override public NotificationChain dynamicInverseAdd (InternalEObject owner, EStructuralFeature.Internal.DynamicValueHolder settings, int index, InternalEObject otherEnd, NotificationChain notifications) { if (owner.eInternalContainer() != null) { notifications = owner.eBasicRemoveFromContainer(notifications); } int featureID = owner.eClass().getFeatureID(feature); return owner.eBasicSetContainer(otherEnd, featureID, notifications); }
protected void writeTopAttributes(EObject top) { if (useEncodedAttributeStyle) { InternalEObject container = ((InternalEObject)top).eInternalContainer(); if (container != null) { EReference containmentReference = top.eContainmentFeature(); EReference containerReference = containmentReference.getEOpposite(); if (containerReference != null && !containerReference.isTransient()) { saveEObjectSingle(top, containerReference); } } } }
protected void writeTopAttributes(EObject top) { if (useEncodedAttributeStyle) { InternalEObject container = ((InternalEObject)top).eInternalContainer(); if (container != null) { EReference containmentReference = top.eContainmentFeature(); EReference containerReference = containmentReference.getEOpposite(); if (containerReference != null && !containerReference.isTransient()) { saveEObjectSingle(top, containerReference); } } } }
protected boolean writeTopElements(EObject top) { if (!useEncodedAttributeStyle) { InternalEObject container = ((InternalEObject)top).eInternalContainer(); if (container != null) { EReference containmentReference = top.eContainmentFeature(); EReference containerReference = containmentReference.getEOpposite(); if (containerReference != null && !containerReference.isTransient()) { saveHref(container, containerReference); return true; } } } return false; }
protected boolean writeTopElements(EObject top) { if (!useEncodedAttributeStyle) { InternalEObject container = ((InternalEObject)top).eInternalContainer(); if (container != null) { EReference containmentReference = top.eContainmentFeature(); EReference containerReference = containmentReference.getEOpposite(); if (containerReference != null && !containerReference.isTransient()) { saveHref(container, containerReference); return true; } } } return false; }
public void dynamicUnset(InternalEObject owner, EStructuralFeature.Internal.DynamicValueHolder settings, int index) { EObject eContainer = owner.eInternalContainer(); if (eContainer != null) { NotificationChain notifications = owner.eBasicRemoveFromContainer(null); int featureID = owner.eClass().getFeatureID(feature); notifications = owner.eBasicSetContainer(null, featureID, notifications); if (notifications != null) notifications.dispatch(); } else { if (owner.eNotificationRequired()) owner.eNotify(new ENotificationImpl(owner, Notification.SET, feature, null, null)); } }
public void dynamicUnset(InternalEObject owner, EStructuralFeature.Internal.DynamicValueHolder settings, int index) { EObject eContainer = owner.eInternalContainer(); if (eContainer != null) { NotificationChain notifications = owner.eBasicRemoveFromContainer(null); int featureID = owner.eClass().getFeatureID(feature); notifications = owner.eBasicSetContainer(null, featureID, notifications); if (notifications != null) notifications.dispatch(); } else { if (owner.eNotificationRequired()) owner.eNotify(new ENotificationImpl(owner, Notification.SET, feature, null, null)); } }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public Mask getGroupByMask() { if (groupByMask != null && groupByMask.eIsProxy()) { InternalEObject oldGroupByMask = (InternalEObject)groupByMask; groupByMask = (Mask)eResolveProxy(oldGroupByMask); if (groupByMask != oldGroupByMask) { InternalEObject newGroupByMask = (InternalEObject)groupByMask; NotificationChain msgs = oldGroupByMask.eInverseRemove(this, EOPPOSITE_FEATURE_BASE - RecipesPackage.SINGLE_COLUMN_AGGREGATOR_RECIPE__GROUP_BY_MASK, null, null); if (newGroupByMask.eInternalContainer() == null) { msgs = newGroupByMask.eInverseAdd(this, EOPPOSITE_FEATURE_BASE - RecipesPackage.SINGLE_COLUMN_AGGREGATOR_RECIPE__GROUP_BY_MASK, null, msgs); } if (msgs != null) msgs.dispatch(); if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.RESOLVE, RecipesPackage.SINGLE_COLUMN_AGGREGATOR_RECIPE__GROUP_BY_MASK, oldGroupByMask, groupByMask)); } } return groupByMask; }