/** */ package simpleStatechart.impl; 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; import simpleStatechart.*; /** * * An implementation of the model Factory. * * @generated */ public class SimpleStatechartFactoryImpl extends EFactoryImpl implements SimpleStatechartFactory { /** * Creates the default factory implementation. * * * @generated */ public static SimpleStatechartFactory init() { try { SimpleStatechartFactory theSimpleStatechartFactory = (SimpleStatechartFactory)EPackage.Registry.INSTANCE.getEFactory(SimpleStatechartPackage.eNS_URI); if (theSimpleStatechartFactory != null) { return theSimpleStatechartFactory; } } catch (Exception exception) { EcorePlugin.INSTANCE.log(exception); } return new SimpleStatechartFactoryImpl(); } /** * Creates an instance of the factory. * * * @generated */ public SimpleStatechartFactoryImpl() { super(); } /** * * * @generated */ @Override public EObject create(EClass eClass) { switch (eClass.getClassifierID()) { case SimpleStatechartPackage.STATE: return createState(); case SimpleStatechartPackage.ENTRY: return createEntry(); case SimpleStatechartPackage.STATECHART: return createStatechart(); default: throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); } } /** * * * @generated */ public State createState() { StateImpl state = new StateImpl(); return state; } /** * * * @generated */ public Entry createEntry() { EntryImpl entry = new EntryImpl(); return entry; } /** * * * @generated */ public Statechart createStatechart() { StatechartImpl statechart = new StatechartImpl(); return statechart; } /** * * * @generated */ public SimpleStatechartPackage getSimpleStatechartPackage() { return (SimpleStatechartPackage)getEPackage(); } /** * * * @deprecated * @generated */ @Deprecated public static SimpleStatechartPackage getPackage() { return SimpleStatechartPackage.eINSTANCE; } } //SimpleStatechartFactoryImpl