/** * Copyright (c) 2010, 2012 Obeo. * 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: * Obeo - initial API and implementation */ package org.eclipse.mylyn.docs.intent.bridge.tags.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.mylyn.docs.intent.bridge.tags.*; /** * <!-- begin-user-doc --> * An implementation of the model <b>Factory</b>. * <!-- end-user-doc --> * @generated */ public class TagsFactoryImpl extends EFactoryImpl implements TagsFactory { /** * Creates the default factory implementation. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public static TagsFactory init() { try { TagsFactory theTagsFactory = (TagsFactory)EPackage.Registry.INSTANCE.getEFactory("http://www.eclipse.org/intent/bridges/tags/0.7"); if (theTagsFactory != null) { return theTagsFactory; } } catch (Exception exception) { EcorePlugin.INSTANCE.log(exception); } return new TagsFactoryImpl(); } /** * Creates an instance of the factory. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public TagsFactoryImpl() { super(); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public EObject create(EClass eClass) { switch (eClass.getClassifierID()) { case TagsPackage.TAGGED_BLOCK: return (EObject)createTaggedBlock(); case TagsPackage.FILE_CONTENT: return (EObject)createFileContent(); default: throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); } } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public TaggedBlock createTaggedBlock() { TaggedBlockImpl taggedBlock = new TaggedBlockImpl(); return taggedBlock; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public FileContent createFileContent() { FileContentImpl fileContent = new FileContentImpl(); return fileContent; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public TagsPackage getTagsPackage() { return (TagsPackage)getEPackage(); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @deprecated * @generated */ @Deprecated public static TagsPackage getPackage() { return TagsPackage.eINSTANCE; } } //TagsFactoryImpl