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

org.eclipse.bpmn2.di.impl.BPMNPlaneImpl 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.di.impl;

import com.google.gwt.user.client.rpc.GwtTransient;

import org.eclipse.bpmn2.BaseElement;

import org.eclipse.bpmn2.di.BPMNPlane;
import org.eclipse.bpmn2.di.BpmnDiPackage;

import org.eclipse.dd.di.impl.PlaneImpl;

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 'BPMN Plane'.
 * 
 * 

* The following features are implemented: *

*
    *
  • {@link org.eclipse.bpmn2.di.impl.BPMNPlaneImpl#getBpmnElement Bpmn Element}
  • *
* * @generated */ public class BPMNPlaneImpl extends PlaneImpl implements BPMNPlane { /** * The cached value of the '{@link #getBpmnElement() Bpmn Element}' reference. * * * @see #getBpmnElement() * @generated * @ordered */ @GwtTransient protected BaseElement bpmnElement; /** * * * @generated */ protected BPMNPlaneImpl() { super(); } /** * * * @generated */ @Override protected EClass eStaticClass() { return BpmnDiPackage.Literals.BPMN_PLANE; } /** * * * @generated */ @Override public BaseElement getBpmnElement() { if (bpmnElement != null && bpmnElement.eIsProxy()) { InternalEObject oldBpmnElement = (InternalEObject) bpmnElement; bpmnElement = (BaseElement) eResolveProxy(oldBpmnElement); if (bpmnElement != oldBpmnElement) { if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.RESOLVE, BpmnDiPackage.BPMN_PLANE__BPMN_ELEMENT, oldBpmnElement, bpmnElement)); } } return bpmnElement; } /** * * * @generated */ public BaseElement basicGetBpmnElement() { return bpmnElement; } /** * * * @generated */ @Override public void setBpmnElement(BaseElement newBpmnElement) { BaseElement oldBpmnElement = bpmnElement; bpmnElement = newBpmnElement; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, BpmnDiPackage.BPMN_PLANE__BPMN_ELEMENT, oldBpmnElement, bpmnElement)); } /** * * * @generated */ @Override public Object eGet(int featureID, boolean resolve, boolean coreType) { switch (featureID) { case BpmnDiPackage.BPMN_PLANE__BPMN_ELEMENT: if (resolve) return getBpmnElement(); return basicGetBpmnElement(); } return super.eGet(featureID, resolve, coreType); } /** * * * @generated */ @Override public void eSet(int featureID, Object newValue) { switch (featureID) { case BpmnDiPackage.BPMN_PLANE__BPMN_ELEMENT: setBpmnElement((BaseElement) newValue); return; } super.eSet(featureID, newValue); } /** * * * @generated */ @Override public void eUnset(int featureID) { switch (featureID) { case BpmnDiPackage.BPMN_PLANE__BPMN_ELEMENT: setBpmnElement((BaseElement) null); return; } super.eUnset(featureID); } /** * * * @generated */ @Override public boolean eIsSet(int featureID) { switch (featureID) { case BpmnDiPackage.BPMN_PLANE__BPMN_ELEMENT: return bpmnElement != null; } return super.eIsSet(featureID); } } //BPMNPlaneImpl




© 2015 - 2025 Weber Informatics LLC | Privacy Policy