/****************************************************************************** * Copyright (c) 2011-2013, Linagora * * 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: * Linagora - initial API and implementation *******************************************************************************/ package com.ebmwebsourcing.petals.services.jsr181.jsr181.impl; import com.ebmwebsourcing.petals.services.jsr181.jsr181.*; 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 Jsr181FactoryImpl extends EFactoryImpl implements Jsr181Factory { /** * Creates the default factory implementation. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public static Jsr181Factory init() { try { Jsr181Factory theJsr181Factory = (Jsr181Factory)EPackage.Registry.INSTANCE.getEFactory("http://petals.ow2.org/components/jsr181/version-1"); if (theJsr181Factory != null) { return theJsr181Factory; } } catch (Exception exception) { EcorePlugin.INSTANCE.log(exception); } return new Jsr181FactoryImpl(); } /** * Creates an instance of the factory. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public Jsr181FactoryImpl() { super(); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public EObject create(EClass eClass) { switch (eClass.getClassifierID()) { case Jsr181Package.JSR181_PROVIDES: return createJsr181Provides(); default: throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); } } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public Jsr181Provides createJsr181Provides() { Jsr181ProvidesImpl jsr181Provides = new Jsr181ProvidesImpl(); return jsr181Provides; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public Jsr181Package getJsr181Package() { return (Jsr181Package)getEPackage(); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @deprecated * @generated */ @Deprecated public static Jsr181Package getPackage() { return Jsr181Package.eINSTANCE; } } //Jsr181FactoryImpl