org.eclipse.bpmn2.impl.TaskImpl 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 org.eclipse.bpmn2.Bpmn2Package;
import org.eclipse.bpmn2.ConversationLink;
import org.eclipse.bpmn2.InteractionNode;
import org.eclipse.bpmn2.Task;
import org.eclipse.emf.common.util.EList;
import org.eclipse.emf.ecore.EClass;
/**
*
* An implementation of the model object 'Task'.
*
*
* The following features are implemented:
*
*
* - {@link org.eclipse.bpmn2.impl.TaskImpl#getIncomingConversationLinks Incoming Conversation Links}
* - {@link org.eclipse.bpmn2.impl.TaskImpl#getOutgoingConversationLinks Outgoing Conversation Links}
*
*
* @generated
*/
public class TaskImpl extends ActivityImpl implements Task {
/**
*
*
* @generated
*/
protected TaskImpl() {
super();
}
/**
*
*
* @generated
*/
@Override
protected EClass eStaticClass() {
return Bpmn2Package.Literals.TASK;
}
/**
*
*
* @generated
*/
@Override
public EList getIncomingConversationLinks() {
// TODO: implement this method to return the 'Incoming Conversation Links' reference list
// Ensure that you remove @generated or mark it @generated NOT
// The list is expected to implement org.eclipse.emf.ecore.util.InternalEList and org.eclipse.emf.ecore.EStructuralFeature.Setting
// so it's likely that an appropriate subclass of org.eclipse.emf.ecore.util.EcoreEList should be used.
throw new UnsupportedOperationException();
}
/**
*
*
* @generated
*/
@Override
public EList getOutgoingConversationLinks() {
// TODO: implement this method to return the 'Outgoing Conversation Links' reference list
// Ensure that you remove @generated or mark it @generated NOT
// The list is expected to implement org.eclipse.emf.ecore.util.InternalEList and org.eclipse.emf.ecore.EStructuralFeature.Setting
// so it's likely that an appropriate subclass of org.eclipse.emf.ecore.util.EcoreEList should be used.
throw new UnsupportedOperationException();
}
/**
*
*
* @generated
*/
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
switch (featureID) {
case Bpmn2Package.TASK__INCOMING_CONVERSATION_LINKS:
return getIncomingConversationLinks();
case Bpmn2Package.TASK__OUTGOING_CONVERSATION_LINKS:
return getOutgoingConversationLinks();
}
return super.eGet(featureID, resolve, coreType);
}
/**
*
*
* @generated
*/
@Override
public boolean eIsSet(int featureID) {
switch (featureID) {
case Bpmn2Package.TASK__INCOMING_CONVERSATION_LINKS:
return !getIncomingConversationLinks().isEmpty();
case Bpmn2Package.TASK__OUTGOING_CONVERSATION_LINKS:
return !getOutgoingConversationLinks().isEmpty();
}
return super.eIsSet(featureID);
}
/**
*
*
* @generated
*/
@Override
public int eBaseStructuralFeatureID(int derivedFeatureID, Class> baseClass) {
if (baseClass == InteractionNode.class) {
switch (derivedFeatureID) {
case Bpmn2Package.TASK__INCOMING_CONVERSATION_LINKS:
return Bpmn2Package.INTERACTION_NODE__INCOMING_CONVERSATION_LINKS;
case Bpmn2Package.TASK__OUTGOING_CONVERSATION_LINKS:
return Bpmn2Package.INTERACTION_NODE__OUTGOING_CONVERSATION_LINKS;
default:
return -1;
}
}
return super.eBaseStructuralFeatureID(derivedFeatureID, baseClass);
}
/**
*
*
* @generated
*/
@Override
public int eDerivedStructuralFeatureID(int baseFeatureID, Class> baseClass) {
if (baseClass == InteractionNode.class) {
switch (baseFeatureID) {
case Bpmn2Package.INTERACTION_NODE__INCOMING_CONVERSATION_LINKS:
return Bpmn2Package.TASK__INCOMING_CONVERSATION_LINKS;
case Bpmn2Package.INTERACTION_NODE__OUTGOING_CONVERSATION_LINKS:
return Bpmn2Package.TASK__OUTGOING_CONVERSATION_LINKS;
default:
return -1;
}
}
return super.eDerivedStructuralFeatureID(baseFeatureID, baseClass);
}
} //TaskImpl
© 2015 - 2025 Weber Informatics LLC | Privacy Policy