Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/infrastructure/impl/HardwarePortConnectorInstanceRefImpl.java')
-rw-r--r--extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/infrastructure/impl/HardwarePortConnectorInstanceRefImpl.java240
1 files changed, 0 insertions, 240 deletions
diff --git a/extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/infrastructure/impl/HardwarePortConnectorInstanceRefImpl.java b/extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/infrastructure/impl/HardwarePortConnectorInstanceRefImpl.java
deleted file mode 100644
index 8937a5315be..00000000000
--- a/extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/infrastructure/impl/HardwarePortConnectorInstanceRefImpl.java
+++ /dev/null
@@ -1,240 +0,0 @@
-/**
- */
-package org.eclipse.papyrus.eastadl.infrastructure.impl;
-
-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.papyrus.eastadl.infrastructure.HardwarePortConnectorInstanceRef;
-import org.eclipse.papyrus.eastadl.infrastructure.InfrastructurePackage;
-import org.eclipse.papyrus.eastadl.structure.hardwaremodeling.HardwareComponentPrototype;
-import org.eclipse.papyrus.eastadl.structure.hardwaremodeling.HardwarePort;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>Hardware Port Connector Instance Ref</b></em>'.
- * <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * <ul>
- * <li>{@link org.eclipse.papyrus.eastadl.infrastructure.impl.HardwarePortConnectorInstanceRefImpl#getHardwarePort <em>Hardware Port</em>}</li>
- * <li>{@link org.eclipse.papyrus.eastadl.infrastructure.impl.HardwarePortConnectorInstanceRefImpl#getHardwareComponentPrototype <em>Hardware Component Prototype</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public class HardwarePortConnectorInstanceRefImpl extends InstanceRefImpl implements HardwarePortConnectorInstanceRef {
- /**
- * The cached value of the '{@link #getHardwarePort() <em>Hardware Port</em>}' reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getHardwarePort()
- * @generated
- * @ordered
- */
- protected HardwarePort hardwarePort;
-
- /**
- * The cached value of the '{@link #getHardwareComponentPrototype() <em>Hardware Component Prototype</em>}' reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getHardwareComponentPrototype()
- * @generated
- * @ordered
- */
- protected HardwareComponentPrototype hardwareComponentPrototype;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- protected HardwarePortConnectorInstanceRefImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected EClass eStaticClass() {
- return InfrastructurePackage.Literals.HARDWARE_PORT_CONNECTOR_INSTANCE_REF;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public HardwarePort getHardwarePort() {
- if (hardwarePort != null && hardwarePort.eIsProxy()) {
- InternalEObject oldHardwarePort = (InternalEObject) hardwarePort;
- hardwarePort = (HardwarePort) eResolveProxy(oldHardwarePort);
- if (hardwarePort != oldHardwarePort) {
- if (eNotificationRequired()) {
- eNotify(new ENotificationImpl(this, Notification.RESOLVE, InfrastructurePackage.HARDWARE_PORT_CONNECTOR_INSTANCE_REF__HARDWARE_PORT, oldHardwarePort, hardwarePort));
- }
- }
- }
- return hardwarePort;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public HardwarePort basicGetHardwarePort() {
- return hardwarePort;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void setHardwarePort(HardwarePort newHardwarePort) {
- HardwarePort oldHardwarePort = hardwarePort;
- hardwarePort = newHardwarePort;
- if (eNotificationRequired()) {
- eNotify(new ENotificationImpl(this, Notification.SET, InfrastructurePackage.HARDWARE_PORT_CONNECTOR_INSTANCE_REF__HARDWARE_PORT, oldHardwarePort, hardwarePort));
- }
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public HardwareComponentPrototype getHardwareComponentPrototype() {
- if (hardwareComponentPrototype != null && hardwareComponentPrototype.eIsProxy()) {
- InternalEObject oldHardwareComponentPrototype = (InternalEObject) hardwareComponentPrototype;
- hardwareComponentPrototype = (HardwareComponentPrototype) eResolveProxy(oldHardwareComponentPrototype);
- if (hardwareComponentPrototype != oldHardwareComponentPrototype) {
- if (eNotificationRequired()) {
- eNotify(new ENotificationImpl(this, Notification.RESOLVE, InfrastructurePackage.HARDWARE_PORT_CONNECTOR_INSTANCE_REF__HARDWARE_COMPONENT_PROTOTYPE, oldHardwareComponentPrototype, hardwareComponentPrototype));
- }
- }
- }
- return hardwareComponentPrototype;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public HardwareComponentPrototype basicGetHardwareComponentPrototype() {
- return hardwareComponentPrototype;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void setHardwareComponentPrototype(HardwareComponentPrototype newHardwareComponentPrototype) {
- HardwareComponentPrototype oldHardwareComponentPrototype = hardwareComponentPrototype;
- hardwareComponentPrototype = newHardwareComponentPrototype;
- if (eNotificationRequired()) {
- eNotify(new ENotificationImpl(this, Notification.SET, InfrastructurePackage.HARDWARE_PORT_CONNECTOR_INSTANCE_REF__HARDWARE_COMPONENT_PROTOTYPE, oldHardwareComponentPrototype, hardwareComponentPrototype));
- }
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType) {
- switch (featureID) {
- case InfrastructurePackage.HARDWARE_PORT_CONNECTOR_INSTANCE_REF__HARDWARE_PORT:
- if (resolve) {
- return getHardwarePort();
- }
- return basicGetHardwarePort();
- case InfrastructurePackage.HARDWARE_PORT_CONNECTOR_INSTANCE_REF__HARDWARE_COMPONENT_PROTOTYPE:
- if (resolve) {
- return getHardwareComponentPrototype();
- }
- return basicGetHardwareComponentPrototype();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eSet(int featureID, Object newValue) {
- switch (featureID) {
- case InfrastructurePackage.HARDWARE_PORT_CONNECTOR_INSTANCE_REF__HARDWARE_PORT:
- setHardwarePort((HardwarePort) newValue);
- return;
- case InfrastructurePackage.HARDWARE_PORT_CONNECTOR_INSTANCE_REF__HARDWARE_COMPONENT_PROTOTYPE:
- setHardwareComponentPrototype((HardwareComponentPrototype) newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eUnset(int featureID) {
- switch (featureID) {
- case InfrastructurePackage.HARDWARE_PORT_CONNECTOR_INSTANCE_REF__HARDWARE_PORT:
- setHardwarePort((HardwarePort) null);
- return;
- case InfrastructurePackage.HARDWARE_PORT_CONNECTOR_INSTANCE_REF__HARDWARE_COMPONENT_PROTOTYPE:
- setHardwareComponentPrototype((HardwareComponentPrototype) null);
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID) {
- switch (featureID) {
- case InfrastructurePackage.HARDWARE_PORT_CONNECTOR_INSTANCE_REF__HARDWARE_PORT:
- return hardwarePort != null;
- case InfrastructurePackage.HARDWARE_PORT_CONNECTOR_INSTANCE_REF__HARDWARE_COMPONENT_PROTOTYPE:
- return hardwareComponentPrototype != null;
- }
- return super.eIsSet(featureID);
- }
-
-} // HardwarePortConnectorInstanceRefImpl

Back to the top