/** */ package ca.mcgill.ecse.dslreasoner.standalone.test.fam.impl; import ca.mcgill.ecse.dslreasoner.standalone.test.fam.FunctionalOutput; import ca.mcgill.ecse.dslreasoner.standalone.test.fam.InformationLink; import ca.mcgill.ecse.dslreasoner.standalone.test.fam.famPackage; import java.util.Collection; import org.eclipse.emf.common.notify.NotificationChain; import org.eclipse.emf.common.util.EList; import org.eclipse.emf.ecore.EClass; import org.eclipse.emf.ecore.InternalEObject; import org.eclipse.emf.ecore.util.EObjectContainmentWithInverseEList; import org.eclipse.emf.ecore.util.InternalEList; /** * * An implementation of the model object 'Functional Output'. * *

* The following features are implemented: *

* * * @generated */ public class FunctionalOutputImpl extends FunctionalDataImpl implements FunctionalOutput { /** * The cached value of the '{@link #getOutgoingLinks() Outgoing Links}' containment reference list. * * * @see #getOutgoingLinks() * @generated * @ordered */ protected EList outgoingLinks; /** * * * @generated */ protected FunctionalOutputImpl() { super(); } /** * * * @generated */ @Override protected EClass eStaticClass() { return famPackage.Literals.FUNCTIONAL_OUTPUT; } /** * * * @generated */ public EList getOutgoingLinks() { if (outgoingLinks == null) { outgoingLinks = new EObjectContainmentWithInverseEList(InformationLink.class, this, famPackage.FUNCTIONAL_OUTPUT__OUTGOING_LINKS, famPackage.INFORMATION_LINK__FROM); } return outgoingLinks; } /** * * * @generated */ @SuppressWarnings("unchecked") @Override public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) { switch (featureID) { case famPackage.FUNCTIONAL_OUTPUT__OUTGOING_LINKS: return ((InternalEList)(InternalEList)getOutgoingLinks()).basicAdd(otherEnd, msgs); } return super.eInverseAdd(otherEnd, featureID, msgs); } /** * * * @generated */ @Override public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { switch (featureID) { case famPackage.FUNCTIONAL_OUTPUT__OUTGOING_LINKS: return ((InternalEList)getOutgoingLinks()).basicRemove(otherEnd, msgs); } return super.eInverseRemove(otherEnd, featureID, msgs); } /** * * * @generated */ @Override public Object eGet(int featureID, boolean resolve, boolean coreType) { switch (featureID) { case famPackage.FUNCTIONAL_OUTPUT__OUTGOING_LINKS: return getOutgoingLinks(); } return super.eGet(featureID, resolve, coreType); } /** * * * @generated */ @SuppressWarnings("unchecked") @Override public void eSet(int featureID, Object newValue) { switch (featureID) { case famPackage.FUNCTIONAL_OUTPUT__OUTGOING_LINKS: getOutgoingLinks().clear(); getOutgoingLinks().addAll((Collection)newValue); return; } super.eSet(featureID, newValue); } /** * * * @generated */ @Override public void eUnset(int featureID) { switch (featureID) { case famPackage.FUNCTIONAL_OUTPUT__OUTGOING_LINKS: getOutgoingLinks().clear(); return; } super.eUnset(featureID); } /** * * * @generated */ @Override public boolean eIsSet(int featureID) { switch (featureID) { case famPackage.FUNCTIONAL_OUTPUT__OUTGOING_LINKS: return outgoingLinks != null && !outgoingLinks.isEmpty(); } return super.eIsSet(featureID); } } //FunctionalOutputImpl