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/HardwareConnectorInstanceRefImpl.java')
-rw-r--r--extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/infrastructure/impl/HardwareConnectorInstanceRefImpl.java92
1 files changed, 59 insertions, 33 deletions
diff --git a/extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/infrastructure/impl/HardwareConnectorInstanceRefImpl.java b/extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/infrastructure/impl/HardwareConnectorInstanceRefImpl.java
index 0ffa8a49217..ae61f2f24a1 100644
--- a/extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/infrastructure/impl/HardwareConnectorInstanceRefImpl.java
+++ b/extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/infrastructure/impl/HardwareConnectorInstanceRefImpl.java
@@ -22,8 +22,8 @@ import org.eclipse.papyrus.eastadl.structure.hardwaremodeling.HardwarePin;
* <p>
* The following features are implemented:
* <ul>
- * <li>{@link org.eclipse.papyrus.eastadl.infrastructure.impl.HardwareConnectorInstanceRefImpl#getHardwarePin <em>Hardware Pin</em>}</li>
- * <li>{@link org.eclipse.papyrus.eastadl.infrastructure.impl.HardwareConnectorInstanceRefImpl#getHardwareComponentPrototype <em>Hardware Component Prototype</em>}</li>
+ * <li>{@link org.eclipse.papyrus.eastadl.infrastructure.impl.HardwareConnectorInstanceRefImpl#getHardwarePin <em>Hardware Pin</em>}</li>
+ * <li>{@link org.eclipse.papyrus.eastadl.infrastructure.impl.HardwareConnectorInstanceRefImpl#getHardwareComponentPrototype <em>Hardware Component Prototype</em>}</li>
* </ul>
* </p>
*
@@ -34,6 +34,7 @@ public class HardwareConnectorInstanceRefImpl extends InstanceRefImpl implements
* The cached value of the '{@link #getHardwarePin() <em>Hardware Pin</em>}' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @see #getHardwarePin()
* @generated
* @ordered
@@ -44,6 +45,7 @@ public class HardwareConnectorInstanceRefImpl extends InstanceRefImpl implements
* The cached value of the '{@link #getHardwareComponentPrototype() <em>Hardware Component Prototype</em>}' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @see #getHardwareComponentPrototype()
* @generated
* @ordered
@@ -53,6 +55,7 @@ public class HardwareConnectorInstanceRefImpl extends InstanceRefImpl implements
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected HardwareConnectorInstanceRefImpl() {
@@ -62,6 +65,7 @@ public class HardwareConnectorInstanceRefImpl extends InstanceRefImpl implements
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -72,15 +76,18 @@ public class HardwareConnectorInstanceRefImpl extends InstanceRefImpl implements
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
+ @Override
public HardwarePin getHardwarePin() {
if (hardwarePin != null && hardwarePin.eIsProxy()) {
- InternalEObject oldHardwarePin = (InternalEObject)hardwarePin;
- hardwarePin = (HardwarePin)eResolveProxy(oldHardwarePin);
+ InternalEObject oldHardwarePin = (InternalEObject) hardwarePin;
+ hardwarePin = (HardwarePin) eResolveProxy(oldHardwarePin);
if (hardwarePin != oldHardwarePin) {
- if (eNotificationRequired())
+ if (eNotificationRequired()) {
eNotify(new ENotificationImpl(this, Notification.RESOLVE, InfrastructurePackage.HARDWARE_CONNECTOR_INSTANCE_REF__HARDWARE_PIN, oldHardwarePin, hardwarePin));
+ }
}
}
return hardwarePin;
@@ -89,6 +96,7 @@ public class HardwareConnectorInstanceRefImpl extends InstanceRefImpl implements
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public HardwarePin basicGetHardwarePin() {
@@ -98,27 +106,33 @@ public class HardwareConnectorInstanceRefImpl extends InstanceRefImpl implements
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
+ @Override
public void setHardwarePin(HardwarePin newHardwarePin) {
HardwarePin oldHardwarePin = hardwarePin;
hardwarePin = newHardwarePin;
- if (eNotificationRequired())
+ if (eNotificationRequired()) {
eNotify(new ENotificationImpl(this, Notification.SET, InfrastructurePackage.HARDWARE_CONNECTOR_INSTANCE_REF__HARDWARE_PIN, oldHardwarePin, hardwarePin));
+ }
}
/**
* <!-- 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_CONNECTOR_INSTANCE_REF__HARDWARE_COMPONENT_PROTOTYPE, oldHardwareComponentPrototype, hardwareComponentPrototype));
+ }
}
}
return hardwareComponentPrototype;
@@ -127,6 +141,7 @@ public class HardwareConnectorInstanceRefImpl extends InstanceRefImpl implements
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public HardwareComponentPrototype basicGetHardwareComponentPrototype() {
@@ -136,29 +151,37 @@ public class HardwareConnectorInstanceRefImpl extends InstanceRefImpl implements
/**
* <!-- 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_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_CONNECTOR_INSTANCE_REF__HARDWARE_PIN:
- if (resolve) return getHardwarePin();
- return basicGetHardwarePin();
- case InfrastructurePackage.HARDWARE_CONNECTOR_INSTANCE_REF__HARDWARE_COMPONENT_PROTOTYPE:
- if (resolve) return getHardwareComponentPrototype();
- return basicGetHardwareComponentPrototype();
+ case InfrastructurePackage.HARDWARE_CONNECTOR_INSTANCE_REF__HARDWARE_PIN:
+ if (resolve) {
+ return getHardwarePin();
+ }
+ return basicGetHardwarePin();
+ case InfrastructurePackage.HARDWARE_CONNECTOR_INSTANCE_REF__HARDWARE_COMPONENT_PROTOTYPE:
+ if (resolve) {
+ return getHardwareComponentPrototype();
+ }
+ return basicGetHardwareComponentPrototype();
}
return super.eGet(featureID, resolve, coreType);
}
@@ -166,17 +189,18 @@ public class HardwareConnectorInstanceRefImpl extends InstanceRefImpl implements
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public void eSet(int featureID, Object newValue) {
switch (featureID) {
- case InfrastructurePackage.HARDWARE_CONNECTOR_INSTANCE_REF__HARDWARE_PIN:
- setHardwarePin((HardwarePin)newValue);
- return;
- case InfrastructurePackage.HARDWARE_CONNECTOR_INSTANCE_REF__HARDWARE_COMPONENT_PROTOTYPE:
- setHardwareComponentPrototype((HardwareComponentPrototype)newValue);
- return;
+ case InfrastructurePackage.HARDWARE_CONNECTOR_INSTANCE_REF__HARDWARE_PIN:
+ setHardwarePin((HardwarePin) newValue);
+ return;
+ case InfrastructurePackage.HARDWARE_CONNECTOR_INSTANCE_REF__HARDWARE_COMPONENT_PROTOTYPE:
+ setHardwareComponentPrototype((HardwareComponentPrototype) newValue);
+ return;
}
super.eSet(featureID, newValue);
}
@@ -184,17 +208,18 @@ public class HardwareConnectorInstanceRefImpl extends InstanceRefImpl implements
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public void eUnset(int featureID) {
switch (featureID) {
- case InfrastructurePackage.HARDWARE_CONNECTOR_INSTANCE_REF__HARDWARE_PIN:
- setHardwarePin((HardwarePin)null);
- return;
- case InfrastructurePackage.HARDWARE_CONNECTOR_INSTANCE_REF__HARDWARE_COMPONENT_PROTOTYPE:
- setHardwareComponentPrototype((HardwareComponentPrototype)null);
- return;
+ case InfrastructurePackage.HARDWARE_CONNECTOR_INSTANCE_REF__HARDWARE_PIN:
+ setHardwarePin((HardwarePin) null);
+ return;
+ case InfrastructurePackage.HARDWARE_CONNECTOR_INSTANCE_REF__HARDWARE_COMPONENT_PROTOTYPE:
+ setHardwareComponentPrototype((HardwareComponentPrototype) null);
+ return;
}
super.eUnset(featureID);
}
@@ -202,17 +227,18 @@ public class HardwareConnectorInstanceRefImpl extends InstanceRefImpl implements
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public boolean eIsSet(int featureID) {
switch (featureID) {
- case InfrastructurePackage.HARDWARE_CONNECTOR_INSTANCE_REF__HARDWARE_PIN:
- return hardwarePin != null;
- case InfrastructurePackage.HARDWARE_CONNECTOR_INSTANCE_REF__HARDWARE_COMPONENT_PROTOTYPE:
- return hardwareComponentPrototype != null;
+ case InfrastructurePackage.HARDWARE_CONNECTOR_INSTANCE_REF__HARDWARE_PIN:
+ return hardwarePin != null;
+ case InfrastructurePackage.HARDWARE_CONNECTOR_INSTANCE_REF__HARDWARE_COMPONENT_PROTOTYPE:
+ return hardwareComponentPrototype != null;
}
return super.eIsSet(featureID);
}
-} //HardwareConnectorInstanceRefImpl
+} // HardwareConnectorInstanceRefImpl

Back to the top