/** */ package satellite.impl; 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.impl.MinimalEObjectImpl; import org.eclipse.emf.ecore.util.EObjectContainmentEList; import org.eclipse.emf.ecore.util.InternalEList; import satellite.CommSubsystem; import satellite.CommunicatingElement; import satellite.SatellitePackage; /** * * An implementation of the model object 'Communicating Element'. * *

* The following features are implemented: *

* * * @generated */ public abstract class CommunicatingElementImpl extends MinimalEObjectImpl.Container implements CommunicatingElement { /** * The cached value of the '{@link #getCommSubsystem() Comm Subsystem}' containment reference list. * * * @see #getCommSubsystem() * @generated * @ordered */ protected EList commSubsystem; /** * * * @generated */ protected CommunicatingElementImpl() { super(); } /** * * * @generated */ @Override protected EClass eStaticClass() { return SatellitePackage.Literals.COMMUNICATING_ELEMENT; } /** * * * @generated */ @Override public EList getCommSubsystem() { if (commSubsystem == null) { commSubsystem = new EObjectContainmentEList(CommSubsystem.class, this, SatellitePackage.COMMUNICATING_ELEMENT__COMM_SUBSYSTEM); } return commSubsystem; } /** * * * @generated */ @Override public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { switch (featureID) { case SatellitePackage.COMMUNICATING_ELEMENT__COMM_SUBSYSTEM: return ((InternalEList) getCommSubsystem()).basicRemove(otherEnd, msgs); } return super.eInverseRemove(otherEnd, featureID, msgs); } /** * * * @generated */ @Override public Object eGet(int featureID, boolean resolve, boolean coreType) { switch (featureID) { case SatellitePackage.COMMUNICATING_ELEMENT__COMM_SUBSYSTEM: return getCommSubsystem(); } return super.eGet(featureID, resolve, coreType); } /** * * * @generated */ @SuppressWarnings("unchecked") @Override public void eSet(int featureID, Object newValue) { switch (featureID) { case SatellitePackage.COMMUNICATING_ELEMENT__COMM_SUBSYSTEM: getCommSubsystem().clear(); getCommSubsystem().addAll((Collection) newValue); return; } super.eSet(featureID, newValue); } /** * * * @generated */ @Override public void eUnset(int featureID) { switch (featureID) { case SatellitePackage.COMMUNICATING_ELEMENT__COMM_SUBSYSTEM: getCommSubsystem().clear(); return; } super.eUnset(featureID); } /** * * * @generated */ @Override public boolean eIsSet(int featureID) { switch (featureID) { case SatellitePackage.COMMUNICATING_ELEMENT__COMM_SUBSYSTEM: return commSubsystem != null && !commSubsystem.isEmpty(); } return super.eIsSet(featureID); } } //CommunicatingElementImpl