/** */ package ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.impl; import ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.*; 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; /** * * An implementation of the model Factory. * * @generated */ public class yakinduFactoryImpl extends EFactoryImpl implements yakinduFactory { /** * Creates the default factory implementation. * * * @generated */ public static yakinduFactory init() { try { yakinduFactory theyakinduFactory = (yakinduFactory)EPackage.Registry.INSTANCE.getEFactory(yakinduPackage.eNS_URI); if (theyakinduFactory != null) { return theyakinduFactory; } } catch (Exception exception) { EcorePlugin.INSTANCE.log(exception); } return new yakinduFactoryImpl(); } /** * Creates an instance of the factory. * * * @generated */ public yakinduFactoryImpl() { super(); } /** * * * @generated */ @Override public EObject create(EClass eClass) { switch (eClass.getClassifierID()) { case yakinduPackage.REGION: return createRegion(); case yakinduPackage.TRANSITION: return createTransition(); case yakinduPackage.STATECHART: return createStatechart(); case yakinduPackage.ENTRY: return createEntry(); case yakinduPackage.SYNCHRONIZATION: return createSynchronization(); case yakinduPackage.STATE: return createState(); case yakinduPackage.CHOICE: return createChoice(); case yakinduPackage.EXIT: return createExit(); case yakinduPackage.FINAL_STATE: return createFinalState(); default: throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); } } /** * * * @generated */ public Region createRegion() { RegionImpl region = new RegionImpl(); return region; } /** * * * @generated */ public Transition createTransition() { TransitionImpl transition = new TransitionImpl(); return transition; } /** * * * @generated */ public Statechart createStatechart() { StatechartImpl statechart = new StatechartImpl(); return statechart; } /** * * * @generated */ public Entry createEntry() { EntryImpl entry = new EntryImpl(); return entry; } /** * * * @generated */ public Synchronization createSynchronization() { SynchronizationImpl synchronization = new SynchronizationImpl(); return synchronization; } /** * * * @generated */ public State createState() { StateImpl state = new StateImpl(); return state; } /** * * * @generated */ public Choice createChoice() { ChoiceImpl choice = new ChoiceImpl(); return choice; } /** * * * @generated */ public Exit createExit() { ExitImpl exit = new ExitImpl(); return exit; } /** * * * @generated */ public FinalState createFinalState() { FinalStateImpl finalState = new FinalStateImpl(); return finalState; } /** * * * @generated */ public yakinduPackage getyakinduPackage() { return (yakinduPackage)getEPackage(); } /** * * * @deprecated * @generated */ @Deprecated public static yakinduPackage getPackage() { return yakinduPackage.eINSTANCE; } } //yakinduFactoryImpl