/**
* <copyright>
* </copyright>
*
* $Id$
*/
package de.hub.emffrag.fragmentation;
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 InternalFactoryImpl extends EFactoryImpl implements InternalFactory {
/**
* Creates the default factory implementation.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public static InternalFactory init() {
try {
InternalFactory theInternalFactory = (InternalFactory)EPackage.Registry.INSTANCE.getEFactory("http://de.hub.emffrag/emffrag_internal");
if (theInternalFactory != null) {
return theInternalFactory;
}
}
catch (Exception exception) {
EcorePlugin.INSTANCE.log(exception);
}
return new InternalFactoryImpl();
}
/**
* Creates an instance of the factory.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public InternalFactoryImpl() {
super();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public EObject create(EClass eClass) {
switch (eClass.getClassifierID()) {
case InternalPackage.FINTERNAL_OBJECT: return createFInternalObject();
default:
throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier");
}
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public FInternalObject createFInternalObject() {
FInternalObjectImpl fInternalObject = new FInternalObjectImpl();
return fInternalObject;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public InternalPackage getInternalPackage() {
return (InternalPackage)getEPackage();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @deprecated
* @generated
*/
@Deprecated
public static InternalPackage getPackage() {
return InternalPackage.eINSTANCE;
}
} //InternalFactoryImpl