/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public PathExpressionHead createPathExpressionHead() { PathExpressionHeadImpl pathExpressionHead = new PathExpressionHeadImpl(); return pathExpressionHead; }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { switch (featureID) { case PatternLanguagePackage.PATH_EXPRESSION_HEAD__SRC: return basicSetSrc(null, msgs); case PatternLanguagePackage.PATH_EXPRESSION_HEAD__DST: return basicSetDst(null, msgs); } return super.eInverseRemove(otherEnd, featureID, msgs); }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public Object eGet(int featureID, boolean resolve, boolean coreType) { switch (featureID) { case PatternLanguagePackage.PATH_EXPRESSION_HEAD__SRC: return getSrc(); case PatternLanguagePackage.PATH_EXPRESSION_HEAD__DST: return getDst(); } return super.eGet(featureID, resolve, coreType); }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public void eSet(int featureID, Object newValue) { switch (featureID) { case PatternLanguagePackage.PATH_EXPRESSION_HEAD__SRC: setSrc((VariableReference)newValue); return; case PatternLanguagePackage.PATH_EXPRESSION_HEAD__DST: setDst((ValueReference)newValue); return; } super.eSet(featureID, newValue); }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public void setSrc(VariableReference newSrc) { if (newSrc != src) { NotificationChain msgs = null; if (src != null) msgs = ((InternalEObject)src).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - PatternLanguagePackage.PATH_EXPRESSION_HEAD__SRC, null, msgs); if (newSrc != null) msgs = ((InternalEObject)newSrc).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - PatternLanguagePackage.PATH_EXPRESSION_HEAD__SRC, null, msgs); msgs = basicSetSrc(newSrc, msgs); if (msgs != null) msgs.dispatch(); } else if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, PatternLanguagePackage.PATH_EXPRESSION_HEAD__SRC, newSrc, newSrc)); }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public void setDst(ValueReference newDst) { if (newDst != dst) { NotificationChain msgs = null; if (dst != null) msgs = ((InternalEObject)dst).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - PatternLanguagePackage.PATH_EXPRESSION_HEAD__DST, null, msgs); if (newDst != null) msgs = ((InternalEObject)newDst).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - PatternLanguagePackage.PATH_EXPRESSION_HEAD__DST, null, msgs); msgs = basicSetDst(newDst, msgs); if (msgs != null) msgs.dispatch(); } else if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, PatternLanguagePackage.PATH_EXPRESSION_HEAD__DST, newDst, newDst)); }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public NotificationChain basicSetDst(ValueReference newDst, NotificationChain msgs) { ValueReference oldDst = dst; dst = newDst; if (eNotificationRequired()) { ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, PatternLanguagePackage.PATH_EXPRESSION_HEAD__DST, oldDst, newDst); if (msgs == null) msgs = notification; else msgs.add(notification); } return msgs; }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public void eUnset(int featureID) { switch (featureID) { case PatternLanguagePackage.PATH_EXPRESSION_HEAD__SRC: setSrc((VariableReference)null); return; case PatternLanguagePackage.PATH_EXPRESSION_HEAD__DST: setDst((ValueReference)null); return; } super.eUnset(featureID); }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public NotificationChain basicSetSrc(VariableReference newSrc, NotificationChain msgs) { VariableReference oldSrc = src; src = newSrc; if (eNotificationRequired()) { ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, PatternLanguagePackage.PATH_EXPRESSION_HEAD__SRC, oldSrc, newSrc); if (msgs == null) msgs = notification; else msgs.add(notification); } return msgs; }