| package org.eclipse.stem.internal.data.generatedplugin.impl; |
| |
| /******************************************************************************* |
| * Copyright (c) 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018 |
| * IBM Corporation, BfR, and others. |
| * All rights reserved. This program and the accompanying materials |
| * are made available under the terms of the Eclipse Public License v2.0 |
| * which accompanies this distribution, and is available at |
| * https://www.eclipse.org/legal/epl-2.0/ |
| * |
| * Contributors: |
| * IBM Corporation - initial API and implementation |
| *******************************************************************************/ |
| |
| 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.stem.internal.data.generatedplugin.*; |
| |
| /** |
| * <!-- begin-user-doc --> An implementation of the model <b>Factory</b>. <!-- |
| * end-user-doc --> |
| * |
| * @generated |
| */ |
| @SuppressWarnings("all") |
| public class GeneratedpluginFactoryImpl extends EFactoryImpl implements |
| GeneratedpluginFactory { |
| /** |
| * Creates the default factory implementation. <!-- begin-user-doc --> <!-- |
| * end-user-doc --> |
| * |
| * @generated |
| */ |
| public static GeneratedpluginFactory init() { |
| try { |
| GeneratedpluginFactory theGeneratedpluginFactory = (GeneratedpluginFactory) EPackage.Registry.INSTANCE |
| .getEFactory("http://data.internal.stem.eclipse.org/generatedplugin"); |
| if (theGeneratedpluginFactory != null) { |
| return theGeneratedpluginFactory; |
| } |
| } catch (Exception exception) { |
| EcorePlugin.INSTANCE.log(exception); |
| } |
| return new GeneratedpluginFactoryImpl(); |
| } |
| |
| /** |
| * Creates an instance of the factory. <!-- begin-user-doc --> <!-- |
| * end-user-doc --> |
| * |
| * @generated |
| */ |
| public GeneratedpluginFactoryImpl() { |
| super(); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> <!-- end-user-doc --> |
| * |
| * @generated |
| */ |
| @Override |
| public EObject create(EClass eClass) { |
| switch (eClass.getClassifierID()) { |
| case GeneratedpluginPackage.DUBLIN_CORE: |
| return createDublinCore(); |
| case GeneratedpluginPackage.EXTENSION: |
| return createExtension(); |
| case GeneratedpluginPackage.PLUGIN: |
| return createPlugin(); |
| case GeneratedpluginPackage.STEM_CATEGORY: |
| return createStemCategory(); |
| default: |
| throw new IllegalArgumentException("The class '" + eClass.getName() |
| + "' is not a valid classifier"); |
| } |
| } |
| |
| /** |
| * <!-- begin-user-doc --> <!-- end-user-doc --> |
| * |
| * @generated |
| */ |
| public DublinCore createDublinCore() { |
| DublinCoreImpl dublinCore = new DublinCoreImpl(); |
| return dublinCore; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> <!-- end-user-doc --> |
| * |
| * @generated |
| */ |
| public Extension createExtension() { |
| ExtensionImpl extension = new ExtensionImpl(); |
| return extension; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> <!-- end-user-doc --> |
| * |
| * @generated |
| */ |
| public Plugin createPlugin() { |
| PluginImpl plugin = new PluginImpl(); |
| return plugin; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> <!-- end-user-doc --> |
| * |
| * @generated |
| */ |
| public StemCategory createStemCategory() { |
| StemCategoryImpl stemCategory = new StemCategoryImpl(); |
| return stemCategory; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> <!-- end-user-doc --> |
| * |
| * @generated |
| */ |
| public GeneratedpluginPackage getGeneratedpluginPackage() { |
| return (GeneratedpluginPackage) getEPackage(); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> <!-- end-user-doc --> |
| * |
| * @deprecated |
| * @generated |
| */ |
| @Deprecated |
| public static GeneratedpluginPackage getPackage() { |
| return GeneratedpluginPackage.eINSTANCE; |
| } |
| |
| } // GeneratedpluginFactoryImpl |