/** */ package mutator.impl; import mutator.*; 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 MutatorFactoryImpl extends EFactoryImpl implements MutatorFactory { /** * Creates the default factory implementation. * * * @generated */ public static MutatorFactory init() { try { MutatorFactory theMutatorFactory = (MutatorFactory)EPackage.Registry.INSTANCE.getEFactory(MutatorPackage.eNS_URI); if (theMutatorFactory != null) { return theMutatorFactory; } } catch (Exception exception) { EcorePlugin.INSTANCE.log(exception); } return new MutatorFactoryImpl(); } /** * Creates an instance of the factory. * * * @generated */ public MutatorFactoryImpl() { super(); } /** * * * @generated */ @Override public EObject create(EClass eClass) { switch (eClass.getClassifierID()) { case MutatorPackage.RANDOM_MUTATE_MODEL: return createRandomMutateModel(); default: throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); } } /** * * * @generated */ @Override public RandomMutateModel createRandomMutateModel() { RandomMutateModelImpl randomMutateModel = new RandomMutateModelImpl(); return randomMutateModel; } /** * * * @generated */ @Override public MutatorPackage getMutatorPackage() { return (MutatorPackage)getEPackage(); } /** * * * @deprecated * @generated */ @Deprecated public static MutatorPackage getPackage() { return MutatorPackage.eINSTANCE; } } //MutatorFactoryImpl