Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/structure/impl/StructureFactoryImpl.java')
-rw-r--r--extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/structure/impl/StructureFactoryImpl.java42
1 files changed, 26 insertions, 16 deletions
diff --git a/extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/structure/impl/StructureFactoryImpl.java b/extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/structure/impl/StructureFactoryImpl.java
index cf41f6ce845..9d6905dbe1b 100644
--- a/extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/structure/impl/StructureFactoryImpl.java
+++ b/extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/structure/impl/StructureFactoryImpl.java
@@ -1,7 +1,7 @@
/*****************************************************************************
* Copyright (c) 2010 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
@@ -27,12 +27,14 @@ import org.eclipse.papyrus.eastadl.structure.StructurePackage;
/**
* <!-- begin-user-doc --> An implementation of the model <b>Factory</b>. <!-- end-user-doc -->
+ *
* @generated
*/
public class StructureFactoryImpl extends EFactoryImpl implements StructureFactory {
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
* @deprecated
* @generated
*/
@@ -44,16 +46,16 @@ public class StructureFactoryImpl extends EFactoryImpl implements StructureFacto
/**
* Creates the default factory implementation.
* <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
* @generated
*/
public static StructureFactory init() {
try {
- StructureFactory theStructureFactory = (StructureFactory)EPackage.Registry.INSTANCE.getEFactory(StructurePackage.eNS_URI);
+ StructureFactory theStructureFactory = (StructureFactory) EPackage.Registry.INSTANCE.getEFactory(StructurePackage.eNS_URI);
if (theStructureFactory != null) {
return theStructureFactory;
}
- }
- catch (Exception exception) {
+ } catch (Exception exception) {
EcorePlugin.INSTANCE.log(exception);
}
return new StructureFactoryImpl();
@@ -62,6 +64,7 @@ public class StructureFactoryImpl extends EFactoryImpl implements StructureFacto
/**
* Creates an instance of the factory.
* <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
* @generated
*/
public StructureFactoryImpl() {
@@ -70,6 +73,7 @@ public class StructureFactoryImpl extends EFactoryImpl implements StructureFacto
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
* @generated
*/
public String convertDummyToString(EDataType eDataType, Object instanceValue) {
@@ -78,58 +82,64 @@ public class StructureFactoryImpl extends EFactoryImpl implements StructureFacto
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public String convertToString(EDataType eDataType, Object instanceValue) {
switch (eDataType.getClassifierID()) {
- case StructurePackage.DUMMY:
- return convertDummyToString(eDataType, instanceValue);
- default:
- throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier");
+ case StructurePackage.DUMMY:
+ return convertDummyToString(eDataType, instanceValue);
+ default:
+ throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier");
}
}
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public EObject create(EClass eClass) {
switch (eClass.getClassifierID()) {
- default:
- throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier");
+ default:
+ throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier");
}
}
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
* @generated
*/
public String createDummyFromString(EDataType eDataType, String initialValue) {
- return (String)super.createFromString(eDataType, initialValue);
+ return (String) super.createFromString(eDataType, initialValue);
}
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public Object createFromString(EDataType eDataType, String initialValue) {
switch (eDataType.getClassifierID()) {
- case StructurePackage.DUMMY:
- return createDummyFromString(eDataType, initialValue);
- default:
- throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier");
+ case StructurePackage.DUMMY:
+ return createDummyFromString(eDataType, initialValue);
+ default:
+ throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier");
}
}
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
* @generated
*/
+ @Override
public StructurePackage getStructurePackage() {
- return (StructurePackage)getEPackage();
+ return (StructurePackage) getEPackage();
}
} // StructureFactoryImpl

Back to the top