/** */ package hu.bme.mit.inf.dslreasoner.logic.model.logiclanguage.impl; import hu.bme.mit.inf.dslreasoner.logic.model.logiclanguage.AggregatedParameterSubstitution; import hu.bme.mit.inf.dslreasoner.logic.model.logiclanguage.LogiclanguagePackage; import hu.bme.mit.inf.dslreasoner.logic.model.logiclanguage.Variable; import org.eclipse.emf.common.notify.Notification; import org.eclipse.emf.ecore.EClass; import org.eclipse.emf.ecore.InternalEObject; import org.eclipse.emf.ecore.impl.ENotificationImpl; import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; /** * * An implementation of the model object 'Aggregated Parameter Substitution'. * *

* The following features are implemented: *

* * * @generated */ public class AggregatedParameterSubstitutionImpl extends MinimalEObjectImpl.Container implements AggregatedParameterSubstitution { /** * The cached value of the '{@link #getVariable() Variable}' reference. * * * @see #getVariable() * @generated * @ordered */ protected Variable variable; /** * * * @generated */ protected AggregatedParameterSubstitutionImpl() { super(); } /** * * * @generated */ @Override protected EClass eStaticClass() { return LogiclanguagePackage.Literals.AGGREGATED_PARAMETER_SUBSTITUTION; } /** * * * @generated */ @Override public Variable getVariable() { if (variable != null && variable.eIsProxy()) { InternalEObject oldVariable = (InternalEObject)variable; variable = (Variable)eResolveProxy(oldVariable); if (variable != oldVariable) { if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.RESOLVE, LogiclanguagePackage.AGGREGATED_PARAMETER_SUBSTITUTION__VARIABLE, oldVariable, variable)); } } return variable; } /** * * * @generated */ public Variable basicGetVariable() { return variable; } /** * * * @generated */ @Override public void setVariable(Variable newVariable) { Variable oldVariable = variable; variable = newVariable; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, LogiclanguagePackage.AGGREGATED_PARAMETER_SUBSTITUTION__VARIABLE, oldVariable, variable)); } /** * * * @generated */ @Override public Object eGet(int featureID, boolean resolve, boolean coreType) { switch (featureID) { case LogiclanguagePackage.AGGREGATED_PARAMETER_SUBSTITUTION__VARIABLE: if (resolve) return getVariable(); return basicGetVariable(); } return super.eGet(featureID, resolve, coreType); } /** * * * @generated */ @Override public void eSet(int featureID, Object newValue) { switch (featureID) { case LogiclanguagePackage.AGGREGATED_PARAMETER_SUBSTITUTION__VARIABLE: setVariable((Variable)newValue); return; } super.eSet(featureID, newValue); } /** * * * @generated */ @Override public void eUnset(int featureID) { switch (featureID) { case LogiclanguagePackage.AGGREGATED_PARAMETER_SUBSTITUTION__VARIABLE: setVariable((Variable)null); return; } super.eUnset(featureID); } /** * * * @generated */ @Override public boolean eIsSet(int featureID) { switch (featureID) { case LogiclanguagePackage.AGGREGATED_PARAMETER_SUBSTITUTION__VARIABLE: return variable != null; } return super.eIsSet(featureID); } } //AggregatedParameterSubstitutionImpl