/** * <copyright> * </copyright> * * $Id$ */ package edu.isistan.uima.unified.typesystems.sad.impl; import edu.isistan.uima.unified.typesystems.sad.*; 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 SadFactoryImpl extends EFactoryImpl implements SadFactory { /** * Creates the default factory implementation. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public static SadFactory init() { try { SadFactory theSadFactory = (SadFactory)EPackage.Registry.INSTANCE.getEFactory("http:///edu/isistan/uima/unified/typesystems/sad.ecore"); if (theSadFactory != null) { return theSadFactory; } } catch (Exception exception) { EcorePlugin.INSTANCE.log(exception); } return new SadFactoryImpl(); } /** * Creates an instance of the factory. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public SadFactoryImpl() { super(); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public EObject create(EClass eClass) { switch (eClass.getClassifierID()) { case SadPackage.SAD: return createSad(); case SadPackage.SAD_SECTION: return createSadSection(); default: throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); } } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public Sad createSad() { SadImpl sad = new SadImpl(); return sad; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public SadSection createSadSection() { SadSectionImpl sadSection = new SadSectionImpl(); return sadSection; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public SadPackage getSadPackage() { return (SadPackage)getEPackage(); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @deprecated * @generated */ @Deprecated public static SadPackage getPackage() { return SadPackage.eINSTANCE; } } //SadFactoryImpl