/**
* <copyright>
* </copyright>
*
* $Id$
*/
package org.eclipse.buckminster.rmap.pde.impl;
import org.eclipse.buckminster.rmap.pde.*;
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;
/**
* <!-- begin-user-doc --> An implementation of the model <b>Factory</b>. <!--
* end-user-doc -->
*
* @generated
*/
public class PdeFactoryImpl extends EFactoryImpl implements PdeFactory {
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
*
* @deprecated
* @generated
*/
@Deprecated
public static PdePackage getPackage() {
return PdePackage.eINSTANCE;
}
/**
* Creates the default factory implementation. <!-- begin-user-doc --> <!--
* end-user-doc -->
*
* @generated
*/
public static PdeFactory init() {
try {
PdeFactory thePdeFactory = (PdeFactory) EPackage.Registry.INSTANCE.getEFactory("http://www.eclipse.org/buckminster/PDEMapProvider-1.0");
if (thePdeFactory != null) {
return thePdeFactory;
}
} catch (Exception exception) {
EcorePlugin.INSTANCE.log(exception);
}
return new PdeFactoryImpl();
}
/**
* Creates an instance of the factory. <!-- begin-user-doc --> <!--
* end-user-doc -->
*
* @generated
*/
public PdeFactoryImpl() {
super();
}
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
*
* @generated
*/
@Override
public EObject create(EClass eClass) {
switch (eClass.getClassifierID()) {
case PdePackage.PDE_MAP_PROVIDER:
return createPDEMapProvider();
default:
throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier");
}
}
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
*
* @generated
*/
@Override
public PDEMapProvider createPDEMapProvider() {
PDEMapProviderImpl pdeMapProvider = new PDEMapProviderImpl();
return pdeMapProvider;
}
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
*
* @generated
*/
@Override
public PdePackage getPdePackage() {
return (PdePackage) getEPackage();
}
} // PdeFactoryImpl