All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.omg.bpmn.bpmn2.impl.InteractionNodeImpl Maven / Gradle / Ivy

The newest version!
/*
 * Copyright (c) 2012 - 2024 Data In Motion and others.
 * All rights reserved. 
 * 
 * This program and the accompanying materials are made
 * available under the terms of the Eclipse Public License 2.0
 * which is available at https://www.eclipse.org/legal/epl-2.0/
 * 
 * SPDX-License-Identifier: EPL-2.0
 * 
 * Contributors:
 *      Mark Hoffmann - initial API and implementation
 */
package org.omg.bpmn.bpmn2.impl;

import org.eclipse.emf.common.util.EList;

import org.eclipse.emf.ecore.EClass;

import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;

import org.omg.bpmn.bpmn2.Bpmn2Package;
import org.omg.bpmn.bpmn2.ConversationLink;
import org.omg.bpmn.bpmn2.InteractionNode;

/**
 * 
 * An implementation of the model object 'Interaction Node'.
 * 
 * 

* The following features are implemented: *

*
    *
  • {@link org.omg.bpmn.bpmn2.impl.InteractionNodeImpl#getIncomingConversationLinks Incoming Conversation Links}
  • *
  • {@link org.omg.bpmn.bpmn2.impl.InteractionNodeImpl#getOutgoingConversationLinks Outgoing Conversation Links}
  • *
* * @generated */ public class InteractionNodeImpl extends MinimalEObjectImpl.Container implements InteractionNode { /** * * * @generated */ protected InteractionNodeImpl() { super(); } /** * * * @generated */ @Override protected EClass eStaticClass() { return Bpmn2Package.eINSTANCE.getInteractionNode(); } /** * * * @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.INTERACTION_NODE__INCOMING_CONVERSATION_LINKS: return getIncomingConversationLinks(); case Bpmn2Package.INTERACTION_NODE__OUTGOING_CONVERSATION_LINKS: return getOutgoingConversationLinks(); } return super.eGet(featureID, resolve, coreType); } /** * * * @generated */ @Override public boolean eIsSet(int featureID) { switch (featureID) { case Bpmn2Package.INTERACTION_NODE__INCOMING_CONVERSATION_LINKS: return !getIncomingConversationLinks().isEmpty(); case Bpmn2Package.INTERACTION_NODE__OUTGOING_CONVERSATION_LINKS: return !getOutgoingConversationLinks().isEmpty(); } return super.eIsSet(featureID); } } //InteractionNodeImpl




© 2015 - 2024 Weber Informatics LLC | Privacy Policy