/** * Copyright (c) 2014 itemis AG and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html * * Contributors: * Mark Broerkens - initial API and implementation * */ package org.eclipse.rmf.ext.prostep.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 org.eclipse.rmf.ext.prostep.*; /** * <!-- begin-user-doc --> * An implementation of the model <b>Factory</b>. * <!-- end-user-doc --> * @generated */ public class ProstepFactoryImpl extends EFactoryImpl implements ProstepFactory { /** * Creates the default factory implementation. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public static ProstepFactory init() { try { ProstepFactory theProstepFactory = (ProstepFactory)EPackage.Registry.INSTANCE.getEFactory(ProstepPackage.eNS_URI); if (theProstepFactory != null) { return theProstepFactory; } } catch (Exception exception) { EcorePlugin.INSTANCE.log(exception); } return new ProstepFactoryImpl(); } /** * Creates an instance of the factory. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public ProstepFactoryImpl() { super(); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public EObject create(EClass eClass) { switch (eClass.getClassifierID()) { case ProstepPackage.EXCHANGE_CONVERSATION: return createExchangeConversation(); default: throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); } } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public ExchangeConversation createExchangeConversation() { ExchangeConversationImpl exchangeConversation = new ExchangeConversationImpl(); return exchangeConversation; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public ProstepPackage getProstepPackage() { return (ProstepPackage)getEPackage(); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @deprecated * @generated */ @Deprecated public static ProstepPackage getPackage() { return ProstepPackage.eINSTANCE; } } //ProstepFactoryImpl