/** * <copyright> * </copyright> * * $Id$ */ package ui.data_binding.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 ui.data_binding.*; /** * <!-- begin-user-doc --> * An implementation of the model <b>Factory</b>. * <!-- end-user-doc --> * @generated */ public class Data_bindingFactoryImpl extends EFactoryImpl implements Data_bindingFactory { /** * Creates the default factory implementation. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public static Data_bindingFactory init() { try { Data_bindingFactory theData_bindingFactory = (Data_bindingFactory)EPackage.Registry.INSTANCE.getEFactory("http:///ui/data_binding.ecore"); if (theData_bindingFactory != null) { return theData_bindingFactory; } } catch (Exception exception) { EcorePlugin.INSTANCE.log(exception); } return new Data_bindingFactoryImpl(); } /** * Creates an instance of the factory. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public Data_bindingFactoryImpl() { super(); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public EObject create(EClass eClass) { switch (eClass.getClassifierID()) { case Data_bindingPackage.DUMMY: return createDummy(); default: throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); } } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public Dummy createDummy() { DummyImpl dummy = new DummyImpl(); return dummy; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public Data_bindingPackage getData_bindingPackage() { return (Data_bindingPackage)getEPackage(); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @deprecated * @generated */ @Deprecated public static Data_bindingPackage getPackage() { return Data_bindingPackage.eINSTANCE; } } //Data_bindingFactoryImpl