Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/impl/EFacetFactoryImpl.java')
-rw-r--r--plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/impl/EFacetFactoryImpl.java80
1 files changed, 52 insertions, 28 deletions
diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/impl/EFacetFactoryImpl.java b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/impl/EFacetFactoryImpl.java
index 72a417ae101..34722e758cd 100644
--- a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/impl/EFacetFactoryImpl.java
+++ b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/impl/EFacetFactoryImpl.java
@@ -1,15 +1,15 @@
/**
* Copyright (c) 2011, 2012 Mia-Software.
- *
+ *
* 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:
* Gregoire Dupe (Mia-Software) - Design
* Nicolas Guyomar (Mia-Software) - Implementation
- * Emmanuelle Rouillé (Mia-Software) - Bug 352618 - To be able to use non derived facet structural features and save them values.
+ * Emmanuelle Rouillé (Mia-Software) - Bug 352618 - To be able to use non derived facet structural features and save them values.
* Nicolas Bros (Mia-Software) - Bug 361823 - [Restructuring] eFacet2 meta-model
* Gregoire Dupe (Mia-Software) - Bug 364325 - [Restructuring] The user must be able to navigate into a model using the Facet.
*/
@@ -22,7 +22,6 @@ import org.eclipse.emf.ecore.EPackage;
import org.eclipse.emf.ecore.impl.EFactoryImpl;
import org.eclipse.emf.ecore.plugin.EcorePlugin;
import org.eclipse.emf.ecore.resource.Resource;
-import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.*;
import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.Category;
import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.DocumentedElement;
import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.EFacetFactory;
@@ -38,6 +37,7 @@ import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.ParameterVal
* <!-- begin-user-doc -->
* An implementation of the model <b>Factory</b>.
* <!-- end-user-doc -->
+ *
* @generated
*/
public class EFacetFactoryImpl extends EFactoryImpl implements EFacetFactory {
@@ -45,16 +45,16 @@ public class EFacetFactoryImpl extends EFactoryImpl implements EFacetFactory {
* Creates the default factory implementation.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public static EFacetFactory init() {
try {
- EFacetFactory theEFacetFactory = (EFacetFactory)EPackage.Registry.INSTANCE.getEFactory("http://www.eclipse.org/papyrus/emf/facet/efacet/0.2.incubation/efacet"); //$NON-NLS-1$
+ EFacetFactory theEFacetFactory = (EFacetFactory) EPackage.Registry.INSTANCE.getEFactory("http://www.eclipse.org/papyrus/emf/facet/efacet/0.2.incubation/efacet"); //$NON-NLS-1$
if (theEFacetFactory != null) {
return theEFacetFactory;
}
- }
- catch (Exception exception) {
+ } catch (Exception exception) {
EcorePlugin.INSTANCE.log(exception);
}
return new EFacetFactoryImpl();
@@ -64,6 +64,7 @@ public class EFacetFactoryImpl extends EFactoryImpl implements EFacetFactory {
* Creates an instance of the factory.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public EFacetFactoryImpl() {
@@ -73,57 +74,69 @@ public class EFacetFactoryImpl extends EFactoryImpl implements EFacetFactory {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public EObject create(EClass eClass) {
switch (eClass.getClassifierID()) {
- case EFacetPackage.FACET_ATTRIBUTE: return createFacetAttribute();
- case EFacetPackage.FACET_REFERENCE: return createFacetReference();
- case EFacetPackage.FACET_OPERATION: return createFacetOperation();
- case EFacetPackage.FACET_SET: return createFacetSet();
- case EFacetPackage.FACET: return createFacet();
- case EFacetPackage.CATEGORY: return createCategory();
- case EFacetPackage.PARAMETER_VALUE: return createParameterValue();
- case EFacetPackage.DOCUMENTED_ELEMENT: return createDocumentedElement();
- default:
- throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); //$NON-NLS-1$ //$NON-NLS-2$
+ case EFacetPackage.FACET_ATTRIBUTE:
+ return createFacetAttribute();
+ case EFacetPackage.FACET_REFERENCE:
+ return createFacetReference();
+ case EFacetPackage.FACET_OPERATION:
+ return createFacetOperation();
+ case EFacetPackage.FACET_SET:
+ return createFacetSet();
+ case EFacetPackage.FACET:
+ return createFacet();
+ case EFacetPackage.CATEGORY:
+ return createCategory();
+ case EFacetPackage.PARAMETER_VALUE:
+ return createParameterValue();
+ case EFacetPackage.DOCUMENTED_ELEMENT:
+ return createDocumentedElement();
+ 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
*/
@Override
public Object createFromString(EDataType eDataType, String initialValue) {
switch (eDataType.getClassifierID()) {
- case EFacetPackage.RESOURCE:
- return createResourceFromString(eDataType, initialValue);
- default:
- throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier"); //$NON-NLS-1$ //$NON-NLS-2$
+ case EFacetPackage.RESOURCE:
+ return createResourceFromString(eDataType, initialValue);
+ default:
+ throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier"); //$NON-NLS-1$ //$NON-NLS-2$
}
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public String convertToString(EDataType eDataType, Object instanceValue) {
switch (eDataType.getClassifierID()) {
- case EFacetPackage.RESOURCE:
- return convertResourceToString(eDataType, instanceValue);
- default:
- throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier"); //$NON-NLS-1$ //$NON-NLS-2$
+ case EFacetPackage.RESOURCE:
+ return convertResourceToString(eDataType, instanceValue);
+ default:
+ throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier"); //$NON-NLS-1$ //$NON-NLS-2$
}
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public FacetAttribute createFacetAttribute() {
@@ -134,6 +147,7 @@ public class EFacetFactoryImpl extends EFactoryImpl implements EFacetFactory {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public FacetReference createFacetReference() {
@@ -144,6 +158,7 @@ public class EFacetFactoryImpl extends EFactoryImpl implements EFacetFactory {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public FacetOperation createFacetOperation() {
@@ -154,6 +169,7 @@ public class EFacetFactoryImpl extends EFactoryImpl implements EFacetFactory {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public FacetSet createFacetSet() {
@@ -164,6 +180,7 @@ public class EFacetFactoryImpl extends EFactoryImpl implements EFacetFactory {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public Facet createFacet() {
@@ -174,6 +191,7 @@ public class EFacetFactoryImpl extends EFactoryImpl implements EFacetFactory {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public Category createCategory() {
@@ -184,6 +202,7 @@ public class EFacetFactoryImpl extends EFactoryImpl implements EFacetFactory {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public ParameterValue createParameterValue() {
@@ -194,6 +213,7 @@ public class EFacetFactoryImpl extends EFactoryImpl implements EFacetFactory {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public DocumentedElement createDocumentedElement() {
@@ -204,15 +224,17 @@ public class EFacetFactoryImpl extends EFactoryImpl implements EFacetFactory {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public Resource createResourceFromString(EDataType eDataType, String initialValue) {
- return (Resource)super.createFromString(eDataType, initialValue);
+ return (Resource) super.createFromString(eDataType, initialValue);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public String convertResourceToString(EDataType eDataType, Object instanceValue) {
@@ -222,15 +244,17 @@ public class EFacetFactoryImpl extends EFactoryImpl implements EFacetFactory {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public EFacetPackage getEFacetPackage() {
- return (EFacetPackage)getEPackage();
+ return (EFacetPackage) getEPackage();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @deprecated
* @generated
*/
@@ -239,4 +263,4 @@ public class EFacetFactoryImpl extends EFactoryImpl implements EFacetFactory {
return EFacetPackage.eINSTANCE;
}
-} //EFacetFactoryImpl
+} // EFacetFactoryImpl

Back to the top