diff options
author | Martin Taal | 2012-09-17 21:12:38 +0000 |
---|---|---|
committer | Martin Taal | 2012-09-17 21:12:38 +0000 |
commit | 4aaca78783da7a34e5df316db0780fc5674cb62c (patch) | |
tree | cc74ca458336ce8e6457b2986ad2850add0425d0 /tests/org.eclipse.emf.teneo.samples/src/org/eclipse/bpmn2/impl/GlobalChoreographyTaskImpl.java | |
parent | 3beda87f76bf426f2754cb49b231519a7e67df2b (diff) | |
download | org.eclipse.emf.teneo-4aaca78783da7a34e5df316db0780fc5674cb62c.tar.gz org.eclipse.emf.teneo-4aaca78783da7a34e5df316db0780fc5674cb62c.tar.xz org.eclipse.emf.teneo-4aaca78783da7a34e5df316db0780fc5674cb62c.zip |
Fixes for issue 387421
Diffstat (limited to 'tests/org.eclipse.emf.teneo.samples/src/org/eclipse/bpmn2/impl/GlobalChoreographyTaskImpl.java')
-rw-r--r-- | tests/org.eclipse.emf.teneo.samples/src/org/eclipse/bpmn2/impl/GlobalChoreographyTaskImpl.java | 181 |
1 files changed, 181 insertions, 0 deletions
diff --git a/tests/org.eclipse.emf.teneo.samples/src/org/eclipse/bpmn2/impl/GlobalChoreographyTaskImpl.java b/tests/org.eclipse.emf.teneo.samples/src/org/eclipse/bpmn2/impl/GlobalChoreographyTaskImpl.java new file mode 100644 index 000000000..c39a0142b --- /dev/null +++ b/tests/org.eclipse.emf.teneo.samples/src/org/eclipse/bpmn2/impl/GlobalChoreographyTaskImpl.java @@ -0,0 +1,181 @@ +/** + * <copyright> + * + * Copyright (c) 2010 SAP AG. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Reiner Hille-Doering (SAP AG) - initial API and implementation and/or initial documentation + * + * </copyright> + */ +package org.eclipse.bpmn2.impl; + +import org.eclipse.bpmn2.Bpmn2Package; +import org.eclipse.bpmn2.GlobalChoreographyTask; +import org.eclipse.bpmn2.Participant; + +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; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Global Choreography Task</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.eclipse.bpmn2.impl.GlobalChoreographyTaskImpl#getInitiatingParticipantRef <em>Initiating Participant Ref</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class GlobalChoreographyTaskImpl extends ChoreographyImpl implements + GlobalChoreographyTask { + /** + * The cached value of the '{@link #getInitiatingParticipantRef() <em>Initiating Participant Ref</em>}' reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getInitiatingParticipantRef() + * @generated + * @ordered + */ + protected Participant initiatingParticipantRef; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected GlobalChoreographyTaskImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return Bpmn2Package.Literals.GLOBAL_CHOREOGRAPHY_TASK; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public Participant getInitiatingParticipantRef() { + if (initiatingParticipantRef != null + && initiatingParticipantRef.eIsProxy()) { + InternalEObject oldInitiatingParticipantRef = (InternalEObject) initiatingParticipantRef; + initiatingParticipantRef = (Participant) eResolveProxy(oldInitiatingParticipantRef); + if (initiatingParticipantRef != oldInitiatingParticipantRef) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl( + this, + Notification.RESOLVE, + Bpmn2Package.GLOBAL_CHOREOGRAPHY_TASK__INITIATING_PARTICIPANT_REF, + oldInitiatingParticipantRef, + initiatingParticipantRef)); + } + } + return initiatingParticipantRef; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public Participant basicGetInitiatingParticipantRef() { + return initiatingParticipantRef; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setInitiatingParticipantRef( + Participant newInitiatingParticipantRef) { + Participant oldInitiatingParticipantRef = initiatingParticipantRef; + initiatingParticipantRef = newInitiatingParticipantRef; + if (eNotificationRequired()) + eNotify(new ENotificationImpl( + this, + Notification.SET, + Bpmn2Package.GLOBAL_CHOREOGRAPHY_TASK__INITIATING_PARTICIPANT_REF, + oldInitiatingParticipantRef, initiatingParticipantRef)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case Bpmn2Package.GLOBAL_CHOREOGRAPHY_TASK__INITIATING_PARTICIPANT_REF: + if (resolve) + return getInitiatingParticipantRef(); + return basicGetInitiatingParticipantRef(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case Bpmn2Package.GLOBAL_CHOREOGRAPHY_TASK__INITIATING_PARTICIPANT_REF: + setInitiatingParticipantRef((Participant) newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case Bpmn2Package.GLOBAL_CHOREOGRAPHY_TASK__INITIATING_PARTICIPANT_REF: + setInitiatingParticipantRef((Participant) null); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case Bpmn2Package.GLOBAL_CHOREOGRAPHY_TASK__INITIATING_PARTICIPANT_REF: + return initiatingParticipantRef != null; + } + return super.eIsSet(featureID); + } + +} //GlobalChoreographyTaskImpl |