| /******************************************************************************* |
| * Copyright (c) 2005, 2019 IBM Corporation and others. |
| * This program and the accompanying materials |
| * are made available under the terms of the Eclipse Public License 2.0 |
| * which accompanies this distribution, and is available at |
| * https://www.eclipse.org/legal/epl-2.0/ |
| * |
| * SPDX-License-Identifier: EPL-2.0 |
| * |
| * Contributors: |
| * IBM Corporation - initial API and implementation |
| *******************************************************************************/ |
| /** |
| * <copyright> |
| * </copyright> |
| * |
| * $Id: ComponentFactoryImpl.java,v 1.1 2005/01/20 12:03:03 ryman Exp $ |
| */ |
| package org.eclipse.component.impl; |
| |
| import org.eclipse.component.*; |
| |
| import org.eclipse.emf.ecore.EClass; |
| import org.eclipse.emf.ecore.EObject; |
| |
| import org.eclipse.emf.ecore.impl.EFactoryImpl; |
| |
| /** |
| * <!-- begin-user-doc --> |
| * An implementation of the model <b>Factory</b>. |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public class ComponentFactoryImpl extends EFactoryImpl implements ComponentFactory |
| { |
| /** |
| * Creates and instance of the factory. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public ComponentFactoryImpl() |
| { |
| super(); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public EObject create(EClass eClass) |
| { |
| switch (eClass.getClassifierID()) |
| { |
| case ComponentPackage.COMPONENT_DEPENDS_TYPE: return createComponentDependsType(); |
| case ComponentPackage.COMPONENT_REF_TYPE: return createComponentRefType(); |
| case ComponentPackage.COMPONENT_TYPE: return createComponentType(); |
| case ComponentPackage.DOCUMENT_ROOT: return createDocumentRoot(); |
| case ComponentPackage.PACKAGE_TYPE: return createPackageType(); |
| case ComponentPackage.PLUGIN_TYPE: return createPluginType(); |
| case ComponentPackage.TYPE_TYPE: return createTypeType(); |
| default: |
| throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); |
| } |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public ComponentDependsType createComponentDependsType() |
| { |
| ComponentDependsTypeImpl componentDependsType = new ComponentDependsTypeImpl(); |
| return componentDependsType; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public ComponentRefType createComponentRefType() |
| { |
| ComponentRefTypeImpl componentRefType = new ComponentRefTypeImpl(); |
| return componentRefType; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public ComponentType createComponentType() |
| { |
| ComponentTypeImpl componentType = new ComponentTypeImpl(); |
| return componentType; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public DocumentRoot createDocumentRoot() |
| { |
| DocumentRootImpl documentRoot = new DocumentRootImpl(); |
| return documentRoot; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public PackageType createPackageType() |
| { |
| PackageTypeImpl packageType = new PackageTypeImpl(); |
| return packageType; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public PluginType createPluginType() |
| { |
| PluginTypeImpl pluginType = new PluginTypeImpl(); |
| return pluginType; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public TypeType createTypeType() |
| { |
| TypeTypeImpl typeType = new TypeTypeImpl(); |
| return typeType; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public ComponentPackage getComponentPackage() |
| { |
| return (ComponentPackage)getEPackage(); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @deprecated |
| * @generated |
| */ |
| public static ComponentPackage getPackage() |
| { |
| return ComponentPackage.eINSTANCE; |
| } |
| |
| } //ComponentFactoryImpl |