/****************************************************************************** * 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.studio.services.xslt.xslt.impl; import com.ebmwebsourcing.petals.studio.services.xslt.xslt.*; 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 XsltFactoryImpl extends EFactoryImpl implements XsltFactory { /** * Creates the default factory implementation. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public static XsltFactory init() { try { XsltFactory theXsltFactory = (XsltFactory)EPackage.Registry.INSTANCE.getEFactory("http://petals.ow2.org/components/xslt/version-2"); if (theXsltFactory != null) { return theXsltFactory; } } catch (Exception exception) { EcorePlugin.INSTANCE.log(exception); } return new XsltFactoryImpl(); } /** * Creates an instance of the factory. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public XsltFactoryImpl() { super(); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public EObject create(EClass eClass) { switch (eClass.getClassifierID()) { case XsltPackage.XSLT_PROVIDES: return createXSLTProvides(); default: throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); } } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public XSLTProvides createXSLTProvides() { XSLTProvidesImpl xsltProvides = new XSLTProvidesImpl(); return xsltProvides; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public XsltPackage getXsltPackage() { return (XsltPackage)getEPackage(); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @deprecated * @generated */ @Deprecated public static XsltPackage getPackage() { return XsltPackage.eINSTANCE; } } //XsltFactoryImpl