diff options
author | OszkarSemerath <oszka@SEMERATH-LAPTOP> | 2018-01-13 19:33:26 +0100 |
---|---|---|
committer | OszkarSemerath <oszka@SEMERATH-LAPTOP> | 2018-01-13 19:33:26 +0100 |
commit | 7e50434905cbb7f5d03636033b698e17a9075e9d (patch) | |
tree | 10e0968c20ac55dae4f5dc6077f39cf9947e3cb9 /Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/ApplicationConfigurationPackageImpl.java | |
parent | Test and measurement runners (diff) | |
download | VIATRA-Generator-7e50434905cbb7f5d03636033b698e17a9075e9d.tar.gz VIATRA-Generator-7e50434905cbb7f5d03636033b698e17a9075e9d.tar.zst VIATRA-Generator-7e50434905cbb7f5d03636033b698e17a9075e9d.zip |
Initial commit of the configuration language and application
Diffstat (limited to 'Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/ApplicationConfigurationPackageImpl.java')
-rw-r--r-- | Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/ApplicationConfigurationPackageImpl.java | 602 |
1 files changed, 602 insertions, 0 deletions
diff --git a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/ApplicationConfigurationPackageImpl.java b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/ApplicationConfigurationPackageImpl.java new file mode 100644 index 00000000..50ad4358 --- /dev/null +++ b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/ApplicationConfigurationPackageImpl.java | |||
@@ -0,0 +1,602 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.10.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl; | ||
5 | |||
6 | import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.AllPackageEntry; | ||
7 | import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ApplicationConfigurationFactory; | ||
8 | import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ApplicationConfigurationPackage; | ||
9 | import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.Command; | ||
10 | import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ConfigurationScript; | ||
11 | import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.Declaration; | ||
12 | import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.EPackageImport; | ||
13 | import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.Import; | ||
14 | import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.Metamodel; | ||
15 | import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.MetamodelDeclaration; | ||
16 | import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.MetamodelElement; | ||
17 | import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.MetamodelEntry; | ||
18 | import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.MetamodelReference; | ||
19 | import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.MetamodelSpecification; | ||
20 | import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ViatraImport; | ||
21 | |||
22 | import org.eclipse.emf.ecore.EAttribute; | ||
23 | import org.eclipse.emf.ecore.EClass; | ||
24 | import org.eclipse.emf.ecore.EPackage; | ||
25 | import org.eclipse.emf.ecore.EReference; | ||
26 | import org.eclipse.emf.ecore.EcorePackage; | ||
27 | |||
28 | import org.eclipse.emf.ecore.impl.EPackageImpl; | ||
29 | |||
30 | import org.eclipse.viatra.query.patternlanguage.patternLanguage.PatternLanguagePackage; | ||
31 | |||
32 | /** | ||
33 | * <!-- begin-user-doc --> | ||
34 | * An implementation of the model <b>Package</b>. | ||
35 | * <!-- end-user-doc --> | ||
36 | * @generated | ||
37 | */ | ||
38 | public class ApplicationConfigurationPackageImpl extends EPackageImpl implements ApplicationConfigurationPackage | ||
39 | { | ||
40 | /** | ||
41 | * <!-- begin-user-doc --> | ||
42 | * <!-- end-user-doc --> | ||
43 | * @generated | ||
44 | */ | ||
45 | private EClass configurationScriptEClass = null; | ||
46 | |||
47 | /** | ||
48 | * <!-- begin-user-doc --> | ||
49 | * <!-- end-user-doc --> | ||
50 | * @generated | ||
51 | */ | ||
52 | private EClass commandEClass = null; | ||
53 | |||
54 | /** | ||
55 | * <!-- begin-user-doc --> | ||
56 | * <!-- end-user-doc --> | ||
57 | * @generated | ||
58 | */ | ||
59 | private EClass declarationEClass = null; | ||
60 | |||
61 | /** | ||
62 | * <!-- begin-user-doc --> | ||
63 | * <!-- end-user-doc --> | ||
64 | * @generated | ||
65 | */ | ||
66 | private EClass importEClass = null; | ||
67 | |||
68 | /** | ||
69 | * <!-- begin-user-doc --> | ||
70 | * <!-- end-user-doc --> | ||
71 | * @generated | ||
72 | */ | ||
73 | private EClass ePackageImportEClass = null; | ||
74 | |||
75 | /** | ||
76 | * <!-- begin-user-doc --> | ||
77 | * <!-- end-user-doc --> | ||
78 | * @generated | ||
79 | */ | ||
80 | private EClass viatraImportEClass = null; | ||
81 | |||
82 | /** | ||
83 | * <!-- begin-user-doc --> | ||
84 | * <!-- end-user-doc --> | ||
85 | * @generated | ||
86 | */ | ||
87 | private EClass metamodelSpecificationEClass = null; | ||
88 | |||
89 | /** | ||
90 | * <!-- begin-user-doc --> | ||
91 | * <!-- end-user-doc --> | ||
92 | * @generated | ||
93 | */ | ||
94 | private EClass metamodelEntryEClass = null; | ||
95 | |||
96 | /** | ||
97 | * <!-- begin-user-doc --> | ||
98 | * <!-- end-user-doc --> | ||
99 | * @generated | ||
100 | */ | ||
101 | private EClass allPackageEntryEClass = null; | ||
102 | |||
103 | /** | ||
104 | * <!-- begin-user-doc --> | ||
105 | * <!-- end-user-doc --> | ||
106 | * @generated | ||
107 | */ | ||
108 | private EClass metamodelElementEClass = null; | ||
109 | |||
110 | /** | ||
111 | * <!-- begin-user-doc --> | ||
112 | * <!-- end-user-doc --> | ||
113 | * @generated | ||
114 | */ | ||
115 | private EClass metamodelDeclarationEClass = null; | ||
116 | |||
117 | /** | ||
118 | * <!-- begin-user-doc --> | ||
119 | * <!-- end-user-doc --> | ||
120 | * @generated | ||
121 | */ | ||
122 | private EClass metamodelReferenceEClass = null; | ||
123 | |||
124 | /** | ||
125 | * <!-- begin-user-doc --> | ||
126 | * <!-- end-user-doc --> | ||
127 | * @generated | ||
128 | */ | ||
129 | private EClass metamodelEClass = null; | ||
130 | |||
131 | /** | ||
132 | * Creates an instance of the model <b>Package</b>, registered with | ||
133 | * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package | ||
134 | * package URI value. | ||
135 | * <p>Note: the correct way to create the package is via the static | ||
136 | * factory method {@link #init init()}, which also performs | ||
137 | * initialization of the package, or returns the registered package, | ||
138 | * if one already exists. | ||
139 | * <!-- begin-user-doc --> | ||
140 | * <!-- end-user-doc --> | ||
141 | * @see org.eclipse.emf.ecore.EPackage.Registry | ||
142 | * @see hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ApplicationConfigurationPackage#eNS_URI | ||
143 | * @see #init() | ||
144 | * @generated | ||
145 | */ | ||
146 | private ApplicationConfigurationPackageImpl() | ||
147 | { | ||
148 | super(eNS_URI, ApplicationConfigurationFactory.eINSTANCE); | ||
149 | } | ||
150 | |||
151 | /** | ||
152 | * <!-- begin-user-doc --> | ||
153 | * <!-- end-user-doc --> | ||
154 | * @generated | ||
155 | */ | ||
156 | private static boolean isInited = false; | ||
157 | |||
158 | /** | ||
159 | * Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends. | ||
160 | * | ||
161 | * <p>This method is used to initialize {@link ApplicationConfigurationPackage#eINSTANCE} when that field is accessed. | ||
162 | * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package. | ||
163 | * <!-- begin-user-doc --> | ||
164 | * <!-- end-user-doc --> | ||
165 | * @see #eNS_URI | ||
166 | * @see #createPackageContents() | ||
167 | * @see #initializePackageContents() | ||
168 | * @generated | ||
169 | */ | ||
170 | public static ApplicationConfigurationPackage init() | ||
171 | { | ||
172 | if (isInited) return (ApplicationConfigurationPackage)EPackage.Registry.INSTANCE.getEPackage(ApplicationConfigurationPackage.eNS_URI); | ||
173 | |||
174 | // Obtain or create and register package | ||
175 | ApplicationConfigurationPackageImpl theApplicationConfigurationPackage = (ApplicationConfigurationPackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof ApplicationConfigurationPackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new ApplicationConfigurationPackageImpl()); | ||
176 | |||
177 | isInited = true; | ||
178 | |||
179 | // Initialize simple dependencies | ||
180 | EcorePackage.eINSTANCE.eClass(); | ||
181 | PatternLanguagePackage.eINSTANCE.eClass(); | ||
182 | |||
183 | // Create package meta-data objects | ||
184 | theApplicationConfigurationPackage.createPackageContents(); | ||
185 | |||
186 | // Initialize created meta-data | ||
187 | theApplicationConfigurationPackage.initializePackageContents(); | ||
188 | |||
189 | // Mark meta-data to indicate it can't be changed | ||
190 | theApplicationConfigurationPackage.freeze(); | ||
191 | |||
192 | |||
193 | // Update the registry and return the package | ||
194 | EPackage.Registry.INSTANCE.put(ApplicationConfigurationPackage.eNS_URI, theApplicationConfigurationPackage); | ||
195 | return theApplicationConfigurationPackage; | ||
196 | } | ||
197 | |||
198 | /** | ||
199 | * <!-- begin-user-doc --> | ||
200 | * <!-- end-user-doc --> | ||
201 | * @generated | ||
202 | */ | ||
203 | public EClass getConfigurationScript() | ||
204 | { | ||
205 | return configurationScriptEClass; | ||
206 | } | ||
207 | |||
208 | /** | ||
209 | * <!-- begin-user-doc --> | ||
210 | * <!-- end-user-doc --> | ||
211 | * @generated | ||
212 | */ | ||
213 | public EReference getConfigurationScript_Imports() | ||
214 | { | ||
215 | return (EReference)configurationScriptEClass.getEStructuralFeatures().get(0); | ||
216 | } | ||
217 | |||
218 | /** | ||
219 | * <!-- begin-user-doc --> | ||
220 | * <!-- end-user-doc --> | ||
221 | * @generated | ||
222 | */ | ||
223 | public EReference getConfigurationScript_Commands() | ||
224 | { | ||
225 | return (EReference)configurationScriptEClass.getEStructuralFeatures().get(1); | ||
226 | } | ||
227 | |||
228 | /** | ||
229 | * <!-- begin-user-doc --> | ||
230 | * <!-- end-user-doc --> | ||
231 | * @generated | ||
232 | */ | ||
233 | public EClass getCommand() | ||
234 | { | ||
235 | return commandEClass; | ||
236 | } | ||
237 | |||
238 | /** | ||
239 | * <!-- begin-user-doc --> | ||
240 | * <!-- end-user-doc --> | ||
241 | * @generated | ||
242 | */ | ||
243 | public EClass getDeclaration() | ||
244 | { | ||
245 | return declarationEClass; | ||
246 | } | ||
247 | |||
248 | /** | ||
249 | * <!-- begin-user-doc --> | ||
250 | * <!-- end-user-doc --> | ||
251 | * @generated | ||
252 | */ | ||
253 | public EClass getImport() | ||
254 | { | ||
255 | return importEClass; | ||
256 | } | ||
257 | |||
258 | /** | ||
259 | * <!-- begin-user-doc --> | ||
260 | * <!-- end-user-doc --> | ||
261 | * @generated | ||
262 | */ | ||
263 | public EClass getEPackageImport() | ||
264 | { | ||
265 | return ePackageImportEClass; | ||
266 | } | ||
267 | |||
268 | /** | ||
269 | * <!-- begin-user-doc --> | ||
270 | * <!-- end-user-doc --> | ||
271 | * @generated | ||
272 | */ | ||
273 | public EReference getEPackageImport_ImportedPackage() | ||
274 | { | ||
275 | return (EReference)ePackageImportEClass.getEStructuralFeatures().get(0); | ||
276 | } | ||
277 | |||
278 | /** | ||
279 | * <!-- begin-user-doc --> | ||
280 | * <!-- end-user-doc --> | ||
281 | * @generated | ||
282 | */ | ||
283 | public EClass getViatraImport() | ||
284 | { | ||
285 | return viatraImportEClass; | ||
286 | } | ||
287 | |||
288 | /** | ||
289 | * <!-- begin-user-doc --> | ||
290 | * <!-- end-user-doc --> | ||
291 | * @generated | ||
292 | */ | ||
293 | public EReference getViatraImport_ImportedViatra() | ||
294 | { | ||
295 | return (EReference)viatraImportEClass.getEStructuralFeatures().get(0); | ||
296 | } | ||
297 | |||
298 | /** | ||
299 | * <!-- begin-user-doc --> | ||
300 | * <!-- end-user-doc --> | ||
301 | * @generated | ||
302 | */ | ||
303 | public EClass getMetamodelSpecification() | ||
304 | { | ||
305 | return metamodelSpecificationEClass; | ||
306 | } | ||
307 | |||
308 | /** | ||
309 | * <!-- begin-user-doc --> | ||
310 | * <!-- end-user-doc --> | ||
311 | * @generated | ||
312 | */ | ||
313 | public EReference getMetamodelSpecification_Entries() | ||
314 | { | ||
315 | return (EReference)metamodelSpecificationEClass.getEStructuralFeatures().get(0); | ||
316 | } | ||
317 | |||
318 | /** | ||
319 | * <!-- begin-user-doc --> | ||
320 | * <!-- end-user-doc --> | ||
321 | * @generated | ||
322 | */ | ||
323 | public EClass getMetamodelEntry() | ||
324 | { | ||
325 | return metamodelEntryEClass; | ||
326 | } | ||
327 | |||
328 | /** | ||
329 | * <!-- begin-user-doc --> | ||
330 | * <!-- end-user-doc --> | ||
331 | * @generated | ||
332 | */ | ||
333 | public EReference getMetamodelEntry_Package() | ||
334 | { | ||
335 | return (EReference)metamodelEntryEClass.getEStructuralFeatures().get(0); | ||
336 | } | ||
337 | |||
338 | /** | ||
339 | * <!-- begin-user-doc --> | ||
340 | * <!-- end-user-doc --> | ||
341 | * @generated | ||
342 | */ | ||
343 | public EClass getAllPackageEntry() | ||
344 | { | ||
345 | return allPackageEntryEClass; | ||
346 | } | ||
347 | |||
348 | /** | ||
349 | * <!-- begin-user-doc --> | ||
350 | * <!-- end-user-doc --> | ||
351 | * @generated | ||
352 | */ | ||
353 | public EReference getAllPackageEntry_Exclusion() | ||
354 | { | ||
355 | return (EReference)allPackageEntryEClass.getEStructuralFeatures().get(0); | ||
356 | } | ||
357 | |||
358 | /** | ||
359 | * <!-- begin-user-doc --> | ||
360 | * <!-- end-user-doc --> | ||
361 | * @generated | ||
362 | */ | ||
363 | public EClass getMetamodelElement() | ||
364 | { | ||
365 | return metamodelElementEClass; | ||
366 | } | ||
367 | |||
368 | /** | ||
369 | * <!-- begin-user-doc --> | ||
370 | * <!-- end-user-doc --> | ||
371 | * @generated | ||
372 | */ | ||
373 | public EReference getMetamodelElement_Classifier() | ||
374 | { | ||
375 | return (EReference)metamodelElementEClass.getEStructuralFeatures().get(0); | ||
376 | } | ||
377 | |||
378 | /** | ||
379 | * <!-- begin-user-doc --> | ||
380 | * <!-- end-user-doc --> | ||
381 | * @generated | ||
382 | */ | ||
383 | public EReference getMetamodelElement_Feature() | ||
384 | { | ||
385 | return (EReference)metamodelElementEClass.getEStructuralFeatures().get(1); | ||
386 | } | ||
387 | |||
388 | /** | ||
389 | * <!-- begin-user-doc --> | ||
390 | * <!-- end-user-doc --> | ||
391 | * @generated | ||
392 | */ | ||
393 | public EClass getMetamodelDeclaration() | ||
394 | { | ||
395 | return metamodelDeclarationEClass; | ||
396 | } | ||
397 | |||
398 | /** | ||
399 | * <!-- begin-user-doc --> | ||
400 | * <!-- end-user-doc --> | ||
401 | * @generated | ||
402 | */ | ||
403 | public EAttribute getMetamodelDeclaration_Name() | ||
404 | { | ||
405 | return (EAttribute)metamodelDeclarationEClass.getEStructuralFeatures().get(0); | ||
406 | } | ||
407 | |||
408 | /** | ||
409 | * <!-- begin-user-doc --> | ||
410 | * <!-- end-user-doc --> | ||
411 | * @generated | ||
412 | */ | ||
413 | public EReference getMetamodelDeclaration_Specification() | ||
414 | { | ||
415 | return (EReference)metamodelDeclarationEClass.getEStructuralFeatures().get(1); | ||
416 | } | ||
417 | |||
418 | /** | ||
419 | * <!-- begin-user-doc --> | ||
420 | * <!-- end-user-doc --> | ||
421 | * @generated | ||
422 | */ | ||
423 | public EClass getMetamodelReference() | ||
424 | { | ||
425 | return metamodelReferenceEClass; | ||
426 | } | ||
427 | |||
428 | /** | ||
429 | * <!-- begin-user-doc --> | ||
430 | * <!-- end-user-doc --> | ||
431 | * @generated | ||
432 | */ | ||
433 | public EReference getMetamodelReference_Referred() | ||
434 | { | ||
435 | return (EReference)metamodelReferenceEClass.getEStructuralFeatures().get(0); | ||
436 | } | ||
437 | |||
438 | /** | ||
439 | * <!-- begin-user-doc --> | ||
440 | * <!-- end-user-doc --> | ||
441 | * @generated | ||
442 | */ | ||
443 | public EClass getMetamodel() | ||
444 | { | ||
445 | return metamodelEClass; | ||
446 | } | ||
447 | |||
448 | /** | ||
449 | * <!-- begin-user-doc --> | ||
450 | * <!-- end-user-doc --> | ||
451 | * @generated | ||
452 | */ | ||
453 | public ApplicationConfigurationFactory getApplicationConfigurationFactory() | ||
454 | { | ||
455 | return (ApplicationConfigurationFactory)getEFactoryInstance(); | ||
456 | } | ||
457 | |||
458 | /** | ||
459 | * <!-- begin-user-doc --> | ||
460 | * <!-- end-user-doc --> | ||
461 | * @generated | ||
462 | */ | ||
463 | private boolean isCreated = false; | ||
464 | |||
465 | /** | ||
466 | * Creates the meta-model objects for the package. This method is | ||
467 | * guarded to have no affect on any invocation but its first. | ||
468 | * <!-- begin-user-doc --> | ||
469 | * <!-- end-user-doc --> | ||
470 | * @generated | ||
471 | */ | ||
472 | public void createPackageContents() | ||
473 | { | ||
474 | if (isCreated) return; | ||
475 | isCreated = true; | ||
476 | |||
477 | // Create classes and their features | ||
478 | configurationScriptEClass = createEClass(CONFIGURATION_SCRIPT); | ||
479 | createEReference(configurationScriptEClass, CONFIGURATION_SCRIPT__IMPORTS); | ||
480 | createEReference(configurationScriptEClass, CONFIGURATION_SCRIPT__COMMANDS); | ||
481 | |||
482 | commandEClass = createEClass(COMMAND); | ||
483 | |||
484 | declarationEClass = createEClass(DECLARATION); | ||
485 | |||
486 | importEClass = createEClass(IMPORT); | ||
487 | |||
488 | ePackageImportEClass = createEClass(EPACKAGE_IMPORT); | ||
489 | createEReference(ePackageImportEClass, EPACKAGE_IMPORT__IMPORTED_PACKAGE); | ||
490 | |||
491 | viatraImportEClass = createEClass(VIATRA_IMPORT); | ||
492 | createEReference(viatraImportEClass, VIATRA_IMPORT__IMPORTED_VIATRA); | ||
493 | |||
494 | metamodelSpecificationEClass = createEClass(METAMODEL_SPECIFICATION); | ||
495 | createEReference(metamodelSpecificationEClass, METAMODEL_SPECIFICATION__ENTRIES); | ||
496 | |||
497 | metamodelEntryEClass = createEClass(METAMODEL_ENTRY); | ||
498 | createEReference(metamodelEntryEClass, METAMODEL_ENTRY__PACKAGE); | ||
499 | |||
500 | allPackageEntryEClass = createEClass(ALL_PACKAGE_ENTRY); | ||
501 | createEReference(allPackageEntryEClass, ALL_PACKAGE_ENTRY__EXCLUSION); | ||
502 | |||
503 | metamodelElementEClass = createEClass(METAMODEL_ELEMENT); | ||
504 | createEReference(metamodelElementEClass, METAMODEL_ELEMENT__CLASSIFIER); | ||
505 | createEReference(metamodelElementEClass, METAMODEL_ELEMENT__FEATURE); | ||
506 | |||
507 | metamodelDeclarationEClass = createEClass(METAMODEL_DECLARATION); | ||
508 | createEAttribute(metamodelDeclarationEClass, METAMODEL_DECLARATION__NAME); | ||
509 | createEReference(metamodelDeclarationEClass, METAMODEL_DECLARATION__SPECIFICATION); | ||
510 | |||
511 | metamodelReferenceEClass = createEClass(METAMODEL_REFERENCE); | ||
512 | createEReference(metamodelReferenceEClass, METAMODEL_REFERENCE__REFERRED); | ||
513 | |||
514 | metamodelEClass = createEClass(METAMODEL); | ||
515 | } | ||
516 | |||
517 | /** | ||
518 | * <!-- begin-user-doc --> | ||
519 | * <!-- end-user-doc --> | ||
520 | * @generated | ||
521 | */ | ||
522 | private boolean isInitialized = false; | ||
523 | |||
524 | /** | ||
525 | * Complete the initialization of the package and its meta-model. This | ||
526 | * method is guarded to have no affect on any invocation but its first. | ||
527 | * <!-- begin-user-doc --> | ||
528 | * <!-- end-user-doc --> | ||
529 | * @generated | ||
530 | */ | ||
531 | public void initializePackageContents() | ||
532 | { | ||
533 | if (isInitialized) return; | ||
534 | isInitialized = true; | ||
535 | |||
536 | // Initialize package | ||
537 | setName(eNAME); | ||
538 | setNsPrefix(eNS_PREFIX); | ||
539 | setNsURI(eNS_URI); | ||
540 | |||
541 | // Obtain other dependent packages | ||
542 | EcorePackage theEcorePackage = (EcorePackage)EPackage.Registry.INSTANCE.getEPackage(EcorePackage.eNS_URI); | ||
543 | PatternLanguagePackage thePatternLanguagePackage = (PatternLanguagePackage)EPackage.Registry.INSTANCE.getEPackage(PatternLanguagePackage.eNS_URI); | ||
544 | |||
545 | // Create type parameters | ||
546 | |||
547 | // Set bounds for type parameters | ||
548 | |||
549 | // Add supertypes to classes | ||
550 | declarationEClass.getESuperTypes().add(this.getCommand()); | ||
551 | ePackageImportEClass.getESuperTypes().add(this.getImport()); | ||
552 | viatraImportEClass.getESuperTypes().add(this.getImport()); | ||
553 | metamodelSpecificationEClass.getESuperTypes().add(this.getMetamodel()); | ||
554 | allPackageEntryEClass.getESuperTypes().add(this.getMetamodelEntry()); | ||
555 | metamodelElementEClass.getESuperTypes().add(this.getMetamodelEntry()); | ||
556 | metamodelDeclarationEClass.getESuperTypes().add(this.getDeclaration()); | ||
557 | metamodelReferenceEClass.getESuperTypes().add(this.getMetamodel()); | ||
558 | |||
559 | // Initialize classes and features; add operations and parameters | ||
560 | initEClass(configurationScriptEClass, ConfigurationScript.class, "ConfigurationScript", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
561 | initEReference(getConfigurationScript_Imports(), this.getImport(), null, "imports", null, 0, -1, ConfigurationScript.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
562 | initEReference(getConfigurationScript_Commands(), this.getCommand(), null, "commands", null, 0, -1, ConfigurationScript.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
563 | |||
564 | initEClass(commandEClass, Command.class, "Command", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
565 | |||
566 | initEClass(declarationEClass, Declaration.class, "Declaration", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
567 | |||
568 | initEClass(importEClass, Import.class, "Import", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
569 | |||
570 | initEClass(ePackageImportEClass, EPackageImport.class, "EPackageImport", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
571 | initEReference(getEPackageImport_ImportedPackage(), theEcorePackage.getEPackage(), null, "importedPackage", null, 0, 1, EPackageImport.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
572 | |||
573 | initEClass(viatraImportEClass, ViatraImport.class, "ViatraImport", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
574 | initEReference(getViatraImport_ImportedViatra(), thePatternLanguagePackage.getPatternModel(), null, "importedViatra", null, 0, 1, ViatraImport.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
575 | |||
576 | initEClass(metamodelSpecificationEClass, MetamodelSpecification.class, "MetamodelSpecification", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
577 | initEReference(getMetamodelSpecification_Entries(), this.getMetamodelEntry(), null, "entries", null, 0, -1, MetamodelSpecification.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
578 | |||
579 | initEClass(metamodelEntryEClass, MetamodelEntry.class, "MetamodelEntry", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
580 | initEReference(getMetamodelEntry_Package(), theEcorePackage.getEPackage(), null, "package", null, 0, 1, MetamodelEntry.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
581 | |||
582 | initEClass(allPackageEntryEClass, AllPackageEntry.class, "AllPackageEntry", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
583 | initEReference(getAllPackageEntry_Exclusion(), this.getMetamodelElement(), null, "exclusion", null, 0, -1, AllPackageEntry.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
584 | |||
585 | initEClass(metamodelElementEClass, MetamodelElement.class, "MetamodelElement", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
586 | initEReference(getMetamodelElement_Classifier(), theEcorePackage.getEClassifier(), null, "classifier", null, 0, 1, MetamodelElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
587 | initEReference(getMetamodelElement_Feature(), theEcorePackage.getENamedElement(), null, "feature", null, 0, 1, MetamodelElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
588 | |||
589 | initEClass(metamodelDeclarationEClass, MetamodelDeclaration.class, "MetamodelDeclaration", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
590 | initEAttribute(getMetamodelDeclaration_Name(), theEcorePackage.getEString(), "name", null, 0, 1, MetamodelDeclaration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
591 | initEReference(getMetamodelDeclaration_Specification(), this.getMetamodelSpecification(), null, "specification", null, 0, 1, MetamodelDeclaration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
592 | |||
593 | initEClass(metamodelReferenceEClass, MetamodelReference.class, "MetamodelReference", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
594 | initEReference(getMetamodelReference_Referred(), this.getMetamodelDeclaration(), null, "referred", null, 0, 1, MetamodelReference.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
595 | |||
596 | initEClass(metamodelEClass, Metamodel.class, "Metamodel", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
597 | |||
598 | // Create resource | ||
599 | createResource(eNS_URI); | ||
600 | } | ||
601 | |||
602 | } //ApplicationConfigurationPackageImpl | ||