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.java92
1 files changed, 59 insertions, 33 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
index d1be45ccd04..e047c14ee82 100644
--- 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
@@ -18,8 +18,8 @@ import org.eclipse.papyrus.eastadl.structure.hardwaremodeling.HardwarePort;
* <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>
+ * <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>
*
@@ -30,6 +30,7 @@ public class HardwarePortConnectorInstanceRefImpl extends InstanceRefImpl implem
* The cached value of the '{@link #getHardwarePort() <em>Hardware Port</em>}' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @see #getHardwarePort()
* @generated
* @ordered
@@ -40,6 +41,7 @@ public class HardwarePortConnectorInstanceRefImpl extends InstanceRefImpl implem
* The cached value of the '{@link #getHardwareComponentPrototype() <em>Hardware Component Prototype</em>}' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @see #getHardwareComponentPrototype()
* @generated
* @ordered
@@ -49,6 +51,7 @@ public class HardwarePortConnectorInstanceRefImpl extends InstanceRefImpl implem
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected HardwarePortConnectorInstanceRefImpl() {
@@ -58,6 +61,7 @@ public class HardwarePortConnectorInstanceRefImpl extends InstanceRefImpl implem
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -68,15 +72,18 @@ public class HardwarePortConnectorInstanceRefImpl extends InstanceRefImpl implem
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
+ @Override
public HardwarePort getHardwarePort() {
if (hardwarePort != null && hardwarePort.eIsProxy()) {
- InternalEObject oldHardwarePort = (InternalEObject)hardwarePort;
- hardwarePort = (HardwarePort)eResolveProxy(oldHardwarePort);
+ InternalEObject oldHardwarePort = (InternalEObject) hardwarePort;
+ hardwarePort = (HardwarePort) eResolveProxy(oldHardwarePort);
if (hardwarePort != oldHardwarePort) {
- if (eNotificationRequired())
+ if (eNotificationRequired()) {
eNotify(new ENotificationImpl(this, Notification.RESOLVE, InfrastructurePackage.HARDWARE_PORT_CONNECTOR_INSTANCE_REF__HARDWARE_PORT, oldHardwarePort, hardwarePort));
+ }
}
}
return hardwarePort;
@@ -85,6 +92,7 @@ public class HardwarePortConnectorInstanceRefImpl extends InstanceRefImpl implem
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public HardwarePort basicGetHardwarePort() {
@@ -94,27 +102,33 @@ public class HardwarePortConnectorInstanceRefImpl extends InstanceRefImpl implem
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
+ @Override
public void setHardwarePort(HardwarePort newHardwarePort) {
HardwarePort oldHardwarePort = hardwarePort;
hardwarePort = newHardwarePort;
- if (eNotificationRequired())
+ 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);
+ InternalEObject oldHardwareComponentPrototype = (InternalEObject) hardwareComponentPrototype;
+ hardwareComponentPrototype = (HardwareComponentPrototype) eResolveProxy(oldHardwareComponentPrototype);
if (hardwareComponentPrototype != oldHardwareComponentPrototype) {
- if (eNotificationRequired())
+ if (eNotificationRequired()) {
eNotify(new ENotificationImpl(this, Notification.RESOLVE, InfrastructurePackage.HARDWARE_PORT_CONNECTOR_INSTANCE_REF__HARDWARE_COMPONENT_PROTOTYPE, oldHardwareComponentPrototype, hardwareComponentPrototype));
+ }
}
}
return hardwareComponentPrototype;
@@ -123,6 +137,7 @@ public class HardwarePortConnectorInstanceRefImpl extends InstanceRefImpl implem
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public HardwareComponentPrototype basicGetHardwareComponentPrototype() {
@@ -132,29 +147,37 @@ public class HardwarePortConnectorInstanceRefImpl extends InstanceRefImpl implem
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
+ @Override
public void setHardwareComponentPrototype(HardwareComponentPrototype newHardwareComponentPrototype) {
HardwareComponentPrototype oldHardwareComponentPrototype = hardwareComponentPrototype;
hardwareComponentPrototype = newHardwareComponentPrototype;
- if (eNotificationRequired())
+ 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();
+ 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);
}
@@ -162,17 +185,18 @@ public class HardwarePortConnectorInstanceRefImpl extends InstanceRefImpl implem
/**
* <!-- 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;
+ 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);
}
@@ -180,17 +204,18 @@ public class HardwarePortConnectorInstanceRefImpl extends InstanceRefImpl implem
/**
* <!-- 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;
+ 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);
}
@@ -198,17 +223,18 @@ public class HardwarePortConnectorInstanceRefImpl extends InstanceRefImpl implem
/**
* <!-- 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;
+ 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
+} // HardwarePortConnectorInstanceRefImpl

Back to the top