blob: 0cd760bcc1bb57608b8fe8dca0a0ae8fa798d8a1 [file] [log] [blame]
/**
* Copyright (c) 2014 Fraunhofer FOKUS
* 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:
* Max Bureck
*/
package org.eclipse.upr.bpmnprof.impl;
import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.impl.ENotificationImpl;
import org.eclipse.upr.bpmnprof.BpmnprofPackage;
import org.eclipse.upr.bpmnprof.StartEvent;
/**
* <!-- begin-user-doc -->
* An implementation of the model object '<em><b>Start Event</b></em>'.
* <!-- end-user-doc -->
* <p>
* The following features are implemented:
* <ul>
* <li>{@link org.eclipse.upr.bpmnprof.impl.StartEventImpl#isInterrupting <em>Is Interrupting</em>}</li>
* </ul>
* </p>
*
* @generated
*/
public class StartEventImpl extends CatchEventImpl implements StartEvent {
/**
* The default value of the '{@link #isInterrupting() <em>Is Interrupting</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #isInterrupting()
* @generated
* @ordered
*/
protected static final boolean IS_INTERRUPTING_EDEFAULT = true;
/**
* The cached value of the '{@link #isInterrupting() <em>Is Interrupting</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #isInterrupting()
* @generated
* @ordered
*/
protected boolean isInterrupting = IS_INTERRUPTING_EDEFAULT;
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected StartEventImpl() {
super();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
protected EClass eStaticClass() {
return BpmnprofPackage.eINSTANCE.getStartEvent();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public boolean isInterrupting() {
return isInterrupting;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setIsInterrupting(boolean newIsInterrupting) {
boolean oldIsInterrupting = isInterrupting;
isInterrupting = newIsInterrupting;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, BpmnprofPackage.START_EVENT__IS_INTERRUPTING, oldIsInterrupting, isInterrupting));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
switch (featureID) {
case BpmnprofPackage.START_EVENT__IS_INTERRUPTING:
return isInterrupting();
}
return super.eGet(featureID, resolve, coreType);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void eSet(int featureID, Object newValue) {
switch (featureID) {
case BpmnprofPackage.START_EVENT__IS_INTERRUPTING:
setIsInterrupting((Boolean)newValue);
return;
}
super.eSet(featureID, newValue);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void eUnset(int featureID) {
switch (featureID) {
case BpmnprofPackage.START_EVENT__IS_INTERRUPTING:
setIsInterrupting(IS_INTERRUPTING_EDEFAULT);
return;
}
super.eUnset(featureID);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public boolean eIsSet(int featureID) {
switch (featureID) {
case BpmnprofPackage.START_EVENT__IS_INTERRUPTING:
return isInterrupting != IS_INTERRUPTING_EDEFAULT;
}
return super.eIsSet(featureID);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public String toString() {
if (eIsProxy()) return super.toString();
StringBuffer result = new StringBuffer(super.toString());
result.append(" (isInterrupting: ");
result.append(isInterrupting);
result.append(')');
return result.toString();
}
} //StartEventImpl