diff options
Diffstat (limited to 'plugins/org.eclipse.etrice.core.genmodel.fsm2/src-gen/org/eclipse/etrice/core/genmodel/fsm/fsmgen/impl/GraphContainerImpl.java')
-rw-r--r-- | plugins/org.eclipse.etrice.core.genmodel.fsm2/src-gen/org/eclipse/etrice/core/genmodel/fsm/fsmgen/impl/GraphContainerImpl.java | 238 |
1 files changed, 0 insertions, 238 deletions
diff --git a/plugins/org.eclipse.etrice.core.genmodel.fsm2/src-gen/org/eclipse/etrice/core/genmodel/fsm/fsmgen/impl/GraphContainerImpl.java b/plugins/org.eclipse.etrice.core.genmodel.fsm2/src-gen/org/eclipse/etrice/core/genmodel/fsm/fsmgen/impl/GraphContainerImpl.java deleted file mode 100644 index b33af29c1..000000000 --- a/plugins/org.eclipse.etrice.core.genmodel.fsm2/src-gen/org/eclipse/etrice/core/genmodel/fsm/fsmgen/impl/GraphContainerImpl.java +++ /dev/null @@ -1,238 +0,0 @@ -/** - */ -package org.eclipse.etrice.core.genmodel.fsm.fsmgen.impl; - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.notify.NotificationChain; - -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; - -import org.eclipse.etrice.core.fsm.fSM.ModelComponent; - -import org.eclipse.etrice.core.genmodel.fsm.fsmgen.FsmGenPackage; -import org.eclipse.etrice.core.genmodel.fsm.fsmgen.Graph; -import org.eclipse.etrice.core.genmodel.fsm.fsmgen.GraphContainer; - -/** - * <!-- begin-user-doc --> - * An implementation of the model object '<em><b>Graph Container</b></em>'. - * <!-- end-user-doc --> - * <p> - * The following features are implemented: - * </p> - * <ul> - * <li>{@link org.eclipse.etrice.core.genmodel.fsm.fsmgen.impl.GraphContainerImpl#getGraph <em>Graph</em>}</li> - * <li>{@link org.eclipse.etrice.core.genmodel.fsm.fsmgen.impl.GraphContainerImpl#getComponent <em>Component</em>}</li> - * </ul> - * - * @generated - */ -public class GraphContainerImpl extends MinimalEObjectImpl.Container implements GraphContainer { - /** - * The cached value of the '{@link #getGraph() <em>Graph</em>}' containment reference. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getGraph() - * @generated - * @ordered - */ - protected Graph graph; - - /** - * The cached value of the '{@link #getComponent() <em>Component</em>}' reference. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getComponent() - * @generated - * @ordered - */ - protected ModelComponent component; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected GraphContainerImpl() { - super(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - protected EClass eStaticClass() { - return FsmGenPackage.Literals.GRAPH_CONTAINER; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Graph getGraph() { - return graph; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain basicSetGraph(Graph newGraph, NotificationChain msgs) { - Graph oldGraph = graph; - graph = newGraph; - if (eNotificationRequired()) { - ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, FsmGenPackage.GRAPH_CONTAINER__GRAPH, oldGraph, newGraph); - if (msgs == null) msgs = notification; else msgs.add(notification); - } - return msgs; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setGraph(Graph newGraph) { - if (newGraph != graph) { - NotificationChain msgs = null; - if (graph != null) - msgs = ((InternalEObject)graph).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - FsmGenPackage.GRAPH_CONTAINER__GRAPH, null, msgs); - if (newGraph != null) - msgs = ((InternalEObject)newGraph).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - FsmGenPackage.GRAPH_CONTAINER__GRAPH, null, msgs); - msgs = basicSetGraph(newGraph, msgs); - if (msgs != null) msgs.dispatch(); - } - else if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, FsmGenPackage.GRAPH_CONTAINER__GRAPH, newGraph, newGraph)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public ModelComponent getComponent() { - if (component != null && component.eIsProxy()) { - InternalEObject oldComponent = (InternalEObject)component; - component = (ModelComponent)eResolveProxy(oldComponent); - if (component != oldComponent) { - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.RESOLVE, FsmGenPackage.GRAPH_CONTAINER__COMPONENT, oldComponent, component)); - } - } - return component; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public ModelComponent basicGetComponent() { - return component; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setComponent(ModelComponent newComponent) { - ModelComponent oldComponent = component; - component = newComponent; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, FsmGenPackage.GRAPH_CONTAINER__COMPONENT, oldComponent, component)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { - switch (featureID) { - case FsmGenPackage.GRAPH_CONTAINER__GRAPH: - return basicSetGraph(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 FsmGenPackage.GRAPH_CONTAINER__GRAPH: - return getGraph(); - case FsmGenPackage.GRAPH_CONTAINER__COMPONENT: - if (resolve) return getComponent(); - return basicGetComponent(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public void eSet(int featureID, Object newValue) { - switch (featureID) { - case FsmGenPackage.GRAPH_CONTAINER__GRAPH: - setGraph((Graph)newValue); - return; - case FsmGenPackage.GRAPH_CONTAINER__COMPONENT: - setComponent((ModelComponent)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public void eUnset(int featureID) { - switch (featureID) { - case FsmGenPackage.GRAPH_CONTAINER__GRAPH: - setGraph((Graph)null); - return; - case FsmGenPackage.GRAPH_CONTAINER__COMPONENT: - setComponent((ModelComponent)null); - return; - } - super.eUnset(featureID); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public boolean eIsSet(int featureID) { - switch (featureID) { - case FsmGenPackage.GRAPH_CONTAINER__GRAPH: - return graph != null; - case FsmGenPackage.GRAPH_CONTAINER__COMPONENT: - return component != null; - } - return super.eIsSet(featureID); - } - -} //GraphContainerImpl |