org.eclipse.bpmn2.impl.ChoreographyTaskImpl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of kie-wb-common-stunner-bpmn-emf Show documentation
Show all versions of kie-wb-common-stunner-bpmn-emf Show documentation
Kie Workbench - Common - Stunner - BPMN Definition Set - GWT Support for Eclipse EMF/XMI
/**
*
*
* 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
*
*
*/
package org.eclipse.bpmn2.impl;
import com.google.gwt.user.client.rpc.GwtTransient;
import java.util.Collection;
import org.eclipse.bpmn2.Bpmn2Package;
import org.eclipse.bpmn2.ChoreographyTask;
import org.eclipse.bpmn2.MessageFlow;
import org.eclipse.emf.common.util.EList;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.util.EObjectResolvingEList;
/**
*
* An implementation of the model object 'Choreography Task'.
*
*
* The following features are implemented:
*
*
* - {@link org.eclipse.bpmn2.impl.ChoreographyTaskImpl#getMessageFlowRef Message Flow Ref}
*
*
* @generated
*/
public class ChoreographyTaskImpl extends ChoreographyActivityImpl implements ChoreographyTask {
/**
* The cached value of the '{@link #getMessageFlowRef() Message Flow Ref}' reference list.
*
*
* @see #getMessageFlowRef()
* @generated
* @ordered
*/
@GwtTransient
protected EList messageFlowRef;
/**
*
*
* @generated
*/
protected ChoreographyTaskImpl() {
super();
}
/**
*
*
* @generated
*/
@Override
protected EClass eStaticClass() {
return Bpmn2Package.Literals.CHOREOGRAPHY_TASK;
}
/**
*
*
* @generated
*/
@Override
public EList getMessageFlowRef() {
if (messageFlowRef == null) {
messageFlowRef = new EObjectResolvingEList(MessageFlow.class, this,
Bpmn2Package.CHOREOGRAPHY_TASK__MESSAGE_FLOW_REF);
}
return messageFlowRef;
}
/**
*
*
* @generated
*/
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
switch (featureID) {
case Bpmn2Package.CHOREOGRAPHY_TASK__MESSAGE_FLOW_REF:
return getMessageFlowRef();
}
return super.eGet(featureID, resolve, coreType);
}
/**
*
*
* @generated
*/
@SuppressWarnings("unchecked")
@Override
public void eSet(int featureID, Object newValue) {
switch (featureID) {
case Bpmn2Package.CHOREOGRAPHY_TASK__MESSAGE_FLOW_REF:
getMessageFlowRef().clear();
getMessageFlowRef().addAll((Collection extends MessageFlow>) newValue);
return;
}
super.eSet(featureID, newValue);
}
/**
*
*
* @generated
*/
@Override
public void eUnset(int featureID) {
switch (featureID) {
case Bpmn2Package.CHOREOGRAPHY_TASK__MESSAGE_FLOW_REF:
getMessageFlowRef().clear();
return;
}
super.eUnset(featureID);
}
/**
*
*
* @generated
*/
@Override
public boolean eIsSet(int featureID) {
switch (featureID) {
case Bpmn2Package.CHOREOGRAPHY_TASK__MESSAGE_FLOW_REF:
return messageFlowRef != null && !messageFlowRef.isEmpty();
}
return super.eIsSet(featureID);
}
} //ChoreographyTaskImpl
© 2015 - 2025 Weber Informatics LLC | Privacy Policy