Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'extraplugins/bpmn/org.eclipse.papyrus.bpmn/src/org/eclipse/papyrus/bpmn/BPMNProfile/impl/MessageEventDefinitionImpl.java')
-rw-r--r--extraplugins/bpmn/org.eclipse.papyrus.bpmn/src/org/eclipse/papyrus/bpmn/BPMNProfile/impl/MessageEventDefinitionImpl.java279
1 files changed, 279 insertions, 0 deletions
diff --git a/extraplugins/bpmn/org.eclipse.papyrus.bpmn/src/org/eclipse/papyrus/bpmn/BPMNProfile/impl/MessageEventDefinitionImpl.java b/extraplugins/bpmn/org.eclipse.papyrus.bpmn/src/org/eclipse/papyrus/bpmn/BPMNProfile/impl/MessageEventDefinitionImpl.java
new file mode 100644
index 00000000000..044837c3fa5
--- /dev/null
+++ b/extraplugins/bpmn/org.eclipse.papyrus.bpmn/src/org/eclipse/papyrus/bpmn/BPMNProfile/impl/MessageEventDefinitionImpl.java
@@ -0,0 +1,279 @@
+/**
+ */
+package org.eclipse.papyrus.bpmn.BPMNProfile.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.bpmn.BPMNProfile.BPMNMessage;
+import org.eclipse.papyrus.bpmn.BPMNProfile.BPMNOperation;
+import org.eclipse.papyrus.bpmn.BPMNProfile.BPMNProfilePackage;
+import org.eclipse.papyrus.bpmn.BPMNProfile.MessageEventDefinition;
+
+import org.eclipse.uml2.uml.CallEvent;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model object '<em><b>Message Event Definition</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * </p>
+ * <ul>
+ * <li>{@link org.eclipse.papyrus.bpmn.BPMNProfile.impl.MessageEventDefinitionImpl#getMessageRef <em>Message Ref</em>}</li>
+ * <li>{@link org.eclipse.papyrus.bpmn.BPMNProfile.impl.MessageEventDefinitionImpl#getOperationRef <em>Operation Ref</em>}</li>
+ * <li>{@link org.eclipse.papyrus.bpmn.BPMNProfile.impl.MessageEventDefinitionImpl#getBase_CallEvent <em>Base Call Event</em>}</li>
+ * </ul>
+ *
+ * @generated
+ */
+public class MessageEventDefinitionImpl extends EventDefinitionImpl implements MessageEventDefinition {
+ /**
+ * The cached value of the '{@link #getMessageRef() <em>Message Ref</em>}' reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getMessageRef()
+ * @generated
+ * @ordered
+ */
+ protected BPMNMessage messageRef;
+
+ /**
+ * The cached value of the '{@link #getOperationRef() <em>Operation Ref</em>}' reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getOperationRef()
+ * @generated
+ * @ordered
+ */
+ protected BPMNOperation operationRef;
+
+ /**
+ * The cached value of the '{@link #getBase_CallEvent() <em>Base Call Event</em>}' reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getBase_CallEvent()
+ * @generated
+ * @ordered
+ */
+ protected CallEvent base_CallEvent;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected MessageEventDefinitionImpl() {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass() {
+ return BPMNProfilePackage.eINSTANCE.getMessageEventDefinition();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public BPMNMessage getMessageRef() {
+ if (messageRef != null && messageRef.eIsProxy()) {
+ InternalEObject oldMessageRef = (InternalEObject)messageRef;
+ messageRef = (BPMNMessage)eResolveProxy(oldMessageRef);
+ if (messageRef != oldMessageRef) {
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.RESOLVE, BPMNProfilePackage.MESSAGE_EVENT_DEFINITION__MESSAGE_REF, oldMessageRef, messageRef));
+ }
+ }
+ return messageRef;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public BPMNMessage basicGetMessageRef() {
+ return messageRef;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setMessageRef(BPMNMessage newMessageRef) {
+ BPMNMessage oldMessageRef = messageRef;
+ messageRef = newMessageRef;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, BPMNProfilePackage.MESSAGE_EVENT_DEFINITION__MESSAGE_REF, oldMessageRef, messageRef));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public BPMNOperation getOperationRef() {
+ if (operationRef != null && operationRef.eIsProxy()) {
+ InternalEObject oldOperationRef = (InternalEObject)operationRef;
+ operationRef = (BPMNOperation)eResolveProxy(oldOperationRef);
+ if (operationRef != oldOperationRef) {
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.RESOLVE, BPMNProfilePackage.MESSAGE_EVENT_DEFINITION__OPERATION_REF, oldOperationRef, operationRef));
+ }
+ }
+ return operationRef;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public BPMNOperation basicGetOperationRef() {
+ return operationRef;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setOperationRef(BPMNOperation newOperationRef) {
+ BPMNOperation oldOperationRef = operationRef;
+ operationRef = newOperationRef;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, BPMNProfilePackage.MESSAGE_EVENT_DEFINITION__OPERATION_REF, oldOperationRef, operationRef));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public CallEvent getBase_CallEvent() {
+ if (base_CallEvent != null && base_CallEvent.eIsProxy()) {
+ InternalEObject oldBase_CallEvent = (InternalEObject)base_CallEvent;
+ base_CallEvent = (CallEvent)eResolveProxy(oldBase_CallEvent);
+ if (base_CallEvent != oldBase_CallEvent) {
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.RESOLVE, BPMNProfilePackage.MESSAGE_EVENT_DEFINITION__BASE_CALL_EVENT, oldBase_CallEvent, base_CallEvent));
+ }
+ }
+ return base_CallEvent;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public CallEvent basicGetBase_CallEvent() {
+ return base_CallEvent;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setBase_CallEvent(CallEvent newBase_CallEvent) {
+ CallEvent oldBase_CallEvent = base_CallEvent;
+ base_CallEvent = newBase_CallEvent;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, BPMNProfilePackage.MESSAGE_EVENT_DEFINITION__BASE_CALL_EVENT, oldBase_CallEvent, base_CallEvent));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Object eGet(int featureID, boolean resolve, boolean coreType) {
+ switch (featureID) {
+ case BPMNProfilePackage.MESSAGE_EVENT_DEFINITION__MESSAGE_REF:
+ if (resolve) return getMessageRef();
+ return basicGetMessageRef();
+ case BPMNProfilePackage.MESSAGE_EVENT_DEFINITION__OPERATION_REF:
+ if (resolve) return getOperationRef();
+ return basicGetOperationRef();
+ case BPMNProfilePackage.MESSAGE_EVENT_DEFINITION__BASE_CALL_EVENT:
+ if (resolve) return getBase_CallEvent();
+ return basicGetBase_CallEvent();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eSet(int featureID, Object newValue) {
+ switch (featureID) {
+ case BPMNProfilePackage.MESSAGE_EVENT_DEFINITION__MESSAGE_REF:
+ setMessageRef((BPMNMessage)newValue);
+ return;
+ case BPMNProfilePackage.MESSAGE_EVENT_DEFINITION__OPERATION_REF:
+ setOperationRef((BPMNOperation)newValue);
+ return;
+ case BPMNProfilePackage.MESSAGE_EVENT_DEFINITION__BASE_CALL_EVENT:
+ setBase_CallEvent((CallEvent)newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID) {
+ switch (featureID) {
+ case BPMNProfilePackage.MESSAGE_EVENT_DEFINITION__MESSAGE_REF:
+ setMessageRef((BPMNMessage)null);
+ return;
+ case BPMNProfilePackage.MESSAGE_EVENT_DEFINITION__OPERATION_REF:
+ setOperationRef((BPMNOperation)null);
+ return;
+ case BPMNProfilePackage.MESSAGE_EVENT_DEFINITION__BASE_CALL_EVENT:
+ setBase_CallEvent((CallEvent)null);
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID) {
+ switch (featureID) {
+ case BPMNProfilePackage.MESSAGE_EVENT_DEFINITION__MESSAGE_REF:
+ return messageRef != null;
+ case BPMNProfilePackage.MESSAGE_EVENT_DEFINITION__OPERATION_REF:
+ return operationRef != null;
+ case BPMNProfilePackage.MESSAGE_EVENT_DEFINITION__BASE_CALL_EVENT:
+ return base_CallEvent != null;
+ }
+ return super.eIsSet(featureID);
+ }
+
+} //MessageEventDefinitionImpl

Back to the top