All Downloads are FREE. Search and download functionalities are using the official Maven repository.

kieker.model.collection.impl.ConnectionsImpl Maven / Gradle / Ivy

The newest version!
/**
 */
package kieker.model.collection.impl;

import org.eclipse.emf.common.notify.NotificationChain;
import org.eclipse.emf.common.util.EMap;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.EStructuralFeature;
import org.eclipse.emf.ecore.InternalEObject;
import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
import org.eclipse.emf.ecore.util.EcoreEMap;
import org.eclipse.emf.ecore.util.InternalEList;

import kieker.model.collection.CollectionPackage;
import kieker.model.collection.Connections;
import kieker.model.collection.Coupling;
import kieker.model.collection.OperationCollection;

/**
 * 
 * An implementation of the model object 'Connections'.
 * 
 * 

* The following features are implemented: *

*
    *
  • {@link kieker.model.collection.impl.ConnectionsImpl#getConnections Connections}
  • *
* * @generated */ public class ConnectionsImpl extends MinimalEObjectImpl.Container implements Connections { /** * The cached value of the '{@link #getConnections() Connections}' map. * * * @see #getConnections() * @generated * @ordered */ protected EMap connections; /** * * * @generated */ protected ConnectionsImpl() { super(); } /** * * * @generated */ @Override protected EClass eStaticClass() { return CollectionPackage.Literals.CONNECTIONS; } /** * * * @generated */ @Override public EMap getConnections() { if (connections == null) { connections = new EcoreEMap(CollectionPackage.Literals.COUPLING_TO_OPERATION_MAP, CouplingToOperationMapImpl.class, this, CollectionPackage.CONNECTIONS__CONNECTIONS); } return connections; } /** * * * @generated */ @Override public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { switch (featureID) { case CollectionPackage.CONNECTIONS__CONNECTIONS: return ((InternalEList)getConnections()).basicRemove(otherEnd, msgs); } return super.eInverseRemove(otherEnd, featureID, msgs); } /** * * * @generated */ @Override public Object eGet(int featureID, boolean resolve, boolean coreType) { switch (featureID) { case CollectionPackage.CONNECTIONS__CONNECTIONS: if (coreType) return getConnections(); else return getConnections().map(); } return super.eGet(featureID, resolve, coreType); } /** * * * @generated */ @Override public void eSet(int featureID, Object newValue) { switch (featureID) { case CollectionPackage.CONNECTIONS__CONNECTIONS: ((EStructuralFeature.Setting)getConnections()).set(newValue); return; } super.eSet(featureID, newValue); } /** * * * @generated */ @Override public void eUnset(int featureID) { switch (featureID) { case CollectionPackage.CONNECTIONS__CONNECTIONS: getConnections().clear(); return; } super.eUnset(featureID); } /** * * * @generated */ @Override public boolean eIsSet(int featureID) { switch (featureID) { case CollectionPackage.CONNECTIONS__CONNECTIONS: return connections != null && !connections.isEmpty(); } return super.eIsSet(featureID); } } // ConnectionsImpl




© 2015 - 2024 Weber Informatics LLC | Privacy Policy