Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/sample/forum/impl/ForumFactoryImpl.java')
-rw-r--r--examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/sample/forum/impl/ForumFactoryImpl.java204
1 files changed, 0 insertions, 204 deletions
diff --git a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/sample/forum/impl/ForumFactoryImpl.java b/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/sample/forum/impl/ForumFactoryImpl.java
deleted file mode 100644
index 974210816..000000000
--- a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/sample/forum/impl/ForumFactoryImpl.java
+++ /dev/null
@@ -1,204 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id: ForumFactoryImpl.java,v 1.2 2007/02/08 23:09:24 mtaal Exp $
- */
-package org.eclipse.emf.teneo.samples.emf.sample.forum.impl;
-
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.EDataType;
-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;
-import org.eclipse.emf.teneo.samples.emf.sample.forum.*;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model <b>Factory</b>.
- * <!-- end-user-doc -->
- * @generated
- */
-public class ForumFactoryImpl extends EFactoryImpl implements ForumFactory {
- /**
- * Creates the default factory implementation.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public static ForumFactory init() {
- try {
- ForumFactory theForumFactory = (ForumFactory)EPackage.Registry.INSTANCE.getEFactory("http://www.eclipse.org/emf/teneo/samples/emf/sample/forum");
- if (theForumFactory != null) {
- return theForumFactory;
- }
- }
- catch (Exception exception) {
- EcorePlugin.INSTANCE.log(exception);
- }
- return new ForumFactoryImpl();
- }
-
- /**
- * Creates an instance of the factory.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public ForumFactoryImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public EObject create(EClass eClass) {
- switch (eClass.getClassifierID()) {
- case ForumPackage.FORUM: return createForum();
- case ForumPackage.MEMBER: return createMember();
- case ForumPackage.POST: return createPost();
- case ForumPackage.TOPIC: return createTopic();
- default:
- throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier");
- }
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public Object createFromString(EDataType eDataType, String initialValue) {
- switch (eDataType.getClassifierID()) {
- case ForumPackage.TOPIC_CATEGORY:
- return createTopicCategoryFromString(eDataType, initialValue);
- case ForumPackage.TOPIC_CATEGORY_OBJECT:
- return createTopicCategoryObjectFromString(eDataType, initialValue);
- default:
- throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier");
- }
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public String convertToString(EDataType eDataType, Object instanceValue) {
- switch (eDataType.getClassifierID()) {
- case ForumPackage.TOPIC_CATEGORY:
- return convertTopicCategoryToString(eDataType, instanceValue);
- case ForumPackage.TOPIC_CATEGORY_OBJECT:
- return convertTopicCategoryObjectToString(eDataType, instanceValue);
- default:
- throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier");
- }
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public Forum createForum() {
- ForumImpl forum = new ForumImpl();
- return forum;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public Member createMember() {
- MemberImpl member = new MemberImpl();
- return member;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public Post createPost() {
- PostImpl post = new PostImpl();
- return post;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public Topic createTopic() {
- TopicImpl topic = new TopicImpl();
- return topic;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public TopicCategory createTopicCategoryFromString(EDataType eDataType, String initialValue) {
- TopicCategory result = TopicCategory.get(initialValue);
- if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'");
- return result;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public String convertTopicCategoryToString(EDataType eDataType, Object instanceValue) {
- return instanceValue == null ? null : instanceValue.toString();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public TopicCategory createTopicCategoryObjectFromString(EDataType eDataType, String initialValue) {
- return createTopicCategoryFromString(ForumPackage.Literals.TOPIC_CATEGORY, initialValue);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public String convertTopicCategoryObjectToString(EDataType eDataType, Object instanceValue) {
- return convertTopicCategoryToString(ForumPackage.Literals.TOPIC_CATEGORY, instanceValue);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public ForumPackage getForumPackage() {
- return (ForumPackage)getEPackage();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @deprecated
- * @generated
- */
- @Deprecated
- public static ForumPackage getPackage() {
- return ForumPackage.eINSTANCE;
- }
-
-} //ForumFactoryImpl

Back to the top