| /****************************************************************************** |
| * Copyright (c) 2005 IBM Corporation and others. |
| * 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: |
| * IBM Corporation - initial API and implementation |
| ****************************************************************************/ |
| |
| package org.eclipse.gmf.runtime.emf.core.internal.resourcemap.impl; |
| |
| import org.eclipse.emf.ecore.EClass; |
| import org.eclipse.emf.ecore.EObject; |
| import org.eclipse.emf.ecore.impl.EFactoryImpl; |
| |
| import org.eclipse.gmf.runtime.emf.core.internal.resourcemap.ChildEntry; |
| import org.eclipse.gmf.runtime.emf.core.internal.resourcemap.ParentEntry; |
| import org.eclipse.gmf.runtime.emf.core.internal.resourcemap.ResourceEntry; |
| import org.eclipse.gmf.runtime.emf.core.internal.resourcemap.ResourceMap; |
| import org.eclipse.gmf.runtime.emf.core.internal.resourcemap.ResourceMapFactory; |
| import org.eclipse.gmf.runtime.emf.core.internal.resourcemap.ResourceMapPackage; |
| |
| /** |
| * <!-- begin-user-doc --> |
| * An implementation of the model <b>Factory</b>. |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public class ResourceMapFactoryImpl extends EFactoryImpl implements ResourceMapFactory { |
| /** |
| * Creates an instance of the factory. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public ResourceMapFactoryImpl() { |
| super(); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public EObject create(EClass eClass) { |
| switch (eClass.getClassifierID()) { |
| case ResourceMapPackage.RESOURCE_MAP: return createResourceMap(); |
| case ResourceMapPackage.RESOURCE_ENTRY: return createResourceEntry(); |
| case ResourceMapPackage.PARENT_ENTRY: return createParentEntry(); |
| case ResourceMapPackage.CHILD_ENTRY: return createChildEntry(); |
| default: |
| throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); //$NON-NLS-1$ //$NON-NLS-2$ |
| } |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public ResourceMap createResourceMap() { |
| ResourceMapImpl resourceMap = new ResourceMapImpl(); |
| return resourceMap; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public ResourceEntry createResourceEntry() { |
| ResourceEntryImpl resourceEntry = new ResourceEntryImpl(); |
| return resourceEntry; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public ParentEntry createParentEntry() { |
| ParentEntryImpl parentEntry = new ParentEntryImpl(); |
| return parentEntry; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public ChildEntry createChildEntry() { |
| ChildEntryImpl childEntry = new ChildEntryImpl(); |
| return childEntry; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public ResourceMapPackage getResourceMapPackage() { |
| return (ResourceMapPackage)getEPackage(); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @deprecated |
| * @generated |
| */ |
| public static ResourceMapPackage getPackage() { |
| return ResourceMapPackage.eINSTANCE; |
| } |
| |
| } //ResourceMapFactoryImpl |