Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'tests/org.eclipse.bpmn2/src/org/eclipse/dd/di/impl/DiFactoryImpl.java')
-rw-r--r--tests/org.eclipse.bpmn2/src/org/eclipse/dd/di/impl/DiFactoryImpl.java121
1 files changed, 0 insertions, 121 deletions
diff --git a/tests/org.eclipse.bpmn2/src/org/eclipse/dd/di/impl/DiFactoryImpl.java b/tests/org.eclipse.bpmn2/src/org/eclipse/dd/di/impl/DiFactoryImpl.java
deleted file mode 100644
index a45652530..000000000
--- a/tests/org.eclipse.bpmn2/src/org/eclipse/dd/di/impl/DiFactoryImpl.java
+++ /dev/null
@@ -1,121 +0,0 @@
-/**
- * <copyright>
- *
- * Copyright (c) 2010 SAP AG.
- * 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:
- * Reiner Hille-Doering (SAP AG) - initial API and implementation and/or initial documentation
- *
- * </copyright>
- */
-package org.eclipse.dd.di.impl;
-
-import org.eclipse.dd.di.*;
-
-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;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model <b>Factory</b>.
- * <!-- end-user-doc -->
- * @generated
- */
-public class DiFactoryImpl extends EFactoryImpl implements DiFactory {
- /**
- * Creates the default factory implementation.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public static DiFactory init() {
- try {
- DiFactory theDiFactory = (DiFactory) EPackage.Registry.INSTANCE
- .getEFactory("http://www.omg.org/spec/DD/20100524/DI-XMI");
- if (theDiFactory != null) {
- return theDiFactory;
- }
- } catch (Exception exception) {
- EcorePlugin.INSTANCE.log(exception);
- }
- return new DiFactoryImpl();
- }
-
- /**
- * Creates an instance of the factory.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public DiFactoryImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public EObject create(EClass eClass) {
- switch (eClass.getClassifierID()) {
- case DiPackage.DOCUMENT_ROOT:
- return createDocumentRoot();
- case DiPackage.DIAGRAM_ELEMENT:
- return createDiagramElement();
- default:
- throw new IllegalArgumentException("The class '" + eClass.getName()
- + "' is not a valid classifier");
- }
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public DocumentRoot createDocumentRoot() {
- DocumentRootImpl documentRoot = new DocumentRootImpl();
- return documentRoot;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public DiagramElement createDiagramElement() {
- DiagramElementImpl diagramElement = new DiagramElementImpl();
- return diagramElement;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public DiPackage getDiPackage() {
- return (DiPackage) getEPackage();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @deprecated
- * @generated
- */
- @Deprecated
- public static DiPackage getPackage() {
- return DiPackage.eINSTANCE;
- }
-
-} //DiFactoryImpl

Back to the top