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

org.eclipse.bpmn2.impl.ConversationAssociationImpl Maven / Gradle / Ivy

There is a newer version: 7.54.0.Final
Show newest version
/**
 * 
 * 
 * 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 org.eclipse.bpmn2.Bpmn2Package;
import org.eclipse.bpmn2.ConversationAssociation;
import org.eclipse.bpmn2.ConversationNode;

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;

/**
 * 
 * An implementation of the model object 'Conversation Association'.
 * 
 * 

* The following features are implemented: *

*
    *
  • {@link org.eclipse.bpmn2.impl.ConversationAssociationImpl#getInnerConversationNodeRef Inner Conversation Node Ref}
  • *
  • {@link org.eclipse.bpmn2.impl.ConversationAssociationImpl#getOuterConversationNodeRef Outer Conversation Node Ref}
  • *
* * @generated */ public class ConversationAssociationImpl extends BaseElementImpl implements ConversationAssociation { /** * The cached value of the '{@link #getInnerConversationNodeRef() Inner Conversation Node Ref}' reference. * * * @see #getInnerConversationNodeRef() * @generated * @ordered */ @GwtTransient protected ConversationNode innerConversationNodeRef; /** * The cached value of the '{@link #getOuterConversationNodeRef() Outer Conversation Node Ref}' reference. * * * @see #getOuterConversationNodeRef() * @generated * @ordered */ @GwtTransient protected ConversationNode outerConversationNodeRef; /** * * * @generated */ protected ConversationAssociationImpl() { super(); } /** * * * @generated */ @Override protected EClass eStaticClass() { return Bpmn2Package.Literals.CONVERSATION_ASSOCIATION; } /** * * * @generated */ @Override public ConversationNode getInnerConversationNodeRef() { if (innerConversationNodeRef != null && innerConversationNodeRef.eIsProxy()) { InternalEObject oldInnerConversationNodeRef = (InternalEObject) innerConversationNodeRef; innerConversationNodeRef = (ConversationNode) eResolveProxy(oldInnerConversationNodeRef); if (innerConversationNodeRef != oldInnerConversationNodeRef) { if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.RESOLVE, Bpmn2Package.CONVERSATION_ASSOCIATION__INNER_CONVERSATION_NODE_REF, oldInnerConversationNodeRef, innerConversationNodeRef)); } } return innerConversationNodeRef; } /** * * * @generated */ public ConversationNode basicGetInnerConversationNodeRef() { return innerConversationNodeRef; } /** * * * @generated */ @Override public void setInnerConversationNodeRef(ConversationNode newInnerConversationNodeRef) { ConversationNode oldInnerConversationNodeRef = innerConversationNodeRef; innerConversationNodeRef = newInnerConversationNodeRef; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, Bpmn2Package.CONVERSATION_ASSOCIATION__INNER_CONVERSATION_NODE_REF, oldInnerConversationNodeRef, innerConversationNodeRef)); } /** * * * @generated */ @Override public ConversationNode getOuterConversationNodeRef() { if (outerConversationNodeRef != null && outerConversationNodeRef.eIsProxy()) { InternalEObject oldOuterConversationNodeRef = (InternalEObject) outerConversationNodeRef; outerConversationNodeRef = (ConversationNode) eResolveProxy(oldOuterConversationNodeRef); if (outerConversationNodeRef != oldOuterConversationNodeRef) { if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.RESOLVE, Bpmn2Package.CONVERSATION_ASSOCIATION__OUTER_CONVERSATION_NODE_REF, oldOuterConversationNodeRef, outerConversationNodeRef)); } } return outerConversationNodeRef; } /** * * * @generated */ public ConversationNode basicGetOuterConversationNodeRef() { return outerConversationNodeRef; } /** * * * @generated */ @Override public void setOuterConversationNodeRef(ConversationNode newOuterConversationNodeRef) { ConversationNode oldOuterConversationNodeRef = outerConversationNodeRef; outerConversationNodeRef = newOuterConversationNodeRef; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, Bpmn2Package.CONVERSATION_ASSOCIATION__OUTER_CONVERSATION_NODE_REF, oldOuterConversationNodeRef, outerConversationNodeRef)); } /** * * * @generated */ @Override public Object eGet(int featureID, boolean resolve, boolean coreType) { switch (featureID) { case Bpmn2Package.CONVERSATION_ASSOCIATION__INNER_CONVERSATION_NODE_REF: if (resolve) return getInnerConversationNodeRef(); return basicGetInnerConversationNodeRef(); case Bpmn2Package.CONVERSATION_ASSOCIATION__OUTER_CONVERSATION_NODE_REF: if (resolve) return getOuterConversationNodeRef(); return basicGetOuterConversationNodeRef(); } return super.eGet(featureID, resolve, coreType); } /** * * * @generated */ @Override public void eSet(int featureID, Object newValue) { switch (featureID) { case Bpmn2Package.CONVERSATION_ASSOCIATION__INNER_CONVERSATION_NODE_REF: setInnerConversationNodeRef((ConversationNode) newValue); return; case Bpmn2Package.CONVERSATION_ASSOCIATION__OUTER_CONVERSATION_NODE_REF: setOuterConversationNodeRef((ConversationNode) newValue); return; } super.eSet(featureID, newValue); } /** * * * @generated */ @Override public void eUnset(int featureID) { switch (featureID) { case Bpmn2Package.CONVERSATION_ASSOCIATION__INNER_CONVERSATION_NODE_REF: setInnerConversationNodeRef((ConversationNode) null); return; case Bpmn2Package.CONVERSATION_ASSOCIATION__OUTER_CONVERSATION_NODE_REF: setOuterConversationNodeRef((ConversationNode) null); return; } super.eUnset(featureID); } /** * * * @generated */ @Override public boolean eIsSet(int featureID) { switch (featureID) { case Bpmn2Package.CONVERSATION_ASSOCIATION__INNER_CONVERSATION_NODE_REF: return innerConversationNodeRef != null; case Bpmn2Package.CONVERSATION_ASSOCIATION__OUTER_CONVERSATION_NODE_REF: return outerConversationNodeRef != null; } return super.eIsSet(featureID); } } //ConversationAssociationImpl




© 2015 - 2025 Weber Informatics LLC | Privacy Policy