Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'extraplugins/robotml/org.eclipse.papyrus.robotml/src/org/eclipse/papyrus/RobotMLLibraries/RobotML_ModelLibrary/RobotML_DataTypes/actionlib_datatypes/impl/Actionlib_datatypesFactoryImpl.java')
-rw-r--r--extraplugins/robotml/org.eclipse.papyrus.robotml/src/org/eclipse/papyrus/RobotMLLibraries/RobotML_ModelLibrary/RobotML_DataTypes/actionlib_datatypes/impl/Actionlib_datatypesFactoryImpl.java54
1 files changed, 16 insertions, 38 deletions
diff --git a/extraplugins/robotml/org.eclipse.papyrus.robotml/src/org/eclipse/papyrus/RobotMLLibraries/RobotML_ModelLibrary/RobotML_DataTypes/actionlib_datatypes/impl/Actionlib_datatypesFactoryImpl.java b/extraplugins/robotml/org.eclipse.papyrus.robotml/src/org/eclipse/papyrus/RobotMLLibraries/RobotML_ModelLibrary/RobotML_DataTypes/actionlib_datatypes/impl/Actionlib_datatypesFactoryImpl.java
index cef9a9af6c4..ea915be4ffe 100644
--- a/extraplugins/robotml/org.eclipse.papyrus.robotml/src/org/eclipse/papyrus/RobotMLLibraries/RobotML_ModelLibrary/RobotML_DataTypes/actionlib_datatypes/impl/Actionlib_datatypesFactoryImpl.java
+++ b/extraplugins/robotml/org.eclipse.papyrus.robotml/src/org/eclipse/papyrus/RobotMLLibraries/RobotML_ModelLibrary/RobotML_DataTypes/actionlib_datatypes/impl/Actionlib_datatypesFactoryImpl.java
@@ -1,50 +1,38 @@
-/*****************************************************************************
- * Copyright (c) 2013 CEA LIST.
- *
- * 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:
- * Saadia Dhouib (CEA LIST) saadia.dhouib@cea.fr - Initial API and implementation
- *****************************************************************************/
+/**
+ */
package org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.actionlib_datatypes.impl;
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;
-import org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.actionlib_datatypes.Actionlib_datatypesFactory;
-import org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.actionlib_datatypes.Actionlib_datatypesPackage;
-import org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.actionlib_datatypes.GoalID;
-import org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.actionlib_datatypes.GoalStatus;
-import org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.actionlib_datatypes.GoalStatusArray;
+
+import org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.actionlib_datatypes.*;
/**
* <!-- begin-user-doc -->
* An implementation of the model <b>Factory</b>.
* <!-- end-user-doc -->
- *
* @generated
*/
public class Actionlib_datatypesFactoryImpl extends EFactoryImpl implements Actionlib_datatypesFactory {
-
/**
* Creates the default factory implementation.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
public static Actionlib_datatypesFactory init() {
try {
- Actionlib_datatypesFactory theActionlib_datatypesFactory = (Actionlib_datatypesFactory)EPackage.Registry.INSTANCE.getEFactory("http:///RobotMLLibraries/RobotML_ModelLibrary/RobotML_DataTypes/actionlib_datatypes.ecore");
- if(theActionlib_datatypesFactory != null) {
+ Actionlib_datatypesFactory theActionlib_datatypesFactory = (Actionlib_datatypesFactory)EPackage.Registry.INSTANCE.getEFactory(Actionlib_datatypesPackage.eNS_URI);
+ if (theActionlib_datatypesFactory != null) {
return theActionlib_datatypesFactory;
}
- } catch (Exception exception) {
+ }
+ catch (Exception exception) {
EcorePlugin.INSTANCE.log(exception);
}
return new Actionlib_datatypesFactoryImpl();
@@ -54,7 +42,6 @@ public class Actionlib_datatypesFactoryImpl extends EFactoryImpl implements Acti
* Creates an instance of the factory.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
public Actionlib_datatypesFactoryImpl() {
@@ -64,27 +51,22 @@ public class Actionlib_datatypesFactoryImpl extends EFactoryImpl implements Acti
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
@Override
public EObject create(EClass eClass) {
- switch(eClass.getClassifierID()) {
- case Actionlib_datatypesPackage.GOAL_ID:
- return createGoalID();
- case Actionlib_datatypesPackage.GOAL_STATUS:
- return createGoalStatus();
- case Actionlib_datatypesPackage.GOAL_STATUS_ARRAY:
- return createGoalStatusArray();
- default:
- throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier");
+ switch (eClass.getClassifierID()) {
+ case Actionlib_datatypesPackage.GOAL_ID: return createGoalID();
+ case Actionlib_datatypesPackage.GOAL_STATUS: return createGoalStatus();
+ case Actionlib_datatypesPackage.GOAL_STATUS_ARRAY: return createGoalStatusArray();
+ default:
+ throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier");
}
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
public GoalID createGoalID() {
@@ -95,7 +77,6 @@ public class Actionlib_datatypesFactoryImpl extends EFactoryImpl implements Acti
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
public GoalStatus createGoalStatus() {
@@ -106,7 +87,6 @@ public class Actionlib_datatypesFactoryImpl extends EFactoryImpl implements Acti
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
public GoalStatusArray createGoalStatusArray() {
@@ -117,7 +97,6 @@ public class Actionlib_datatypesFactoryImpl extends EFactoryImpl implements Acti
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
public Actionlib_datatypesPackage getActionlib_datatypesPackage() {
@@ -127,7 +106,6 @@ public class Actionlib_datatypesFactoryImpl extends EFactoryImpl implements Acti
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @deprecated
* @generated
*/

Back to the top