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

org.eclipse.bpmn2.impl.MessageFlowAssociationImpl 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.MessageFlow;
import org.eclipse.bpmn2.MessageFlowAssociation;

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 'Message Flow Association'.
 * 
 * 

* The following features are implemented: *

*
    *
  • {@link org.eclipse.bpmn2.impl.MessageFlowAssociationImpl#getInnerMessageFlowRef Inner Message Flow Ref}
  • *
  • {@link org.eclipse.bpmn2.impl.MessageFlowAssociationImpl#getOuterMessageFlowRef Outer Message Flow Ref}
  • *
* * @generated */ public class MessageFlowAssociationImpl extends BaseElementImpl implements MessageFlowAssociation { /** * The cached value of the '{@link #getInnerMessageFlowRef() Inner Message Flow Ref}' reference. * * * @see #getInnerMessageFlowRef() * @generated * @ordered */ @GwtTransient protected MessageFlow innerMessageFlowRef; /** * The cached value of the '{@link #getOuterMessageFlowRef() Outer Message Flow Ref}' reference. * * * @see #getOuterMessageFlowRef() * @generated * @ordered */ @GwtTransient protected MessageFlow outerMessageFlowRef; /** * * * @generated */ protected MessageFlowAssociationImpl() { super(); } /** * * * @generated */ @Override protected EClass eStaticClass() { return Bpmn2Package.Literals.MESSAGE_FLOW_ASSOCIATION; } /** * * * @generated */ @Override public MessageFlow getInnerMessageFlowRef() { if (innerMessageFlowRef != null && innerMessageFlowRef.eIsProxy()) { InternalEObject oldInnerMessageFlowRef = (InternalEObject) innerMessageFlowRef; innerMessageFlowRef = (MessageFlow) eResolveProxy(oldInnerMessageFlowRef); if (innerMessageFlowRef != oldInnerMessageFlowRef) { if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.RESOLVE, Bpmn2Package.MESSAGE_FLOW_ASSOCIATION__INNER_MESSAGE_FLOW_REF, oldInnerMessageFlowRef, innerMessageFlowRef)); } } return innerMessageFlowRef; } /** * * * @generated */ public MessageFlow basicGetInnerMessageFlowRef() { return innerMessageFlowRef; } /** * * * @generated */ @Override public void setInnerMessageFlowRef(MessageFlow newInnerMessageFlowRef) { MessageFlow oldInnerMessageFlowRef = innerMessageFlowRef; innerMessageFlowRef = newInnerMessageFlowRef; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, Bpmn2Package.MESSAGE_FLOW_ASSOCIATION__INNER_MESSAGE_FLOW_REF, oldInnerMessageFlowRef, innerMessageFlowRef)); } /** * * * @generated */ @Override public MessageFlow getOuterMessageFlowRef() { if (outerMessageFlowRef != null && outerMessageFlowRef.eIsProxy()) { InternalEObject oldOuterMessageFlowRef = (InternalEObject) outerMessageFlowRef; outerMessageFlowRef = (MessageFlow) eResolveProxy(oldOuterMessageFlowRef); if (outerMessageFlowRef != oldOuterMessageFlowRef) { if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.RESOLVE, Bpmn2Package.MESSAGE_FLOW_ASSOCIATION__OUTER_MESSAGE_FLOW_REF, oldOuterMessageFlowRef, outerMessageFlowRef)); } } return outerMessageFlowRef; } /** * * * @generated */ public MessageFlow basicGetOuterMessageFlowRef() { return outerMessageFlowRef; } /** * * * @generated */ @Override public void setOuterMessageFlowRef(MessageFlow newOuterMessageFlowRef) { MessageFlow oldOuterMessageFlowRef = outerMessageFlowRef; outerMessageFlowRef = newOuterMessageFlowRef; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, Bpmn2Package.MESSAGE_FLOW_ASSOCIATION__OUTER_MESSAGE_FLOW_REF, oldOuterMessageFlowRef, outerMessageFlowRef)); } /** * * * @generated */ @Override public Object eGet(int featureID, boolean resolve, boolean coreType) { switch (featureID) { case Bpmn2Package.MESSAGE_FLOW_ASSOCIATION__INNER_MESSAGE_FLOW_REF: if (resolve) return getInnerMessageFlowRef(); return basicGetInnerMessageFlowRef(); case Bpmn2Package.MESSAGE_FLOW_ASSOCIATION__OUTER_MESSAGE_FLOW_REF: if (resolve) return getOuterMessageFlowRef(); return basicGetOuterMessageFlowRef(); } return super.eGet(featureID, resolve, coreType); } /** * * * @generated */ @Override public void eSet(int featureID, Object newValue) { switch (featureID) { case Bpmn2Package.MESSAGE_FLOW_ASSOCIATION__INNER_MESSAGE_FLOW_REF: setInnerMessageFlowRef((MessageFlow) newValue); return; case Bpmn2Package.MESSAGE_FLOW_ASSOCIATION__OUTER_MESSAGE_FLOW_REF: setOuterMessageFlowRef((MessageFlow) newValue); return; } super.eSet(featureID, newValue); } /** * * * @generated */ @Override public void eUnset(int featureID) { switch (featureID) { case Bpmn2Package.MESSAGE_FLOW_ASSOCIATION__INNER_MESSAGE_FLOW_REF: setInnerMessageFlowRef((MessageFlow) null); return; case Bpmn2Package.MESSAGE_FLOW_ASSOCIATION__OUTER_MESSAGE_FLOW_REF: setOuterMessageFlowRef((MessageFlow) null); return; } super.eUnset(featureID); } /** * * * @generated */ @Override public boolean eIsSet(int featureID) { switch (featureID) { case Bpmn2Package.MESSAGE_FLOW_ASSOCIATION__INNER_MESSAGE_FLOW_REF: return innerMessageFlowRef != null; case Bpmn2Package.MESSAGE_FLOW_ASSOCIATION__OUTER_MESSAGE_FLOW_REF: return outerMessageFlowRef != null; } return super.eIsSet(featureID); } } //MessageFlowAssociationImpl




© 2015 - 2025 Weber Informatics LLC | Privacy Policy