| /** |
| * <copyright> |
| * </copyright> |
| * |
| * $Id: UseFactoryImpl.java,v 1.1 2005/01/20 12:03:03 ryman Exp $ |
| */ |
| package org.eclipse.component.use.impl; |
| |
| import org.eclipse.component.use.*; |
| |
| 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 UseFactoryImpl extends EFactoryImpl implements UseFactory |
| { |
| /** |
| * Creates and instance of the factory. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public UseFactoryImpl() |
| { |
| super(); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public EObject create(EClass eClass) |
| { |
| switch (eClass.getClassifierID()) |
| { |
| case UsePackage.COMPONENT_USE_TYPE: return createComponentUseType(); |
| case UsePackage.DOCUMENT_ROOT: return createDocumentRoot(); |
| case UsePackage.SOURCE_CLASS: return createSourceClass(); |
| default: |
| throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); |
| } |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public ComponentUseType createComponentUseType() |
| { |
| ComponentUseTypeImpl componentUseType = new ComponentUseTypeImpl(); |
| return componentUseType; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public DocumentRoot createDocumentRoot() |
| { |
| DocumentRootImpl documentRoot = new DocumentRootImpl(); |
| return documentRoot; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public SourceClass createSourceClass() |
| { |
| SourceClassImpl sourceClass = new SourceClassImpl(); |
| return sourceClass; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public UsePackage getUsePackage() |
| { |
| return (UsePackage)getEPackage(); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @deprecated |
| * @generated |
| */ |
| public static UsePackage getPackage() |
| { |
| return UsePackage.eINSTANCE; |
| } |
| |
| } //UseFactoryImpl |