/** * <copyright> * * Copyright (c) 2011-2013 Obeo. * 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: * Obeo - initial API and implementation * * </copyright> */ package org.obeonetwork.dsl.bpmn2.impl; import org.eclipse.emf.ecore.EClass; import org.obeonetwork.dsl.bpmn2.Bpmn2Package; import org.obeonetwork.dsl.bpmn2.Gateway; import org.obeonetwork.dsl.bpmn2.GatewayDirection; /** * <!-- begin-user-doc --> * An implementation of the model object '<em><b>Gateway</b></em>'. * <!-- end-user-doc --> * <p> * The following features are implemented: * </p> * <ul> * <li>{@link org.obeonetwork.dsl.bpmn2.impl.GatewayImpl#getGatewayDirection <em>Gateway Direction</em>}</li> * </ul> * * @generated */ public abstract class GatewayImpl extends FlowNodeImpl implements Gateway { /** * The default value of the '{@link #getGatewayDirection() <em>Gateway Direction</em>}' attribute. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #getGatewayDirection() * @generated * @ordered */ protected static final GatewayDirection GATEWAY_DIRECTION_EDEFAULT = GatewayDirection.UNSPECIFIED; /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ protected GatewayImpl() { super(); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override protected EClass eStaticClass() { return Bpmn2Package.Literals.GATEWAY; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public GatewayDirection getGatewayDirection() { return (GatewayDirection) eDynamicGet(Bpmn2Package.GATEWAY__GATEWAY_DIRECTION, Bpmn2Package.Literals.GATEWAY__GATEWAY_DIRECTION, true, true); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public void setGatewayDirection(GatewayDirection newGatewayDirection) { eDynamicSet(Bpmn2Package.GATEWAY__GATEWAY_DIRECTION, Bpmn2Package.Literals.GATEWAY__GATEWAY_DIRECTION, newGatewayDirection); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public Object eGet(int featureID, boolean resolve, boolean coreType) { switch (featureID) { case Bpmn2Package.GATEWAY__GATEWAY_DIRECTION: return getGatewayDirection(); } return super.eGet(featureID, resolve, coreType); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public void eSet(int featureID, Object newValue) { switch (featureID) { case Bpmn2Package.GATEWAY__GATEWAY_DIRECTION: setGatewayDirection((GatewayDirection) newValue); return; } super.eSet(featureID, newValue); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public void eUnset(int featureID) { switch (featureID) { case Bpmn2Package.GATEWAY__GATEWAY_DIRECTION: setGatewayDirection(GATEWAY_DIRECTION_EDEFAULT); return; } super.eUnset(featureID); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public boolean eIsSet(int featureID) { switch (featureID) { case Bpmn2Package.GATEWAY__GATEWAY_DIRECTION: return getGatewayDirection() != GATEWAY_DIRECTION_EDEFAULT; } return super.eIsSet(featureID); } } //GatewayImpl