/**
 */
package org.etsi.mts.tdl.extendedconfigurations.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.etsi.mts.tdl.extendedconfigurations.*;

/**
 * <!-- begin-user-doc -->
 * An implementation of the model <b>Factory</b>.
 * <!-- end-user-doc -->
 * @generated
 */
public class ExtendedConfigurationsFactoryImpl extends EFactoryImpl implements ExtendedConfigurationsFactory
{
	/**
	 * Creates the default factory implementation.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static ExtendedConfigurationsFactory init()
	{
		try
		{
			ExtendedConfigurationsFactory theExtendedConfigurationsFactory = (ExtendedConfigurationsFactory)EPackage.Registry.INSTANCE.getEFactory(ExtendedConfigurationsPackage.eNS_URI);
			if (theExtendedConfigurationsFactory != null)
			{
				return theExtendedConfigurationsFactory;
			}
		}
		catch (Exception exception)
		{
			EcorePlugin.INSTANCE.log(exception);
		}
		return new ExtendedConfigurationsFactoryImpl();
	}

	/**
	 * Creates an instance of the factory.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public ExtendedConfigurationsFactoryImpl()
	{
		super();
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public EObject create(EClass eClass)
	{
		switch (eClass.getClassifierID())
		{
			case ExtendedConfigurationsPackage.EXTENDED_TEST_CONFIGURATION: return createExtendedTestConfiguration();
			case ExtendedConfigurationsPackage.TEST_CONFIGURATION_INSTANCE: return createTestConfigurationInstance();
			case ExtendedConfigurationsPackage.COMPONENT_REFERENCE: return createComponentReference();
			case ExtendedConfigurationsPackage.COMPONENT_MERGE: return createComponentMerge();
			case ExtendedConfigurationsPackage.COMPONENT_HIDE: return createComponentHide();
			case ExtendedConfigurationsPackage.REASSIGN_ROLE: return createReassignRole();
			case ExtendedConfigurationsPackage.COMPONENT_ALIAS: return createComponentAlias();
			case ExtendedConfigurationsPackage.EXTENDED_GATE_REFERENCE: return createExtendedGateReference();
			default:
				throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier");
		}
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public ExtendedTestConfiguration createExtendedTestConfiguration()
	{
		ExtendedTestConfigurationImpl extendedTestConfiguration = new ExtendedTestConfigurationImpl();
		return extendedTestConfiguration;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public TestConfigurationInstance createTestConfigurationInstance()
	{
		TestConfigurationInstanceImpl testConfigurationInstance = new TestConfigurationInstanceImpl();
		return testConfigurationInstance;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public ComponentReference createComponentReference()
	{
		ComponentReferenceImpl componentReference = new ComponentReferenceImpl();
		return componentReference;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public ComponentMerge createComponentMerge()
	{
		ComponentMergeImpl componentMerge = new ComponentMergeImpl();
		return componentMerge;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public ComponentHide createComponentHide()
	{
		ComponentHideImpl componentHide = new ComponentHideImpl();
		return componentHide;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public ReassignRole createReassignRole()
	{
		ReassignRoleImpl reassignRole = new ReassignRoleImpl();
		return reassignRole;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public ComponentAlias createComponentAlias()
	{
		ComponentAliasImpl componentAlias = new ComponentAliasImpl();
		return componentAlias;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public ExtendedGateReference createExtendedGateReference()
	{
		ExtendedGateReferenceImpl extendedGateReference = new ExtendedGateReferenceImpl();
		return extendedGateReference;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public ExtendedConfigurationsPackage getExtendedConfigurationsPackage()
	{
		return (ExtendedConfigurationsPackage)getEPackage();
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @deprecated
	 * @generated
	 */
	@Deprecated
	public static ExtendedConfigurationsPackage getPackage()
	{
		return ExtendedConfigurationsPackage.eINSTANCE;
	}

} //ExtendedConfigurationsFactoryImpl
