summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/org.eclipse.emf.compare.example.library/src-gen/org/eclipse/emf/compare/example/library/writers/impl/WritersFactoryImpl.java')
-rw-r--r--plugins/org.eclipse.emf.compare.example.library/src-gen/org/eclipse/emf/compare/example/library/writers/impl/WritersFactoryImpl.java124
1 files changed, 124 insertions, 0 deletions
diff --git a/plugins/org.eclipse.emf.compare.example.library/src-gen/org/eclipse/emf/compare/example/library/writers/impl/WritersFactoryImpl.java b/plugins/org.eclipse.emf.compare.example.library/src-gen/org/eclipse/emf/compare/example/library/writers/impl/WritersFactoryImpl.java
new file mode 100644
index 000000000..4d9a3b424
--- /dev/null
+++ b/plugins/org.eclipse.emf.compare.example.library/src-gen/org/eclipse/emf/compare/example/library/writers/impl/WritersFactoryImpl.java
@@ -0,0 +1,124 @@
+/**
+ * Copyright (c) 2011 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.emf.compare.example.library.writers.impl;
+
+import org.eclipse.emf.compare.example.library.writers.*;
+
+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 WritersFactoryImpl extends EFactoryImpl implements WritersFactory {
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public static final String copyright = " Copyright (c) 2011 Obeo.\r\n All rights reserved. This program and the accompanying materials\r\n are made available under the terms of the Eclipse Public License v1.0\r\n which accompanies this distribution, and is available at\r\n http://www.eclipse.org/legal/epl-v10.html\r\n \r\n Contributors:\r\n Obeo - initial API and implementation"; //$NON-NLS-1$
+
+ /**
+ * Creates the default factory implementation.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public static WritersFactory init() {
+ try {
+ WritersFactory theWritersFactory = (WritersFactory)EPackage.Registry.INSTANCE
+ .getEFactory("http://www.eclipse.org/emf/compare/writers"); //$NON-NLS-1$
+ if (theWritersFactory != null) {
+ return theWritersFactory;
+ }
+ } catch (Exception exception) {
+ EcorePlugin.INSTANCE.log(exception);
+ }
+ return new WritersFactoryImpl();
+ }
+
+ /**
+ * Creates an instance of the factory.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public WritersFactoryImpl() {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public EObject create(EClass eClass) {
+ switch (eClass.getClassifierID()) {
+ case WritersPackage.CATALOG:
+ return createCatalog();
+ case WritersPackage.WRITER:
+ return createWriter();
+ 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 Catalog createCatalog() {
+ CatalogImpl catalog = new CatalogImpl();
+ return catalog;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public Writer createWriter() {
+ WriterImpl writer = new WriterImpl();
+ return writer;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public WritersPackage getWritersPackage() {
+ return (WritersPackage)getEPackage();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @deprecated
+ * @generated
+ */
+ @Deprecated
+ public static WritersPackage getPackage() {
+ return WritersPackage.eINSTANCE;
+ }
+
+} //WritersFactoryImpl