1 | /** |
2 | * Copyright 2005-2009 by SDQ, IPD, University of Karlsruhe, Germany |
3 | * |
4 | * $Id$ |
5 | */ |
6 | package de.uka.ipd.sdq.pcm.impl; |
7 | |
8 | import org.eclipse.emf.ecore.EClass; |
9 | import org.eclipse.emf.ecore.EPackage; |
10 | import org.eclipse.emf.ecore.impl.EPackageImpl; |
11 | |
12 | import de.uka.ipd.sdq.identifier.IdentifierPackage; |
13 | import de.uka.ipd.sdq.pcm.DummyClass; |
14 | import de.uka.ipd.sdq.pcm.PcmFactory; |
15 | import de.uka.ipd.sdq.pcm.PcmPackage; |
16 | import de.uka.ipd.sdq.pcm.allocation.AllocationPackage; |
17 | import de.uka.ipd.sdq.pcm.allocation.impl.AllocationPackageImpl; |
18 | import de.uka.ipd.sdq.pcm.core.CorePackage; |
19 | import de.uka.ipd.sdq.pcm.core.composition.CompositionPackage; |
20 | import de.uka.ipd.sdq.pcm.core.composition.impl.CompositionPackageImpl; |
21 | import de.uka.ipd.sdq.pcm.core.entity.EntityPackage; |
22 | import de.uka.ipd.sdq.pcm.core.entity.impl.EntityPackageImpl; |
23 | import de.uka.ipd.sdq.pcm.core.impl.CorePackageImpl; |
24 | import de.uka.ipd.sdq.pcm.parameter.ParameterPackage; |
25 | import de.uka.ipd.sdq.pcm.parameter.impl.ParameterPackageImpl; |
26 | import de.uka.ipd.sdq.pcm.protocol.ProtocolPackage; |
27 | import de.uka.ipd.sdq.pcm.protocol.impl.ProtocolPackageImpl; |
28 | import de.uka.ipd.sdq.pcm.qosannotations.QosannotationsPackage; |
29 | import de.uka.ipd.sdq.pcm.qosannotations.impl.QosannotationsPackageImpl; |
30 | import de.uka.ipd.sdq.pcm.qosannotations.qos_performance.Qos_performancePackage; |
31 | import de.uka.ipd.sdq.pcm.qosannotations.qos_performance.impl.Qos_performancePackageImpl; |
32 | import de.uka.ipd.sdq.pcm.qosannotations.qos_reliability.Qos_reliabilityPackage; |
33 | import de.uka.ipd.sdq.pcm.qosannotations.qos_reliability.impl.Qos_reliabilityPackageImpl; |
34 | import de.uka.ipd.sdq.pcm.reliability.ReliabilityPackage; |
35 | import de.uka.ipd.sdq.pcm.reliability.impl.ReliabilityPackageImpl; |
36 | import de.uka.ipd.sdq.pcm.repository.RepositoryPackage; |
37 | import de.uka.ipd.sdq.pcm.repository.impl.RepositoryPackageImpl; |
38 | import de.uka.ipd.sdq.pcm.resourceenvironment.ResourceenvironmentPackage; |
39 | import de.uka.ipd.sdq.pcm.resourceenvironment.impl.ResourceenvironmentPackageImpl; |
40 | import de.uka.ipd.sdq.pcm.resourcetype.ResourcetypePackage; |
41 | import de.uka.ipd.sdq.pcm.resourcetype.impl.ResourcetypePackageImpl; |
42 | import de.uka.ipd.sdq.pcm.seff.SeffPackage; |
43 | import de.uka.ipd.sdq.pcm.seff.impl.SeffPackageImpl; |
44 | import de.uka.ipd.sdq.pcm.seff.seff_performance.Seff_performancePackage; |
45 | import de.uka.ipd.sdq.pcm.seff.seff_performance.impl.Seff_performancePackageImpl; |
46 | import de.uka.ipd.sdq.pcm.seff.seff_reliability.Seff_reliabilityPackage; |
47 | import de.uka.ipd.sdq.pcm.seff.seff_reliability.impl.Seff_reliabilityPackageImpl; |
48 | import de.uka.ipd.sdq.pcm.subsystem.SubsystemPackage; |
49 | import de.uka.ipd.sdq.pcm.subsystem.impl.SubsystemPackageImpl; |
50 | import de.uka.ipd.sdq.pcm.system.SystemPackage; |
51 | import de.uka.ipd.sdq.pcm.system.impl.SystemPackageImpl; |
52 | import de.uka.ipd.sdq.pcm.usagemodel.UsagemodelPackage; |
53 | import de.uka.ipd.sdq.pcm.usagemodel.impl.UsagemodelPackageImpl; |
54 | import de.uka.ipd.sdq.stoex.StoexPackage; |
55 | |
56 | /** |
57 | * <!-- begin-user-doc --> |
58 | * An implementation of the model <b>Package</b>. |
59 | * <!-- end-user-doc --> |
60 | * @generated |
61 | */ |
62 | public class PcmPackageImpl extends EPackageImpl implements PcmPackage { |
63 | /** |
64 | * <!-- begin-user-doc --> |
65 | * <!-- end-user-doc --> |
66 | * @generated |
67 | */ |
68 | public static final String copyright = "Copyright 2005-2009 by SDQ, IPD, University of Karlsruhe, Germany"; |
69 | |
70 | /** |
71 | * <!-- begin-user-doc --> |
72 | * <!-- end-user-doc --> |
73 | * @generated |
74 | */ |
75 | private EClass dummyClassEClass = null; |
76 | |
77 | /** |
78 | * Creates an instance of the model <b>Package</b>, registered with |
79 | * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package |
80 | * package URI value. |
81 | * <p>Note: the correct way to create the package is via the static |
82 | * factory method {@link #init init()}, which also performs |
83 | * initialization of the package, or returns the registered package, |
84 | * if one already exists. |
85 | * <!-- begin-user-doc --> |
86 | * <!-- end-user-doc --> |
87 | * @see org.eclipse.emf.ecore.EPackage.Registry |
88 | * @see de.uka.ipd.sdq.pcm.PcmPackage#eNS_URI |
89 | * @see #init() |
90 | * @generated |
91 | */ |
92 | private PcmPackageImpl() { |
93 | super(eNS_URI, PcmFactory.eINSTANCE); |
94 | } |
95 | |
96 | /** |
97 | * <!-- begin-user-doc --> |
98 | * <!-- end-user-doc --> |
99 | * @generated |
100 | */ |
101 | private static boolean isInited = false; |
102 | |
103 | /** |
104 | * Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends. |
105 | * |
106 | * <p>This method is used to initialize {@link PcmPackage#eINSTANCE} when that field is accessed. |
107 | * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package. |
108 | * <!-- begin-user-doc --> |
109 | * <!-- end-user-doc --> |
110 | * @see #eNS_URI |
111 | * @see #createPackageContents() |
112 | * @see #initializePackageContents() |
113 | * @generated |
114 | */ |
115 | public static PcmPackage init() { |
116 | if (isInited) return (PcmPackage)EPackage.Registry.INSTANCE.getEPackage(PcmPackage.eNS_URI); |
117 | |
118 | // Obtain or create and register package |
119 | PcmPackageImpl thePcmPackage = (PcmPackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof PcmPackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new PcmPackageImpl()); |
120 | |
121 | isInited = true; |
122 | |
123 | // Initialize simple dependencies |
124 | IdentifierPackage.eINSTANCE.eClass(); |
125 | StoexPackage.eINSTANCE.eClass(); |
126 | |
127 | // Obtain or create and register interdependencies |
128 | CorePackageImpl theCorePackage = (CorePackageImpl)(EPackage.Registry.INSTANCE.getEPackage(CorePackage.eNS_URI) instanceof CorePackageImpl ? EPackage.Registry.INSTANCE.getEPackage(CorePackage.eNS_URI) : CorePackage.eINSTANCE); |
129 | EntityPackageImpl theEntityPackage = (EntityPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(EntityPackage.eNS_URI) instanceof EntityPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(EntityPackage.eNS_URI) : EntityPackage.eINSTANCE); |
130 | CompositionPackageImpl theCompositionPackage = (CompositionPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(CompositionPackage.eNS_URI) instanceof CompositionPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(CompositionPackage.eNS_URI) : CompositionPackage.eINSTANCE); |
131 | UsagemodelPackageImpl theUsagemodelPackage = (UsagemodelPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(UsagemodelPackage.eNS_URI) instanceof UsagemodelPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(UsagemodelPackage.eNS_URI) : UsagemodelPackage.eINSTANCE); |
132 | RepositoryPackageImpl theRepositoryPackage = (RepositoryPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(RepositoryPackage.eNS_URI) instanceof RepositoryPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(RepositoryPackage.eNS_URI) : RepositoryPackage.eINSTANCE); |
133 | ResourcetypePackageImpl theResourcetypePackage = (ResourcetypePackageImpl)(EPackage.Registry.INSTANCE.getEPackage(ResourcetypePackage.eNS_URI) instanceof ResourcetypePackageImpl ? EPackage.Registry.INSTANCE.getEPackage(ResourcetypePackage.eNS_URI) : ResourcetypePackage.eINSTANCE); |
134 | ProtocolPackageImpl theProtocolPackage = (ProtocolPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(ProtocolPackage.eNS_URI) instanceof ProtocolPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(ProtocolPackage.eNS_URI) : ProtocolPackage.eINSTANCE); |
135 | ParameterPackageImpl theParameterPackage = (ParameterPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(ParameterPackage.eNS_URI) instanceof ParameterPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(ParameterPackage.eNS_URI) : ParameterPackage.eINSTANCE); |
136 | ReliabilityPackageImpl theReliabilityPackage = (ReliabilityPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(ReliabilityPackage.eNS_URI) instanceof ReliabilityPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(ReliabilityPackage.eNS_URI) : ReliabilityPackage.eINSTANCE); |
137 | SeffPackageImpl theSeffPackage = (SeffPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(SeffPackage.eNS_URI) instanceof SeffPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(SeffPackage.eNS_URI) : SeffPackage.eINSTANCE); |
138 | Seff_performancePackageImpl theSeff_performancePackage = (Seff_performancePackageImpl)(EPackage.Registry.INSTANCE.getEPackage(Seff_performancePackage.eNS_URI) instanceof Seff_performancePackageImpl ? EPackage.Registry.INSTANCE.getEPackage(Seff_performancePackage.eNS_URI) : Seff_performancePackage.eINSTANCE); |
139 | Seff_reliabilityPackageImpl theSeff_reliabilityPackage = (Seff_reliabilityPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(Seff_reliabilityPackage.eNS_URI) instanceof Seff_reliabilityPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(Seff_reliabilityPackage.eNS_URI) : Seff_reliabilityPackage.eINSTANCE); |
140 | QosannotationsPackageImpl theQosannotationsPackage = (QosannotationsPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(QosannotationsPackage.eNS_URI) instanceof QosannotationsPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(QosannotationsPackage.eNS_URI) : QosannotationsPackage.eINSTANCE); |
141 | Qos_performancePackageImpl theQos_performancePackage = (Qos_performancePackageImpl)(EPackage.Registry.INSTANCE.getEPackage(Qos_performancePackage.eNS_URI) instanceof Qos_performancePackageImpl ? EPackage.Registry.INSTANCE.getEPackage(Qos_performancePackage.eNS_URI) : Qos_performancePackage.eINSTANCE); |
142 | Qos_reliabilityPackageImpl theQos_reliabilityPackage = (Qos_reliabilityPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(Qos_reliabilityPackage.eNS_URI) instanceof Qos_reliabilityPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(Qos_reliabilityPackage.eNS_URI) : Qos_reliabilityPackage.eINSTANCE); |
143 | SystemPackageImpl theSystemPackage = (SystemPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(SystemPackage.eNS_URI) instanceof SystemPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(SystemPackage.eNS_URI) : SystemPackage.eINSTANCE); |
144 | ResourceenvironmentPackageImpl theResourceenvironmentPackage = (ResourceenvironmentPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(ResourceenvironmentPackage.eNS_URI) instanceof ResourceenvironmentPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(ResourceenvironmentPackage.eNS_URI) : ResourceenvironmentPackage.eINSTANCE); |
145 | AllocationPackageImpl theAllocationPackage = (AllocationPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(AllocationPackage.eNS_URI) instanceof AllocationPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(AllocationPackage.eNS_URI) : AllocationPackage.eINSTANCE); |
146 | SubsystemPackageImpl theSubsystemPackage = (SubsystemPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(SubsystemPackage.eNS_URI) instanceof SubsystemPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(SubsystemPackage.eNS_URI) : SubsystemPackage.eINSTANCE); |
147 | |
148 | // Create package meta-data objects |
149 | thePcmPackage.createPackageContents(); |
150 | theCorePackage.createPackageContents(); |
151 | theEntityPackage.createPackageContents(); |
152 | theCompositionPackage.createPackageContents(); |
153 | theUsagemodelPackage.createPackageContents(); |
154 | theRepositoryPackage.createPackageContents(); |
155 | theResourcetypePackage.createPackageContents(); |
156 | theProtocolPackage.createPackageContents(); |
157 | theParameterPackage.createPackageContents(); |
158 | theReliabilityPackage.createPackageContents(); |
159 | theSeffPackage.createPackageContents(); |
160 | theSeff_performancePackage.createPackageContents(); |
161 | theSeff_reliabilityPackage.createPackageContents(); |
162 | theQosannotationsPackage.createPackageContents(); |
163 | theQos_performancePackage.createPackageContents(); |
164 | theQos_reliabilityPackage.createPackageContents(); |
165 | theSystemPackage.createPackageContents(); |
166 | theResourceenvironmentPackage.createPackageContents(); |
167 | theAllocationPackage.createPackageContents(); |
168 | theSubsystemPackage.createPackageContents(); |
169 | |
170 | // Initialize created meta-data |
171 | thePcmPackage.initializePackageContents(); |
172 | theCorePackage.initializePackageContents(); |
173 | theEntityPackage.initializePackageContents(); |
174 | theCompositionPackage.initializePackageContents(); |
175 | theUsagemodelPackage.initializePackageContents(); |
176 | theRepositoryPackage.initializePackageContents(); |
177 | theResourcetypePackage.initializePackageContents(); |
178 | theProtocolPackage.initializePackageContents(); |
179 | theParameterPackage.initializePackageContents(); |
180 | theReliabilityPackage.initializePackageContents(); |
181 | theSeffPackage.initializePackageContents(); |
182 | theSeff_performancePackage.initializePackageContents(); |
183 | theSeff_reliabilityPackage.initializePackageContents(); |
184 | theQosannotationsPackage.initializePackageContents(); |
185 | theQos_performancePackage.initializePackageContents(); |
186 | theQos_reliabilityPackage.initializePackageContents(); |
187 | theSystemPackage.initializePackageContents(); |
188 | theResourceenvironmentPackage.initializePackageContents(); |
189 | theAllocationPackage.initializePackageContents(); |
190 | theSubsystemPackage.initializePackageContents(); |
191 | |
192 | // Mark meta-data to indicate it can't be changed |
193 | thePcmPackage.freeze(); |
194 | |
195 | |
196 | // Update the registry and return the package |
197 | EPackage.Registry.INSTANCE.put(PcmPackage.eNS_URI, thePcmPackage); |
198 | return thePcmPackage; |
199 | } |
200 | |
201 | /** |
202 | * <!-- begin-user-doc --> |
203 | * <!-- end-user-doc --> |
204 | * @generated |
205 | */ |
206 | public EClass getDummyClass() { |
207 | return dummyClassEClass; |
208 | } |
209 | |
210 | /** |
211 | * <!-- begin-user-doc --> |
212 | * <!-- end-user-doc --> |
213 | * @generated |
214 | */ |
215 | public PcmFactory getPcmFactory() { |
216 | return (PcmFactory)getEFactoryInstance(); |
217 | } |
218 | |
219 | /** |
220 | * <!-- begin-user-doc --> |
221 | * <!-- end-user-doc --> |
222 | * @generated |
223 | */ |
224 | private boolean isCreated = false; |
225 | |
226 | /** |
227 | * Creates the meta-model objects for the package. This method is |
228 | * guarded to have no affect on any invocation but its first. |
229 | * <!-- begin-user-doc --> |
230 | * <!-- end-user-doc --> |
231 | * @generated |
232 | */ |
233 | public void createPackageContents() { |
234 | if (isCreated) return; |
235 | isCreated = true; |
236 | |
237 | // Create classes and their features |
238 | dummyClassEClass = createEClass(DUMMY_CLASS); |
239 | } |
240 | |
241 | /** |
242 | * <!-- begin-user-doc --> |
243 | * <!-- end-user-doc --> |
244 | * @generated |
245 | */ |
246 | private boolean isInitialized = false; |
247 | |
248 | /** |
249 | * Complete the initialization of the package and its meta-model. This |
250 | * method is guarded to have no affect on any invocation but its first. |
251 | * <!-- begin-user-doc --> |
252 | * <!-- end-user-doc --> |
253 | * @generated |
254 | */ |
255 | public void initializePackageContents() { |
256 | if (isInitialized) return; |
257 | isInitialized = true; |
258 | |
259 | // Initialize package |
260 | setName(eNAME); |
261 | setNsPrefix(eNS_PREFIX); |
262 | setNsURI(eNS_URI); |
263 | |
264 | // Obtain other dependent packages |
265 | CorePackage theCorePackage = (CorePackage)EPackage.Registry.INSTANCE.getEPackage(CorePackage.eNS_URI); |
266 | UsagemodelPackage theUsagemodelPackage = (UsagemodelPackage)EPackage.Registry.INSTANCE.getEPackage(UsagemodelPackage.eNS_URI); |
267 | RepositoryPackage theRepositoryPackage = (RepositoryPackage)EPackage.Registry.INSTANCE.getEPackage(RepositoryPackage.eNS_URI); |
268 | ResourcetypePackage theResourcetypePackage = (ResourcetypePackage)EPackage.Registry.INSTANCE.getEPackage(ResourcetypePackage.eNS_URI); |
269 | ProtocolPackage theProtocolPackage = (ProtocolPackage)EPackage.Registry.INSTANCE.getEPackage(ProtocolPackage.eNS_URI); |
270 | ParameterPackage theParameterPackage = (ParameterPackage)EPackage.Registry.INSTANCE.getEPackage(ParameterPackage.eNS_URI); |
271 | ReliabilityPackage theReliabilityPackage = (ReliabilityPackage)EPackage.Registry.INSTANCE.getEPackage(ReliabilityPackage.eNS_URI); |
272 | SeffPackage theSeffPackage = (SeffPackage)EPackage.Registry.INSTANCE.getEPackage(SeffPackage.eNS_URI); |
273 | QosannotationsPackage theQosannotationsPackage = (QosannotationsPackage)EPackage.Registry.INSTANCE.getEPackage(QosannotationsPackage.eNS_URI); |
274 | SystemPackage theSystemPackage = (SystemPackage)EPackage.Registry.INSTANCE.getEPackage(SystemPackage.eNS_URI); |
275 | ResourceenvironmentPackage theResourceenvironmentPackage = (ResourceenvironmentPackage)EPackage.Registry.INSTANCE.getEPackage(ResourceenvironmentPackage.eNS_URI); |
276 | AllocationPackage theAllocationPackage = (AllocationPackage)EPackage.Registry.INSTANCE.getEPackage(AllocationPackage.eNS_URI); |
277 | SubsystemPackage theSubsystemPackage = (SubsystemPackage)EPackage.Registry.INSTANCE.getEPackage(SubsystemPackage.eNS_URI); |
278 | |
279 | // Add subpackages |
280 | getESubpackages().add(theCorePackage); |
281 | getESubpackages().add(theUsagemodelPackage); |
282 | getESubpackages().add(theRepositoryPackage); |
283 | getESubpackages().add(theResourcetypePackage); |
284 | getESubpackages().add(theProtocolPackage); |
285 | getESubpackages().add(theParameterPackage); |
286 | getESubpackages().add(theReliabilityPackage); |
287 | getESubpackages().add(theSeffPackage); |
288 | getESubpackages().add(theQosannotationsPackage); |
289 | getESubpackages().add(theSystemPackage); |
290 | getESubpackages().add(theResourceenvironmentPackage); |
291 | getESubpackages().add(theAllocationPackage); |
292 | getESubpackages().add(theSubsystemPackage); |
293 | |
294 | // Create type parameters |
295 | |
296 | // Set bounds for type parameters |
297 | |
298 | // Add supertypes to classes |
299 | |
300 | // Initialize classes and features; add operations and parameters |
301 | initEClass(dummyClassEClass, DummyClass.class, "DummyClass", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
302 | |
303 | // Create resource |
304 | createResource(eNS_URI); |
305 | } |
306 | |
307 | } //PcmPackageImpl |