/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public void setPresence(Presence newPresence) { if (newPresence != presence) { NotificationChain msgs = null; if (presence != null) msgs = ((InternalEObject)presence).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - DatatypePackage.PROPERTY__PRESENCE, null, msgs); if (newPresence != null) msgs = ((InternalEObject)newPresence).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - DatatypePackage.PROPERTY__PRESENCE, null, msgs); msgs = basicSetPresence(newPresence, msgs); if (msgs != null) msgs.dispatch(); } else if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, DatatypePackage.PROPERTY__PRESENCE, newPresence, newPresence)); }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public void setPresence(Presence newPresence) { if (newPresence != presence) { NotificationChain msgs = null; if (presence != null) msgs = ((InternalEObject)presence).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - DatatypePackage.PROPERTY__PRESENCE, null, msgs); if (newPresence != null) msgs = ((InternalEObject)newPresence).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - DatatypePackage.PROPERTY__PRESENCE, null, msgs); msgs = basicSetPresence(newPresence, msgs); if (msgs != null) msgs.dispatch(); } else if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, DatatypePackage.PROPERTY__PRESENCE, newPresence, newPresence)); }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { switch (featureID) { case DatatypePackage.PROPERTY__PRESENCE: return basicSetPresence(null, msgs); case DatatypePackage.PROPERTY__CONSTRAINT_RULE: return basicSetConstraintRule(null, msgs); case DatatypePackage.PROPERTY__TYPE: return basicSetType(null, msgs); case DatatypePackage.PROPERTY__PROPERTY_ATTRIBUTES: return ((InternalEList<?>)getPropertyAttributes()).basicRemove(otherEnd, msgs); } return super.eInverseRemove(otherEnd, featureID, msgs); }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { switch (featureID) { case DatatypePackage.PROPERTY__PRESENCE: return basicSetPresence(null, msgs); case DatatypePackage.PROPERTY__CONSTRAINT_RULE: return basicSetConstraintRule(null, msgs); case DatatypePackage.PROPERTY__TYPE: return basicSetType(null, msgs); case DatatypePackage.PROPERTY__PROPERTY_ATTRIBUTES: return ((InternalEList<?>)getPropertyAttributes()).basicRemove(otherEnd, msgs); } return super.eInverseRemove(otherEnd, featureID, msgs); }