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/EventFunctionFlowPortInstanceRefImpl.java')
-rw-r--r--extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/infrastructure/impl/EventFunctionFlowPortInstanceRefImpl.java77
1 files changed, 48 insertions, 29 deletions
diff --git a/extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/infrastructure/impl/EventFunctionFlowPortInstanceRefImpl.java b/extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/infrastructure/impl/EventFunctionFlowPortInstanceRefImpl.java
index 3c5f4a0ef15..5d40bb1d81d 100644
--- a/extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/infrastructure/impl/EventFunctionFlowPortInstanceRefImpl.java
+++ b/extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/infrastructure/impl/EventFunctionFlowPortInstanceRefImpl.java
@@ -22,8 +22,8 @@ import org.eclipse.papyrus.eastadl.structure.functionmodeling.FunctionPrototype;
* <p>
* The following features are implemented:
* <ul>
- * <li>{@link org.eclipse.papyrus.eastadl.infrastructure.impl.EventFunctionFlowPortInstanceRefImpl#getFunctionFlowPort <em>Function Flow Port</em>}</li>
- * <li>{@link org.eclipse.papyrus.eastadl.infrastructure.impl.EventFunctionFlowPortInstanceRefImpl#getFunctionPrototype <em>Function Prototype</em>}</li>
+ * <li>{@link org.eclipse.papyrus.eastadl.infrastructure.impl.EventFunctionFlowPortInstanceRefImpl#getFunctionFlowPort <em>Function Flow Port</em>}</li>
+ * <li>{@link org.eclipse.papyrus.eastadl.infrastructure.impl.EventFunctionFlowPortInstanceRefImpl#getFunctionPrototype <em>Function Prototype</em>}</li>
* </ul>
* </p>
*
@@ -34,6 +34,7 @@ public class EventFunctionFlowPortInstanceRefImpl extends InstanceRefImpl implem
* The cached value of the '{@link #getFunctionFlowPort() <em>Function Flow Port</em>}' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @see #getFunctionFlowPort()
* @generated
* @ordered
@@ -44,6 +45,7 @@ public class EventFunctionFlowPortInstanceRefImpl extends InstanceRefImpl implem
* The cached value of the '{@link #getFunctionPrototype() <em>Function Prototype</em>}' reference list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @see #getFunctionPrototype()
* @generated
* @ordered
@@ -53,6 +55,7 @@ public class EventFunctionFlowPortInstanceRefImpl extends InstanceRefImpl implem
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected EventFunctionFlowPortInstanceRefImpl() {
@@ -62,6 +65,7 @@ public class EventFunctionFlowPortInstanceRefImpl extends InstanceRefImpl implem
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -72,15 +76,18 @@ public class EventFunctionFlowPortInstanceRefImpl extends InstanceRefImpl implem
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
+ @Override
public FunctionFlowPort getFunctionFlowPort() {
if (functionFlowPort != null && functionFlowPort.eIsProxy()) {
- InternalEObject oldFunctionFlowPort = (InternalEObject)functionFlowPort;
- functionFlowPort = (FunctionFlowPort)eResolveProxy(oldFunctionFlowPort);
+ InternalEObject oldFunctionFlowPort = (InternalEObject) functionFlowPort;
+ functionFlowPort = (FunctionFlowPort) eResolveProxy(oldFunctionFlowPort);
if (functionFlowPort != oldFunctionFlowPort) {
- if (eNotificationRequired())
+ if (eNotificationRequired()) {
eNotify(new ENotificationImpl(this, Notification.RESOLVE, InfrastructurePackage.EVENT_FUNCTION_FLOW_PORT_INSTANCE_REF__FUNCTION_FLOW_PORT, oldFunctionFlowPort, functionFlowPort));
+ }
}
}
return functionFlowPort;
@@ -89,6 +96,7 @@ public class EventFunctionFlowPortInstanceRefImpl extends InstanceRefImpl implem
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public FunctionFlowPort basicGetFunctionFlowPort() {
@@ -98,20 +106,25 @@ public class EventFunctionFlowPortInstanceRefImpl extends InstanceRefImpl implem
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
+ @Override
public void setFunctionFlowPort(FunctionFlowPort newFunctionFlowPort) {
FunctionFlowPort oldFunctionFlowPort = functionFlowPort;
functionFlowPort = newFunctionFlowPort;
- if (eNotificationRequired())
+ if (eNotificationRequired()) {
eNotify(new ENotificationImpl(this, Notification.SET, InfrastructurePackage.EVENT_FUNCTION_FLOW_PORT_INSTANCE_REF__FUNCTION_FLOW_PORT, oldFunctionFlowPort, functionFlowPort));
+ }
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
+ @Override
public EList<FunctionPrototype> getFunctionPrototype() {
if (functionPrototype == null) {
functionPrototype = new EObjectResolvingEList<FunctionPrototype>(FunctionPrototype.class, this, InfrastructurePackage.EVENT_FUNCTION_FLOW_PORT_INSTANCE_REF__FUNCTION_PROTOTYPE);
@@ -122,16 +135,19 @@ public class EventFunctionFlowPortInstanceRefImpl extends InstanceRefImpl implem
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
switch (featureID) {
- case InfrastructurePackage.EVENT_FUNCTION_FLOW_PORT_INSTANCE_REF__FUNCTION_FLOW_PORT:
- if (resolve) return getFunctionFlowPort();
- return basicGetFunctionFlowPort();
- case InfrastructurePackage.EVENT_FUNCTION_FLOW_PORT_INSTANCE_REF__FUNCTION_PROTOTYPE:
- return getFunctionPrototype();
+ case InfrastructurePackage.EVENT_FUNCTION_FLOW_PORT_INSTANCE_REF__FUNCTION_FLOW_PORT:
+ if (resolve) {
+ return getFunctionFlowPort();
+ }
+ return basicGetFunctionFlowPort();
+ case InfrastructurePackage.EVENT_FUNCTION_FLOW_PORT_INSTANCE_REF__FUNCTION_PROTOTYPE:
+ return getFunctionPrototype();
}
return super.eGet(featureID, resolve, coreType);
}
@@ -139,19 +155,20 @@ public class EventFunctionFlowPortInstanceRefImpl extends InstanceRefImpl implem
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@SuppressWarnings("unchecked")
@Override
public void eSet(int featureID, Object newValue) {
switch (featureID) {
- case InfrastructurePackage.EVENT_FUNCTION_FLOW_PORT_INSTANCE_REF__FUNCTION_FLOW_PORT:
- setFunctionFlowPort((FunctionFlowPort)newValue);
- return;
- case InfrastructurePackage.EVENT_FUNCTION_FLOW_PORT_INSTANCE_REF__FUNCTION_PROTOTYPE:
- getFunctionPrototype().clear();
- getFunctionPrototype().addAll((Collection<? extends FunctionPrototype>)newValue);
- return;
+ case InfrastructurePackage.EVENT_FUNCTION_FLOW_PORT_INSTANCE_REF__FUNCTION_FLOW_PORT:
+ setFunctionFlowPort((FunctionFlowPort) newValue);
+ return;
+ case InfrastructurePackage.EVENT_FUNCTION_FLOW_PORT_INSTANCE_REF__FUNCTION_PROTOTYPE:
+ getFunctionPrototype().clear();
+ getFunctionPrototype().addAll((Collection<? extends FunctionPrototype>) newValue);
+ return;
}
super.eSet(featureID, newValue);
}
@@ -159,17 +176,18 @@ public class EventFunctionFlowPortInstanceRefImpl extends InstanceRefImpl implem
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public void eUnset(int featureID) {
switch (featureID) {
- case InfrastructurePackage.EVENT_FUNCTION_FLOW_PORT_INSTANCE_REF__FUNCTION_FLOW_PORT:
- setFunctionFlowPort((FunctionFlowPort)null);
- return;
- case InfrastructurePackage.EVENT_FUNCTION_FLOW_PORT_INSTANCE_REF__FUNCTION_PROTOTYPE:
- getFunctionPrototype().clear();
- return;
+ case InfrastructurePackage.EVENT_FUNCTION_FLOW_PORT_INSTANCE_REF__FUNCTION_FLOW_PORT:
+ setFunctionFlowPort((FunctionFlowPort) null);
+ return;
+ case InfrastructurePackage.EVENT_FUNCTION_FLOW_PORT_INSTANCE_REF__FUNCTION_PROTOTYPE:
+ getFunctionPrototype().clear();
+ return;
}
super.eUnset(featureID);
}
@@ -177,17 +195,18 @@ public class EventFunctionFlowPortInstanceRefImpl extends InstanceRefImpl implem
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public boolean eIsSet(int featureID) {
switch (featureID) {
- case InfrastructurePackage.EVENT_FUNCTION_FLOW_PORT_INSTANCE_REF__FUNCTION_FLOW_PORT:
- return functionFlowPort != null;
- case InfrastructurePackage.EVENT_FUNCTION_FLOW_PORT_INSTANCE_REF__FUNCTION_PROTOTYPE:
- return functionPrototype != null && !functionPrototype.isEmpty();
+ case InfrastructurePackage.EVENT_FUNCTION_FLOW_PORT_INSTANCE_REF__FUNCTION_FLOW_PORT:
+ return functionFlowPort != null;
+ case InfrastructurePackage.EVENT_FUNCTION_FLOW_PORT_INSTANCE_REF__FUNCTION_PROTOTYPE:
+ return functionPrototype != null && !functionPrototype.isEmpty();
}
return super.eIsSet(featureID);
}
-} //EventFunctionFlowPortInstanceRefImpl
+} // EventFunctionFlowPortInstanceRefImpl

Back to the top