/** * Copyright (c) 2012-2016 Marsha Chechik, Alessio Di Sandro, Michalis Famelis, * Rick Salay. * 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: * Alessio Di Sandro - Implementation. */ package edu.toronto.cs.se.modelepedia.statemachine_mavo.impl; import edu.toronto.cs.se.modelepedia.statemachine_mavo.*; import org.eclipse.emf.ecore.EClass; import org.eclipse.emf.ecore.EObject; import org.eclipse.emf.ecore.EPackage; import org.eclipse.emf.ecore.impl.EFactoryImpl; import org.eclipse.emf.ecore.plugin.EcorePlugin; /** * <!-- begin-user-doc --> * An implementation of the model <b>Factory</b>. * <!-- end-user-doc --> * @generated */ public class StateMachine_MAVOFactoryImpl extends EFactoryImpl implements StateMachine_MAVOFactory { /** * Creates the default factory implementation. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public static StateMachine_MAVOFactory init() { try { StateMachine_MAVOFactory theStateMachine_MAVOFactory = (StateMachine_MAVOFactory)EPackage.Registry.INSTANCE.getEFactory(StateMachine_MAVOPackage.eNS_URI); if (theStateMachine_MAVOFactory != null) { return theStateMachine_MAVOFactory; } } catch (Exception exception) { EcorePlugin.INSTANCE.log(exception); } return new StateMachine_MAVOFactoryImpl(); } /** * Creates an instance of the factory. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public StateMachine_MAVOFactoryImpl() { super(); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public EObject create(EClass eClass) { switch (eClass.getClassifierID()) { case StateMachine_MAVOPackage.STATE_MACHINE: return createStateMachine(); case StateMachine_MAVOPackage.STATE: return createState(); case StateMachine_MAVOPackage.INITIAL_STATE: return createInitialState(); case StateMachine_MAVOPackage.FINAL_STATE: return createFinalState(); case StateMachine_MAVOPackage.TRANSITION: return createTransition(); case StateMachine_MAVOPackage.STATE_ACTION: return createStateAction(); default: throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); } } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public StateMachine createStateMachine() { StateMachineImpl stateMachine = new StateMachineImpl(); return stateMachine; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public State createState() { StateImpl state = new StateImpl(); return state; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public InitialState createInitialState() { InitialStateImpl initialState = new InitialStateImpl(); return initialState; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public FinalState createFinalState() { FinalStateImpl finalState = new FinalStateImpl(); return finalState; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public Transition createTransition() { TransitionImpl transition = new TransitionImpl(); return transition; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public StateAction createStateAction() { StateActionImpl stateAction = new StateActionImpl(); return stateAction; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public StateMachine_MAVOPackage getStateMachine_MAVOPackage() { return (StateMachine_MAVOPackage)getEPackage(); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @deprecated * @generated */ @Deprecated public static StateMachine_MAVOPackage getPackage() { return StateMachine_MAVOPackage.eINSTANCE; } } //StateMachine_MAVOFactoryImpl