1 | /** |
2 | * <copyright> |
3 | * </copyright> |
4 | * |
5 | * $Id$ |
6 | */ |
7 | package de.uka.ipd.sdq.dsexplore.qml.declarations.QMLDeclarations.impl; |
8 | |
9 | import de.uka.ipd.sdq.dsexplore.qml.declarations.QMLDeclarations.*; |
10 | |
11 | import org.eclipse.emf.ecore.EClass; |
12 | import org.eclipse.emf.ecore.EObject; |
13 | import org.eclipse.emf.ecore.EPackage; |
14 | |
15 | import org.eclipse.emf.ecore.impl.EFactoryImpl; |
16 | |
17 | import org.eclipse.emf.ecore.plugin.EcorePlugin; |
18 | |
19 | /** |
20 | * <!-- begin-user-doc --> |
21 | * An implementation of the model <b>Factory</b>. |
22 | * <!-- end-user-doc --> |
23 | * @generated |
24 | */ |
25 | public class QMLDeclarationsFactoryImpl extends EFactoryImpl implements QMLDeclarationsFactory { |
26 | /** |
27 | * Creates the default factory implementation. |
28 | * <!-- begin-user-doc --> |
29 | * <!-- end-user-doc --> |
30 | * @generated |
31 | */ |
32 | public static QMLDeclarationsFactory init() { |
33 | try { |
34 | QMLDeclarationsFactory theQMLDeclarationsFactory = (QMLDeclarationsFactory)EPackage.Registry.INSTANCE.getEFactory("http:///QMLDeclarations.ecore"); |
35 | if (theQMLDeclarationsFactory != null) { |
36 | return theQMLDeclarationsFactory; |
37 | } |
38 | } |
39 | catch (Exception exception) { |
40 | EcorePlugin.INSTANCE.log(exception); |
41 | } |
42 | return new QMLDeclarationsFactoryImpl(); |
43 | } |
44 | |
45 | /** |
46 | * Creates an instance of the factory. |
47 | * <!-- begin-user-doc --> |
48 | * <!-- end-user-doc --> |
49 | * @generated |
50 | */ |
51 | public QMLDeclarationsFactoryImpl() { |
52 | super(); |
53 | } |
54 | |
55 | /** |
56 | * <!-- begin-user-doc --> |
57 | * <!-- end-user-doc --> |
58 | * @generated |
59 | */ |
60 | @Override |
61 | public EObject create(EClass eClass) { |
62 | switch (eClass.getClassifierID()) { |
63 | case QMLDeclarationsPackage.QML_DECLARATIONS: return createQMLDeclarations(); |
64 | default: |
65 | throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); |
66 | } |
67 | } |
68 | |
69 | /** |
70 | * <!-- begin-user-doc --> |
71 | * <!-- end-user-doc --> |
72 | * @generated |
73 | */ |
74 | public QMLDeclarations createQMLDeclarations() { |
75 | QMLDeclarationsImpl qmlDeclarations = new QMLDeclarationsImpl(); |
76 | return qmlDeclarations; |
77 | } |
78 | |
79 | /** |
80 | * <!-- begin-user-doc --> |
81 | * <!-- end-user-doc --> |
82 | * @generated |
83 | */ |
84 | public QMLDeclarationsPackage getQMLDeclarationsPackage() { |
85 | return (QMLDeclarationsPackage)getEPackage(); |
86 | } |
87 | |
88 | /** |
89 | * <!-- begin-user-doc --> |
90 | * <!-- end-user-doc --> |
91 | * @deprecated |
92 | * @generated |
93 | */ |
94 | @Deprecated |
95 | public static QMLDeclarationsPackage getPackage() { |
96 | return QMLDeclarationsPackage.eINSTANCE; |
97 | } |
98 | |
99 | } //QMLDeclarationsFactoryImpl |