| /** |
| * Copyright (c) 2008-2014 EclipseSource Muenchen GmbH and others. |
| * |
| * 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: |
| */ |
| package org.eclipse.emf.emfstore.internal.fuzzy.emf.config.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 org.eclipse.emf.emfstore.internal.fuzzy.emf.config.ConfigFactory; |
| import org.eclipse.emf.emfstore.internal.fuzzy.emf.config.ConfigPackage; |
| import org.eclipse.emf.emfstore.internal.fuzzy.emf.config.DiffReport; |
| import org.eclipse.emf.emfstore.internal.fuzzy.emf.config.MutatorConfig; |
| import org.eclipse.emf.emfstore.internal.fuzzy.emf.config.Root; |
| import org.eclipse.emf.emfstore.internal.fuzzy.emf.config.TestConfig; |
| import org.eclipse.emf.emfstore.internal.fuzzy.emf.config.TestDiff; |
| import org.eclipse.emf.emfstore.internal.fuzzy.emf.config.TestResult; |
| import org.eclipse.emf.emfstore.internal.fuzzy.emf.config.TestRun; |
| |
| /** |
| * <!-- begin-user-doc --> |
| * An implementation of the model <b>Factory</b>. |
| * <!-- end-user-doc --> |
| * |
| * @generated |
| */ |
| public class ConfigFactoryImpl extends EFactoryImpl implements ConfigFactory { |
| /** |
| * Creates the default factory implementation. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * |
| * @generated |
| */ |
| public static ConfigFactory init() { |
| try { |
| ConfigFactory theConfigFactory = (ConfigFactory) EPackage.Registry.INSTANCE |
| .getEFactory(ConfigPackage.eNS_URI); |
| if (theConfigFactory != null) { |
| return theConfigFactory; |
| } |
| } catch (Exception exception) { |
| EcorePlugin.INSTANCE.log(exception); |
| } |
| return new ConfigFactoryImpl(); |
| } |
| |
| /** |
| * Creates an instance of the factory. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * |
| * @generated |
| */ |
| public ConfigFactoryImpl() { |
| super(); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * |
| * @generated |
| */ |
| @Override |
| public EObject create(EClass eClass) { |
| switch (eClass.getClassifierID()) { |
| case ConfigPackage.TEST_CONFIG: |
| return createTestConfig(); |
| case ConfigPackage.TEST_RUN: |
| return createTestRun(); |
| case ConfigPackage.TEST_RESULT: |
| return createTestResult(); |
| case ConfigPackage.TEST_DIFF: |
| return createTestDiff(); |
| case ConfigPackage.DIFF_REPORT: |
| return createDiffReport(); |
| case ConfigPackage.ROOT: |
| return createRoot(); |
| case ConfigPackage.MUTATOR_CONFIG: |
| return createMutatorConfig(); |
| default: |
| throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); //$NON-NLS-1$ //$NON-NLS-2$ |
| } |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * |
| * @generated |
| */ |
| public TestConfig createTestConfig() { |
| TestConfigImpl testConfig = new TestConfigImpl(); |
| return testConfig; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * |
| * @generated |
| */ |
| public TestRun createTestRun() { |
| TestRunImpl testRun = new TestRunImpl(); |
| return testRun; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * |
| * @generated |
| */ |
| public TestResult createTestResult() { |
| TestResultImpl testResult = new TestResultImpl(); |
| return testResult; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * |
| * @generated |
| */ |
| public TestDiff createTestDiff() { |
| TestDiffImpl testDiff = new TestDiffImpl(); |
| return testDiff; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * |
| * @generated |
| */ |
| public DiffReport createDiffReport() { |
| DiffReportImpl diffReport = new DiffReportImpl(); |
| return diffReport; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * |
| * @generated |
| */ |
| public Root createRoot() { |
| RootImpl root = new RootImpl(); |
| return root; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * |
| * @generated |
| */ |
| public MutatorConfig createMutatorConfig() { |
| MutatorConfigImpl mutatorConfig = new MutatorConfigImpl(); |
| return mutatorConfig; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * |
| * @generated |
| */ |
| public ConfigPackage getConfigPackage() { |
| return (ConfigPackage) getEPackage(); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * |
| * @deprecated |
| * @generated |
| */ |
| @Deprecated |
| public static ConfigPackage getPackage() { |
| return ConfigPackage.eINSTANCE; |
| } |
| |
| } // ConfigFactoryImpl |