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