1 | /** |
2 | * <copyright> |
3 | * </copyright> |
4 | * |
5 | * $Id$ |
6 | */ |
7 | package de.uka.ipd.sdq.dsexplore.qml.profile.QMLProfile.impl; |
8 | |
9 | import de.uka.ipd.sdq.dsexplore.qml.profile.QMLProfile.*; |
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 QMLProfileFactoryImpl extends EFactoryImpl implements QMLProfileFactory { |
26 | /** |
27 | * Creates the default factory implementation. |
28 | * <!-- begin-user-doc --> |
29 | * <!-- end-user-doc --> |
30 | * @generated |
31 | */ |
32 | public static QMLProfileFactory init() { |
33 | try { |
34 | QMLProfileFactory theQMLProfileFactory = (QMLProfileFactory)EPackage.Registry.INSTANCE.getEFactory("http:///QMLProfile.ecore"); |
35 | if (theQMLProfileFactory != null) { |
36 | return theQMLProfileFactory; |
37 | } |
38 | } |
39 | catch (Exception exception) { |
40 | EcorePlugin.INSTANCE.log(exception); |
41 | } |
42 | return new QMLProfileFactoryImpl(); |
43 | } |
44 | |
45 | /** |
46 | * Creates an instance of the factory. |
47 | * <!-- begin-user-doc --> |
48 | * <!-- end-user-doc --> |
49 | * @generated |
50 | */ |
51 | public QMLProfileFactoryImpl() { |
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 QMLProfilePackage.SIMPLE_QML_PROFILE: return createSimpleQMLProfile(); |
64 | case QMLProfilePackage.REFINED_QML_PROFILE: return createRefinedQMLProfile(); |
65 | case QMLProfilePackage.USAGE_SCENARIO_REQUIREMENT: return createUsageScenarioRequirement(); |
66 | case QMLProfilePackage.ENTRY_LEVEL_SYSTEM_CALL_REQUIREMENT: return createEntryLevelSystemCallRequirement(); |
67 | default: |
68 | throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); |
69 | } |
70 | } |
71 | |
72 | /** |
73 | * <!-- begin-user-doc --> |
74 | * <!-- end-user-doc --> |
75 | * @generated |
76 | */ |
77 | public SimpleQMLProfile createSimpleQMLProfile() { |
78 | SimpleQMLProfileImpl simpleQMLProfile = new SimpleQMLProfileImpl(); |
79 | return simpleQMLProfile; |
80 | } |
81 | |
82 | /** |
83 | * <!-- begin-user-doc --> |
84 | * <!-- end-user-doc --> |
85 | * @generated |
86 | */ |
87 | public RefinedQMLProfile createRefinedQMLProfile() { |
88 | RefinedQMLProfileImpl refinedQMLProfile = new RefinedQMLProfileImpl(); |
89 | return refinedQMLProfile; |
90 | } |
91 | |
92 | /** |
93 | * <!-- begin-user-doc --> |
94 | * <!-- end-user-doc --> |
95 | * @generated |
96 | */ |
97 | public UsageScenarioRequirement createUsageScenarioRequirement() { |
98 | UsageScenarioRequirementImpl usageScenarioRequirement = new UsageScenarioRequirementImpl(); |
99 | return usageScenarioRequirement; |
100 | } |
101 | |
102 | /** |
103 | * <!-- begin-user-doc --> |
104 | * <!-- end-user-doc --> |
105 | * @generated |
106 | */ |
107 | public EntryLevelSystemCallRequirement createEntryLevelSystemCallRequirement() { |
108 | EntryLevelSystemCallRequirementImpl entryLevelSystemCallRequirement = new EntryLevelSystemCallRequirementImpl(); |
109 | return entryLevelSystemCallRequirement; |
110 | } |
111 | |
112 | /** |
113 | * <!-- begin-user-doc --> |
114 | * <!-- end-user-doc --> |
115 | * @generated |
116 | */ |
117 | public QMLProfilePackage getQMLProfilePackage() { |
118 | return (QMLProfilePackage)getEPackage(); |
119 | } |
120 | |
121 | /** |
122 | * <!-- begin-user-doc --> |
123 | * <!-- end-user-doc --> |
124 | * @deprecated |
125 | * @generated |
126 | */ |
127 | @Deprecated |
128 | public static QMLProfilePackage getPackage() { |
129 | return QMLProfilePackage.eINSTANCE; |
130 | } |
131 | |
132 | } //QMLProfileFactoryImpl |