/**
 * <copyright>
 * </copyright>
 *
 * $Id$
 */
package fr.femtost.disc.eclipse.vhdlamslibrary.vhdlamsforsysmlprofile.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 fr.femtost.disc.eclipse.vhdlamslibrary.vhdlamsforsysmlprofile.*;


/**
 * <!-- begin-user-doc -->
 * An implementation of the model <b>Factory</b>.
 * <!-- end-user-doc -->
 * @generated
 */
public class VhdlamsforsysmlprofileFactoryImpl extends EFactoryImpl implements VhdlamsforsysmlprofileFactory {
	/**
	 * Creates the default factory implementation.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static VhdlamsforsysmlprofileFactory init() {
		try {
			VhdlamsforsysmlprofileFactory theVhdlamsforsysmlprofileFactory = (VhdlamsforsysmlprofileFactory)EPackage.Registry.INSTANCE.getEFactory("http:///vhdlamsforsysmlprofile.ecore"); 
			if (theVhdlamsforsysmlprofileFactory != null) {
				return theVhdlamsforsysmlprofileFactory;
			}
		}
		catch (Exception exception) {
			EcorePlugin.INSTANCE.log(exception);
		}
		return new VhdlamsforsysmlprofileFactoryImpl();
	}

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

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public EObject create(EClass eClass) {
		switch (eClass.getClassifierID()) {
			case VhdlamsforsysmlprofilePackage.PSL: return createPSL();
			case VhdlamsforsysmlprofilePackage.NATURE: return createNature();
			case VhdlamsforsysmlprofilePackage.PLUS: return createplus();
			case VhdlamsforsysmlprofilePackage.MINUS: return createminus();
			case VhdlamsforsysmlprofilePackage.QUANTITY: return createquantity();
			default:
				throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier");
		}
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public PSL createPSL() {
		PSLImpl psl = new PSLImpl();
		return psl;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public Nature createNature() {
		NatureImpl nature = new NatureImpl();
		return nature;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public plus createplus() {
		plusImpl plus = new plusImpl();
		return plus;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public minus createminus() {
		minusImpl minus = new minusImpl();
		return minus;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public quantity createquantity() {
		quantityImpl quantity = new quantityImpl();
		return quantity;
	}

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

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

} //VhdlamsforsysmlprofileFactoryImpl
