1 | /** |
2 | * <copyright> |
3 | * </copyright> |
4 | * |
5 | * $Id$ |
6 | */ |
7 | package de.uka.ipd.sdq.featuremodel.impl; |
8 | |
9 | import org.eclipse.emf.ecore.EAttribute; |
10 | import org.eclipse.emf.ecore.EClass; |
11 | import org.eclipse.emf.ecore.EEnum; |
12 | import org.eclipse.emf.ecore.EGenericType; |
13 | import org.eclipse.emf.ecore.EOperation; |
14 | import org.eclipse.emf.ecore.EPackage; |
15 | import org.eclipse.emf.ecore.EReference; |
16 | import org.eclipse.emf.ecore.EValidator; |
17 | import org.eclipse.emf.ecore.EcorePackage; |
18 | import org.eclipse.emf.ecore.impl.EPackageImpl; |
19 | |
20 | import de.uka.ipd.sdq.featuremodel.Attribute; |
21 | import de.uka.ipd.sdq.featuremodel.AttributeTypes; |
22 | import de.uka.ipd.sdq.featuremodel.ChildRelation; |
23 | import de.uka.ipd.sdq.featuremodel.Constraint; |
24 | import de.uka.ipd.sdq.featuremodel.ContinousIntervalRange; |
25 | import de.uka.ipd.sdq.featuremodel.DoubleAttribute; |
26 | import de.uka.ipd.sdq.featuremodel.ExternalObjectAttribute; |
27 | import de.uka.ipd.sdq.featuremodel.Feature; |
28 | import de.uka.ipd.sdq.featuremodel.FeatureDiagram; |
29 | import de.uka.ipd.sdq.featuremodel.FeatureGroup; |
30 | import de.uka.ipd.sdq.featuremodel.IntegerAttribute; |
31 | import de.uka.ipd.sdq.featuremodel.IntegerIntervalRange; |
32 | import de.uka.ipd.sdq.featuremodel.IntervalRange; |
33 | import de.uka.ipd.sdq.featuremodel.NamedElement; |
34 | import de.uka.ipd.sdq.featuremodel.ProhibitsConstraint; |
35 | import de.uka.ipd.sdq.featuremodel.RequiredConstraint; |
36 | import de.uka.ipd.sdq.featuremodel.Simple; |
37 | import de.uka.ipd.sdq.featuremodel.StringAttribute; |
38 | import de.uka.ipd.sdq.featuremodel.featuremodelFactory; |
39 | import de.uka.ipd.sdq.featuremodel.featuremodelPackage; |
40 | import de.uka.ipd.sdq.featuremodel.util.featuremodelValidator; |
41 | import de.uka.ipd.sdq.identifier.IdentifierPackage; |
42 | |
43 | /** |
44 | * <!-- begin-user-doc --> |
45 | * An implementation of the model <b>Package</b>. |
46 | * <!-- end-user-doc --> |
47 | * @generated |
48 | */ |
49 | public class featuremodelPackageImpl extends EPackageImpl implements featuremodelPackage { |
50 | /** |
51 | * <!-- begin-user-doc --> |
52 | * <!-- end-user-doc --> |
53 | * @generated |
54 | */ |
55 | private EClass featureEClass = null; |
56 | |
57 | /** |
58 | * <!-- begin-user-doc --> |
59 | * <!-- end-user-doc --> |
60 | * @generated |
61 | */ |
62 | private EClass namedElementEClass = null; |
63 | |
64 | /** |
65 | * <!-- begin-user-doc --> |
66 | * <!-- end-user-doc --> |
67 | * @generated |
68 | */ |
69 | private EClass attributeEClass = null; |
70 | |
71 | /** |
72 | * <!-- begin-user-doc --> |
73 | * <!-- end-user-doc --> |
74 | * @generated |
75 | */ |
76 | private EClass childRelationEClass = null; |
77 | |
78 | /** |
79 | * <!-- begin-user-doc --> |
80 | * <!-- end-user-doc --> |
81 | * @generated |
82 | */ |
83 | private EClass simpleEClass = null; |
84 | |
85 | /** |
86 | * <!-- begin-user-doc --> |
87 | * <!-- end-user-doc --> |
88 | * @generated |
89 | */ |
90 | private EClass featureGroupEClass = null; |
91 | |
92 | /** |
93 | * <!-- begin-user-doc --> |
94 | * <!-- end-user-doc --> |
95 | * @generated |
96 | */ |
97 | private EClass featureDiagramEClass = null; |
98 | |
99 | /** |
100 | * <!-- begin-user-doc --> |
101 | * <!-- end-user-doc --> |
102 | * @generated |
103 | */ |
104 | private EClass constraintEClass = null; |
105 | |
106 | /** |
107 | * <!-- begin-user-doc --> |
108 | * <!-- end-user-doc --> |
109 | * @generated |
110 | */ |
111 | private EClass requiredConstraintEClass = null; |
112 | |
113 | /** |
114 | * <!-- begin-user-doc --> |
115 | * <!-- end-user-doc --> |
116 | * @generated |
117 | */ |
118 | private EClass prohibitsConstraintEClass = null; |
119 | |
120 | /** |
121 | * <!-- begin-user-doc --> |
122 | * <!-- end-user-doc --> |
123 | * @generated |
124 | */ |
125 | private EClass integerAttributeEClass = null; |
126 | |
127 | /** |
128 | * <!-- begin-user-doc --> |
129 | * <!-- end-user-doc --> |
130 | * @generated |
131 | */ |
132 | private EClass doubleAttributeEClass = null; |
133 | |
134 | /** |
135 | * <!-- begin-user-doc --> |
136 | * <!-- end-user-doc --> |
137 | * @generated |
138 | */ |
139 | private EClass stringAttributeEClass = null; |
140 | |
141 | /** |
142 | * <!-- begin-user-doc --> |
143 | * <!-- end-user-doc --> |
144 | * @generated |
145 | */ |
146 | private EClass externalObjectAttributeEClass = null; |
147 | |
148 | /** |
149 | * <!-- begin-user-doc --> |
150 | * <!-- end-user-doc --> |
151 | * @generated |
152 | */ |
153 | private EClass intervalRangeEClass = null; |
154 | |
155 | /** |
156 | * <!-- begin-user-doc --> |
157 | * <!-- end-user-doc --> |
158 | * @generated |
159 | */ |
160 | private EClass integerIntervalRangeEClass = null; |
161 | |
162 | /** |
163 | * <!-- begin-user-doc --> |
164 | * <!-- end-user-doc --> |
165 | * @generated |
166 | */ |
167 | private EClass continousIntervalRangeEClass = null; |
168 | |
169 | /** |
170 | * <!-- begin-user-doc --> |
171 | * <!-- end-user-doc --> |
172 | * @generated |
173 | */ |
174 | private EEnum attributeTypesEEnum = null; |
175 | |
176 | /** |
177 | * Creates an instance of the model <b>Package</b>, registered with |
178 | * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package |
179 | * package URI value. |
180 | * <p>Note: the correct way to create the package is via the static |
181 | * factory method {@link #init init()}, which also performs |
182 | * initialization of the package, or returns the registered package, |
183 | * if one already exists. |
184 | * <!-- begin-user-doc --> |
185 | * <!-- end-user-doc --> |
186 | * @see org.eclipse.emf.ecore.EPackage.Registry |
187 | * @see de.uka.ipd.sdq.featuremodel.featuremodelPackage#eNS_URI |
188 | * @see #init() |
189 | * @generated |
190 | */ |
191 | private featuremodelPackageImpl() { |
192 | super(eNS_URI, featuremodelFactory.eINSTANCE); |
193 | } |
194 | |
195 | /** |
196 | * <!-- begin-user-doc --> |
197 | * <!-- end-user-doc --> |
198 | * @generated |
199 | */ |
200 | private static boolean isInited = false; |
201 | |
202 | /** |
203 | * Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends. |
204 | * |
205 | * <p>This method is used to initialize {@link featuremodelPackage#eINSTANCE} when that field is accessed. |
206 | * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package. |
207 | * <!-- begin-user-doc --> |
208 | * <!-- end-user-doc --> |
209 | * @see #eNS_URI |
210 | * @see #createPackageContents() |
211 | * @see #initializePackageContents() |
212 | * @generated |
213 | */ |
214 | public static featuremodelPackage init() { |
215 | if (isInited) return (featuremodelPackage)EPackage.Registry.INSTANCE.getEPackage(featuremodelPackage.eNS_URI); |
216 | |
217 | // Obtain or create and register package |
218 | featuremodelPackageImpl thefeaturemodelPackage = (featuremodelPackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof featuremodelPackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new featuremodelPackageImpl()); |
219 | |
220 | isInited = true; |
221 | |
222 | // Initialize simple dependencies |
223 | EcorePackage.eINSTANCE.eClass(); |
224 | IdentifierPackage.eINSTANCE.eClass(); |
225 | |
226 | // Create package meta-data objects |
227 | thefeaturemodelPackage.createPackageContents(); |
228 | |
229 | // Initialize created meta-data |
230 | thefeaturemodelPackage.initializePackageContents(); |
231 | |
232 | // Register package validator |
233 | EValidator.Registry.INSTANCE.put |
234 | (thefeaturemodelPackage, |
235 | new EValidator.Descriptor() { |
236 | public EValidator getEValidator() { |
237 | return featuremodelValidator.INSTANCE; |
238 | } |
239 | }); |
240 | |
241 | // Mark meta-data to indicate it can't be changed |
242 | thefeaturemodelPackage.freeze(); |
243 | |
244 | |
245 | // Update the registry and return the package |
246 | EPackage.Registry.INSTANCE.put(featuremodelPackage.eNS_URI, thefeaturemodelPackage); |
247 | return thefeaturemodelPackage; |
248 | } |
249 | |
250 | /** |
251 | * <!-- begin-user-doc --> |
252 | * <!-- end-user-doc --> |
253 | * @generated |
254 | */ |
255 | public EClass getFeature() { |
256 | return featureEClass; |
257 | } |
258 | |
259 | /** |
260 | * <!-- begin-user-doc --> |
261 | * <!-- end-user-doc --> |
262 | * @generated |
263 | */ |
264 | public EReference getFeature_Attributes() { |
265 | return (EReference)featureEClass.getEStructuralFeatures().get(0); |
266 | } |
267 | |
268 | /** |
269 | * <!-- begin-user-doc --> |
270 | * <!-- end-user-doc --> |
271 | * @generated |
272 | */ |
273 | public EReference getFeature_Childrelation() { |
274 | return (EReference)featureEClass.getEStructuralFeatures().get(1); |
275 | } |
276 | |
277 | /** |
278 | * <!-- begin-user-doc --> |
279 | * <!-- end-user-doc --> |
280 | * @generated |
281 | */ |
282 | public EReference getFeature_SimpleMandatory() { |
283 | return (EReference)featureEClass.getEStructuralFeatures().get(2); |
284 | } |
285 | |
286 | /** |
287 | * <!-- begin-user-doc --> |
288 | * <!-- end-user-doc --> |
289 | * @generated |
290 | */ |
291 | public EReference getFeature_SimpleOptional() { |
292 | return (EReference)featureEClass.getEStructuralFeatures().get(3); |
293 | } |
294 | |
295 | /** |
296 | * <!-- begin-user-doc --> |
297 | * <!-- end-user-doc --> |
298 | * @generated |
299 | */ |
300 | public EReference getFeature_Featuregroup() { |
301 | return (EReference)featureEClass.getEStructuralFeatures().get(4); |
302 | } |
303 | |
304 | /** |
305 | * <!-- begin-user-doc --> |
306 | * <!-- end-user-doc --> |
307 | * @generated |
308 | */ |
309 | public EClass getNamedElement() { |
310 | return namedElementEClass; |
311 | } |
312 | |
313 | /** |
314 | * <!-- begin-user-doc --> |
315 | * <!-- end-user-doc --> |
316 | * @generated |
317 | */ |
318 | public EAttribute getNamedElement_Name() { |
319 | return (EAttribute)namedElementEClass.getEStructuralFeatures().get(0); |
320 | } |
321 | |
322 | /** |
323 | * <!-- begin-user-doc --> |
324 | * <!-- end-user-doc --> |
325 | * @generated |
326 | */ |
327 | public EClass getAttribute() { |
328 | return attributeEClass; |
329 | } |
330 | |
331 | /** |
332 | * <!-- begin-user-doc --> |
333 | * <!-- end-user-doc --> |
334 | * @generated |
335 | */ |
336 | public EReference getAttribute_Range() { |
337 | return (EReference)attributeEClass.getEStructuralFeatures().get(0); |
338 | } |
339 | |
340 | /** |
341 | * <!-- begin-user-doc --> |
342 | * <!-- end-user-doc --> |
343 | * @generated |
344 | */ |
345 | public EClass getChildRelation() { |
346 | return childRelationEClass; |
347 | } |
348 | |
349 | /** |
350 | * <!-- begin-user-doc --> |
351 | * <!-- end-user-doc --> |
352 | * @generated |
353 | */ |
354 | public EClass getSimple() { |
355 | return simpleEClass; |
356 | } |
357 | |
358 | /** |
359 | * <!-- begin-user-doc --> |
360 | * <!-- end-user-doc --> |
361 | * @generated |
362 | */ |
363 | public EReference getSimple_OptionalChildren() { |
364 | return (EReference)simpleEClass.getEStructuralFeatures().get(0); |
365 | } |
366 | |
367 | /** |
368 | * <!-- begin-user-doc --> |
369 | * <!-- end-user-doc --> |
370 | * @generated |
371 | */ |
372 | public EReference getSimple_MandatoryChildren() { |
373 | return (EReference)simpleEClass.getEStructuralFeatures().get(1); |
374 | } |
375 | |
376 | /** |
377 | * <!-- begin-user-doc --> |
378 | * <!-- end-user-doc --> |
379 | * @generated |
380 | */ |
381 | public EClass getFeatureGroup() { |
382 | return featureGroupEClass; |
383 | } |
384 | |
385 | /** |
386 | * <!-- begin-user-doc --> |
387 | * <!-- end-user-doc --> |
388 | * @generated |
389 | */ |
390 | public EAttribute getFeatureGroup_Min() { |
391 | return (EAttribute)featureGroupEClass.getEStructuralFeatures().get(0); |
392 | } |
393 | |
394 | /** |
395 | * <!-- begin-user-doc --> |
396 | * <!-- end-user-doc --> |
397 | * @generated |
398 | */ |
399 | public EAttribute getFeatureGroup_Max() { |
400 | return (EAttribute)featureGroupEClass.getEStructuralFeatures().get(1); |
401 | } |
402 | |
403 | /** |
404 | * <!-- begin-user-doc --> |
405 | * <!-- end-user-doc --> |
406 | * @generated |
407 | */ |
408 | public EReference getFeatureGroup_Children() { |
409 | return (EReference)featureGroupEClass.getEStructuralFeatures().get(2); |
410 | } |
411 | |
412 | /** |
413 | * <!-- begin-user-doc --> |
414 | * <!-- end-user-doc --> |
415 | * @generated |
416 | */ |
417 | public EClass getFeatureDiagram() { |
418 | return featureDiagramEClass; |
419 | } |
420 | |
421 | /** |
422 | * <!-- begin-user-doc --> |
423 | * <!-- end-user-doc --> |
424 | * @generated |
425 | */ |
426 | public EReference getFeatureDiagram_RootFeature() { |
427 | return (EReference)featureDiagramEClass.getEStructuralFeatures().get(0); |
428 | } |
429 | |
430 | /** |
431 | * <!-- begin-user-doc --> |
432 | * <!-- end-user-doc --> |
433 | * @generated |
434 | */ |
435 | public EReference getFeatureDiagram_Constraints() { |
436 | return (EReference)featureDiagramEClass.getEStructuralFeatures().get(1); |
437 | } |
438 | |
439 | /** |
440 | * <!-- begin-user-doc --> |
441 | * <!-- end-user-doc --> |
442 | * @generated |
443 | */ |
444 | public EReference getFeatureDiagram_AnnotatableElement() { |
445 | return (EReference)featureDiagramEClass.getEStructuralFeatures().get(2); |
446 | } |
447 | |
448 | /** |
449 | * <!-- begin-user-doc --> |
450 | * <!-- end-user-doc --> |
451 | * @generated |
452 | */ |
453 | public EClass getConstraint() { |
454 | return constraintEClass; |
455 | } |
456 | |
457 | /** |
458 | * <!-- begin-user-doc --> |
459 | * <!-- end-user-doc --> |
460 | * @generated |
461 | */ |
462 | public EReference getConstraint_Source() { |
463 | return (EReference)constraintEClass.getEStructuralFeatures().get(0); |
464 | } |
465 | |
466 | /** |
467 | * <!-- begin-user-doc --> |
468 | * <!-- end-user-doc --> |
469 | * @generated |
470 | */ |
471 | public EReference getConstraint_Target() { |
472 | return (EReference)constraintEClass.getEStructuralFeatures().get(1); |
473 | } |
474 | |
475 | /** |
476 | * <!-- begin-user-doc --> |
477 | * <!-- end-user-doc --> |
478 | * @generated |
479 | */ |
480 | public EAttribute getConstraint_Description() { |
481 | return (EAttribute)constraintEClass.getEStructuralFeatures().get(2); |
482 | } |
483 | |
484 | /** |
485 | * <!-- begin-user-doc --> |
486 | * <!-- end-user-doc --> |
487 | * @generated |
488 | */ |
489 | public EClass getRequiredConstraint() { |
490 | return requiredConstraintEClass; |
491 | } |
492 | |
493 | /** |
494 | * <!-- begin-user-doc --> |
495 | * <!-- end-user-doc --> |
496 | * @generated |
497 | */ |
498 | public EClass getProhibitsConstraint() { |
499 | return prohibitsConstraintEClass; |
500 | } |
501 | |
502 | /** |
503 | * <!-- begin-user-doc --> |
504 | * <!-- end-user-doc --> |
505 | * @generated |
506 | */ |
507 | public EClass getIntegerAttribute() { |
508 | return integerAttributeEClass; |
509 | } |
510 | |
511 | /** |
512 | * <!-- begin-user-doc --> |
513 | * <!-- end-user-doc --> |
514 | * @generated |
515 | */ |
516 | public EAttribute getIntegerAttribute_DefaultValue() { |
517 | return (EAttribute)integerAttributeEClass.getEStructuralFeatures().get(0); |
518 | } |
519 | |
520 | /** |
521 | * <!-- begin-user-doc --> |
522 | * <!-- end-user-doc --> |
523 | * @generated |
524 | */ |
525 | public EClass getDoubleAttribute() { |
526 | return doubleAttributeEClass; |
527 | } |
528 | |
529 | /** |
530 | * <!-- begin-user-doc --> |
531 | * <!-- end-user-doc --> |
532 | * @generated |
533 | */ |
534 | public EAttribute getDoubleAttribute_DefaultValue() { |
535 | return (EAttribute)doubleAttributeEClass.getEStructuralFeatures().get(0); |
536 | } |
537 | |
538 | /** |
539 | * <!-- begin-user-doc --> |
540 | * <!-- end-user-doc --> |
541 | * @generated |
542 | */ |
543 | public EClass getStringAttribute() { |
544 | return stringAttributeEClass; |
545 | } |
546 | |
547 | /** |
548 | * <!-- begin-user-doc --> |
549 | * <!-- end-user-doc --> |
550 | * @generated |
551 | */ |
552 | public EAttribute getStringAttribute_DefaultValue() { |
553 | return (EAttribute)stringAttributeEClass.getEStructuralFeatures().get(0); |
554 | } |
555 | |
556 | /** |
557 | * <!-- begin-user-doc --> |
558 | * <!-- end-user-doc --> |
559 | * @generated |
560 | */ |
561 | public EClass getExternalObjectAttribute() { |
562 | return externalObjectAttributeEClass; |
563 | } |
564 | |
565 | /** |
566 | * <!-- begin-user-doc --> |
567 | * <!-- end-user-doc --> |
568 | * @generated |
569 | */ |
570 | public EClass getIntervalRange() { |
571 | return intervalRangeEClass; |
572 | } |
573 | |
574 | /** |
575 | * <!-- begin-user-doc --> |
576 | * <!-- end-user-doc --> |
577 | * @generated |
578 | */ |
579 | public EAttribute getIntervalRange_LowerBoundIncluded() { |
580 | return (EAttribute)intervalRangeEClass.getEStructuralFeatures().get(0); |
581 | } |
582 | |
583 | /** |
584 | * <!-- begin-user-doc --> |
585 | * <!-- end-user-doc --> |
586 | * @generated |
587 | */ |
588 | public EAttribute getIntervalRange_UpperBoundIncluded() { |
589 | return (EAttribute)intervalRangeEClass.getEStructuralFeatures().get(1); |
590 | } |
591 | |
592 | /** |
593 | * <!-- begin-user-doc --> |
594 | * <!-- end-user-doc --> |
595 | * @generated |
596 | */ |
597 | public EClass getIntegerIntervalRange() { |
598 | return integerIntervalRangeEClass; |
599 | } |
600 | |
601 | /** |
602 | * <!-- begin-user-doc --> |
603 | * <!-- end-user-doc --> |
604 | * @generated |
605 | */ |
606 | public EAttribute getIntegerIntervalRange_To() { |
607 | return (EAttribute)integerIntervalRangeEClass.getEStructuralFeatures().get(0); |
608 | } |
609 | |
610 | /** |
611 | * <!-- begin-user-doc --> |
612 | * <!-- end-user-doc --> |
613 | * @generated |
614 | */ |
615 | public EAttribute getIntegerIntervalRange_From() { |
616 | return (EAttribute)integerIntervalRangeEClass.getEStructuralFeatures().get(1); |
617 | } |
618 | |
619 | /** |
620 | * <!-- begin-user-doc --> |
621 | * <!-- end-user-doc --> |
622 | * @generated |
623 | */ |
624 | public EClass getContinousIntervalRange() { |
625 | return continousIntervalRangeEClass; |
626 | } |
627 | |
628 | /** |
629 | * <!-- begin-user-doc --> |
630 | * <!-- end-user-doc --> |
631 | * @generated |
632 | */ |
633 | public EAttribute getContinousIntervalRange_To() { |
634 | return (EAttribute)continousIntervalRangeEClass.getEStructuralFeatures().get(0); |
635 | } |
636 | |
637 | /** |
638 | * <!-- begin-user-doc --> |
639 | * <!-- end-user-doc --> |
640 | * @generated |
641 | */ |
642 | public EAttribute getContinousIntervalRange_From() { |
643 | return (EAttribute)continousIntervalRangeEClass.getEStructuralFeatures().get(1); |
644 | } |
645 | |
646 | /** |
647 | * <!-- begin-user-doc --> |
648 | * <!-- end-user-doc --> |
649 | * @generated |
650 | */ |
651 | public EEnum getAttributeTypes() { |
652 | return attributeTypesEEnum; |
653 | } |
654 | |
655 | /** |
656 | * <!-- begin-user-doc --> |
657 | * <!-- end-user-doc --> |
658 | * @generated |
659 | */ |
660 | public featuremodelFactory getfeaturemodelFactory() { |
661 | return (featuremodelFactory)getEFactoryInstance(); |
662 | } |
663 | |
664 | /** |
665 | * <!-- begin-user-doc --> |
666 | * <!-- end-user-doc --> |
667 | * @generated |
668 | */ |
669 | private boolean isCreated = false; |
670 | |
671 | /** |
672 | * Creates the meta-model objects for the package. This method is |
673 | * guarded to have no affect on any invocation but its first. |
674 | * <!-- begin-user-doc --> |
675 | * <!-- end-user-doc --> |
676 | * @generated |
677 | */ |
678 | public void createPackageContents() { |
679 | if (isCreated) return; |
680 | isCreated = true; |
681 | |
682 | // Create classes and their features |
683 | featureEClass = createEClass(FEATURE); |
684 | createEReference(featureEClass, FEATURE__ATTRIBUTES); |
685 | createEReference(featureEClass, FEATURE__CHILDRELATION); |
686 | createEReference(featureEClass, FEATURE__SIMPLE_MANDATORY); |
687 | createEReference(featureEClass, FEATURE__SIMPLE_OPTIONAL); |
688 | createEReference(featureEClass, FEATURE__FEATUREGROUP); |
689 | |
690 | namedElementEClass = createEClass(NAMED_ELEMENT); |
691 | createEAttribute(namedElementEClass, NAMED_ELEMENT__NAME); |
692 | |
693 | attributeEClass = createEClass(ATTRIBUTE); |
694 | createEReference(attributeEClass, ATTRIBUTE__RANGE); |
695 | |
696 | intervalRangeEClass = createEClass(INTERVAL_RANGE); |
697 | createEAttribute(intervalRangeEClass, INTERVAL_RANGE__LOWER_BOUND_INCLUDED); |
698 | createEAttribute(intervalRangeEClass, INTERVAL_RANGE__UPPER_BOUND_INCLUDED); |
699 | |
700 | childRelationEClass = createEClass(CHILD_RELATION); |
701 | |
702 | simpleEClass = createEClass(SIMPLE); |
703 | createEReference(simpleEClass, SIMPLE__OPTIONAL_CHILDREN); |
704 | createEReference(simpleEClass, SIMPLE__MANDATORY_CHILDREN); |
705 | |
706 | featureGroupEClass = createEClass(FEATURE_GROUP); |
707 | createEAttribute(featureGroupEClass, FEATURE_GROUP__MIN); |
708 | createEAttribute(featureGroupEClass, FEATURE_GROUP__MAX); |
709 | createEReference(featureGroupEClass, FEATURE_GROUP__CHILDREN); |
710 | |
711 | featureDiagramEClass = createEClass(FEATURE_DIAGRAM); |
712 | createEReference(featureDiagramEClass, FEATURE_DIAGRAM__ROOT_FEATURE); |
713 | createEReference(featureDiagramEClass, FEATURE_DIAGRAM__CONSTRAINTS); |
714 | createEReference(featureDiagramEClass, FEATURE_DIAGRAM__ANNOTATABLE_ELEMENT); |
715 | |
716 | constraintEClass = createEClass(CONSTRAINT); |
717 | createEReference(constraintEClass, CONSTRAINT__SOURCE); |
718 | createEReference(constraintEClass, CONSTRAINT__TARGET); |
719 | createEAttribute(constraintEClass, CONSTRAINT__DESCRIPTION); |
720 | |
721 | requiredConstraintEClass = createEClass(REQUIRED_CONSTRAINT); |
722 | |
723 | prohibitsConstraintEClass = createEClass(PROHIBITS_CONSTRAINT); |
724 | |
725 | integerIntervalRangeEClass = createEClass(INTEGER_INTERVAL_RANGE); |
726 | createEAttribute(integerIntervalRangeEClass, INTEGER_INTERVAL_RANGE__TO); |
727 | createEAttribute(integerIntervalRangeEClass, INTEGER_INTERVAL_RANGE__FROM); |
728 | |
729 | continousIntervalRangeEClass = createEClass(CONTINOUS_INTERVAL_RANGE); |
730 | createEAttribute(continousIntervalRangeEClass, CONTINOUS_INTERVAL_RANGE__TO); |
731 | createEAttribute(continousIntervalRangeEClass, CONTINOUS_INTERVAL_RANGE__FROM); |
732 | |
733 | integerAttributeEClass = createEClass(INTEGER_ATTRIBUTE); |
734 | createEAttribute(integerAttributeEClass, INTEGER_ATTRIBUTE__DEFAULT_VALUE); |
735 | |
736 | doubleAttributeEClass = createEClass(DOUBLE_ATTRIBUTE); |
737 | createEAttribute(doubleAttributeEClass, DOUBLE_ATTRIBUTE__DEFAULT_VALUE); |
738 | |
739 | stringAttributeEClass = createEClass(STRING_ATTRIBUTE); |
740 | createEAttribute(stringAttributeEClass, STRING_ATTRIBUTE__DEFAULT_VALUE); |
741 | |
742 | externalObjectAttributeEClass = createEClass(EXTERNAL_OBJECT_ATTRIBUTE); |
743 | |
744 | // Create enums |
745 | attributeTypesEEnum = createEEnum(ATTRIBUTE_TYPES); |
746 | } |
747 | |
748 | /** |
749 | * <!-- begin-user-doc --> |
750 | * <!-- end-user-doc --> |
751 | * @generated |
752 | */ |
753 | private boolean isInitialized = false; |
754 | |
755 | /** |
756 | * Complete the initialization of the package and its meta-model. This |
757 | * method is guarded to have no affect on any invocation but its first. |
758 | * <!-- begin-user-doc --> |
759 | * <!-- end-user-doc --> |
760 | * @generated |
761 | */ |
762 | public void initializePackageContents() { |
763 | if (isInitialized) return; |
764 | isInitialized = true; |
765 | |
766 | // Initialize package |
767 | setName(eNAME); |
768 | setNsPrefix(eNS_PREFIX); |
769 | setNsURI(eNS_URI); |
770 | |
771 | // Obtain other dependent packages |
772 | IdentifierPackage theIdentifierPackage = (IdentifierPackage)EPackage.Registry.INSTANCE.getEPackage(IdentifierPackage.eNS_URI); |
773 | EcorePackage theEcorePackage = (EcorePackage)EPackage.Registry.INSTANCE.getEPackage(EcorePackage.eNS_URI); |
774 | |
775 | // Create type parameters |
776 | |
777 | // Set bounds for type parameters |
778 | |
779 | // Add supertypes to classes |
780 | featureEClass.getESuperTypes().add(this.getNamedElement()); |
781 | namedElementEClass.getESuperTypes().add(theIdentifierPackage.getIdentifier()); |
782 | attributeEClass.getESuperTypes().add(this.getNamedElement()); |
783 | simpleEClass.getESuperTypes().add(this.getChildRelation()); |
784 | featureGroupEClass.getESuperTypes().add(this.getChildRelation()); |
785 | featureDiagramEClass.getESuperTypes().add(this.getNamedElement()); |
786 | constraintEClass.getESuperTypes().add(this.getNamedElement()); |
787 | requiredConstraintEClass.getESuperTypes().add(this.getConstraint()); |
788 | prohibitsConstraintEClass.getESuperTypes().add(this.getConstraint()); |
789 | integerIntervalRangeEClass.getESuperTypes().add(this.getIntervalRange()); |
790 | continousIntervalRangeEClass.getESuperTypes().add(this.getIntervalRange()); |
791 | integerAttributeEClass.getESuperTypes().add(this.getAttribute()); |
792 | doubleAttributeEClass.getESuperTypes().add(this.getAttribute()); |
793 | stringAttributeEClass.getESuperTypes().add(this.getAttribute()); |
794 | externalObjectAttributeEClass.getESuperTypes().add(this.getAttribute()); |
795 | |
796 | // Initialize classes and features; add operations and parameters |
797 | initEClass(featureEClass, Feature.class, "Feature", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
798 | initEReference(getFeature_Attributes(), this.getAttribute(), null, "attributes", null, 0, -1, Feature.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); |
799 | initEReference(getFeature_Childrelation(), this.getChildRelation(), null, "childrelation", null, 0, 1, Feature.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); |
800 | initEReference(getFeature_SimpleMandatory(), this.getSimple(), this.getSimple_MandatoryChildren(), "simpleMandatory", null, 0, 1, Feature.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); |
801 | initEReference(getFeature_SimpleOptional(), this.getSimple(), this.getSimple_OptionalChildren(), "simpleOptional", null, 0, 1, Feature.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); |
802 | initEReference(getFeature_Featuregroup(), this.getFeatureGroup(), this.getFeatureGroup_Children(), "featuregroup", null, 0, 1, Feature.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); |
803 | |
804 | EOperation op = addEOperation(featureEClass, ecorePackage.getEBoolean(), "EachAttributeNameDefinedJustOnce", 0, 1, IS_UNIQUE, IS_ORDERED); |
805 | addEParameter(op, ecorePackage.getEDiagnosticChain(), "diagnostics", 0, 1, IS_UNIQUE, IS_ORDERED); |
806 | EGenericType g1 = createEGenericType(ecorePackage.getEMap()); |
807 | EGenericType g2 = createEGenericType(ecorePackage.getEJavaObject()); |
808 | g1.getETypeArguments().add(g2); |
809 | g2 = createEGenericType(ecorePackage.getEJavaObject()); |
810 | g1.getETypeArguments().add(g2); |
811 | addEParameter(op, g1, "context", 0, 1, IS_UNIQUE, IS_ORDERED); |
812 | |
813 | initEClass(namedElementEClass, NamedElement.class, "NamedElement", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
814 | initEAttribute(getNamedElement_Name(), ecorePackage.getEString(), "name", null, 1, 1, NamedElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); |
815 | |
816 | initEClass(attributeEClass, Attribute.class, "Attribute", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
817 | initEReference(getAttribute_Range(), this.getIntervalRange(), null, "range", null, 0, 1, Attribute.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); |
818 | |
819 | initEClass(intervalRangeEClass, IntervalRange.class, "IntervalRange", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
820 | initEAttribute(getIntervalRange_LowerBoundIncluded(), ecorePackage.getEBoolean(), "lowerBoundIncluded", null, 1, 1, IntervalRange.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); |
821 | initEAttribute(getIntervalRange_UpperBoundIncluded(), ecorePackage.getEBoolean(), "upperBoundIncluded", null, 1, 1, IntervalRange.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); |
822 | |
823 | initEClass(childRelationEClass, ChildRelation.class, "ChildRelation", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
824 | |
825 | initEClass(simpleEClass, Simple.class, "Simple", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
826 | initEReference(getSimple_OptionalChildren(), this.getFeature(), this.getFeature_SimpleOptional(), "optionalChildren", null, 0, -1, Simple.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); |
827 | initEReference(getSimple_MandatoryChildren(), this.getFeature(), this.getFeature_SimpleMandatory(), "mandatoryChildren", null, 0, -1, Simple.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); |
828 | |
829 | op = addEOperation(simpleEClass, ecorePackage.getEBoolean(), "atLeastOneChild", 0, 1, IS_UNIQUE, IS_ORDERED); |
830 | addEParameter(op, ecorePackage.getEDiagnosticChain(), "diagnostics", 0, 1, IS_UNIQUE, IS_ORDERED); |
831 | g1 = createEGenericType(ecorePackage.getEMap()); |
832 | g2 = createEGenericType(ecorePackage.getEJavaObject()); |
833 | g1.getETypeArguments().add(g2); |
834 | g2 = createEGenericType(ecorePackage.getEJavaObject()); |
835 | g1.getETypeArguments().add(g2); |
836 | addEParameter(op, g1, "context", 0, 1, IS_UNIQUE, IS_ORDERED); |
837 | |
838 | initEClass(featureGroupEClass, FeatureGroup.class, "FeatureGroup", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
839 | initEAttribute(getFeatureGroup_Min(), ecorePackage.getEInt(), "min", "1", 1, 1, FeatureGroup.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); |
840 | initEAttribute(getFeatureGroup_Max(), ecorePackage.getEInt(), "max", "1", 1, 1, FeatureGroup.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); |
841 | initEReference(getFeatureGroup_Children(), this.getFeature(), this.getFeature_Featuregroup(), "children", null, 2, -1, FeatureGroup.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); |
842 | |
843 | op = addEOperation(featureGroupEClass, ecorePackage.getEBoolean(), "XORorORImpliesChildrenAreMandatory", 0, 1, IS_UNIQUE, IS_ORDERED); |
844 | addEParameter(op, ecorePackage.getEDiagnosticChain(), "diagnostics", 0, 1, IS_UNIQUE, IS_ORDERED); |
845 | g1 = createEGenericType(ecorePackage.getEMap()); |
846 | g2 = createEGenericType(ecorePackage.getEJavaObject()); |
847 | g1.getETypeArguments().add(g2); |
848 | g2 = createEGenericType(ecorePackage.getEJavaObject()); |
849 | g1.getETypeArguments().add(g2); |
850 | addEParameter(op, g1, "context", 0, 1, IS_UNIQUE, IS_ORDERED); |
851 | |
852 | op = addEOperation(featureGroupEClass, ecorePackage.getEBoolean(), "ALLImpliesCardinalitiesToBeMinusOne", 0, 1, IS_UNIQUE, IS_ORDERED); |
853 | addEParameter(op, ecorePackage.getEDiagnosticChain(), "diagnostics", 0, 1, IS_UNIQUE, IS_ORDERED); |
854 | g1 = createEGenericType(ecorePackage.getEMap()); |
855 | g2 = createEGenericType(ecorePackage.getEJavaObject()); |
856 | g1.getETypeArguments().add(g2); |
857 | g2 = createEGenericType(ecorePackage.getEJavaObject()); |
858 | g1.getETypeArguments().add(g2); |
859 | addEParameter(op, g1, "context", 0, 1, IS_UNIQUE, IS_ORDERED); |
860 | |
861 | op = addEOperation(featureGroupEClass, ecorePackage.getEBoolean(), "ORImpliesCardinalitiesMinToBeOneAndMaxToBeMinusOne", 0, 1, IS_UNIQUE, IS_ORDERED); |
862 | addEParameter(op, ecorePackage.getEDiagnosticChain(), "diagnostics", 0, 1, IS_UNIQUE, IS_ORDERED); |
863 | g1 = createEGenericType(ecorePackage.getEMap()); |
864 | g2 = createEGenericType(ecorePackage.getEJavaObject()); |
865 | g1.getETypeArguments().add(g2); |
866 | g2 = createEGenericType(ecorePackage.getEJavaObject()); |
867 | g1.getETypeArguments().add(g2); |
868 | addEParameter(op, g1, "context", 0, 1, IS_UNIQUE, IS_ORDERED); |
869 | |
870 | op = addEOperation(featureGroupEClass, ecorePackage.getEBoolean(), "XORImpliesCardinalitiesToBeOne", 0, 1, IS_UNIQUE, IS_ORDERED); |
871 | addEParameter(op, ecorePackage.getEDiagnosticChain(), "diagnostics", 0, 1, IS_UNIQUE, IS_ORDERED); |
872 | g1 = createEGenericType(ecorePackage.getEMap()); |
873 | g2 = createEGenericType(ecorePackage.getEJavaObject()); |
874 | g1.getETypeArguments().add(g2); |
875 | g2 = createEGenericType(ecorePackage.getEJavaObject()); |
876 | g1.getETypeArguments().add(g2); |
877 | addEParameter(op, g1, "context", 0, 1, IS_UNIQUE, IS_ORDERED); |
878 | |
879 | initEClass(featureDiagramEClass, FeatureDiagram.class, "FeatureDiagram", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
880 | initEReference(getFeatureDiagram_RootFeature(), this.getFeature(), null, "rootFeature", null, 1, 1, FeatureDiagram.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); |
881 | initEReference(getFeatureDiagram_Constraints(), this.getConstraint(), null, "constraints", null, 0, -1, FeatureDiagram.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); |
882 | initEReference(getFeatureDiagram_AnnotatableElement(), theEcorePackage.getEObject(), null, "annotatableElement", null, 0, -1, FeatureDiagram.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); |
883 | |
884 | initEClass(constraintEClass, Constraint.class, "Constraint", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
885 | initEReference(getConstraint_Source(), this.getFeature(), null, "source", null, 1, 1, Constraint.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); |
886 | initEReference(getConstraint_Target(), this.getFeature(), null, "target", null, 1, -1, Constraint.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); |
887 | initEAttribute(getConstraint_Description(), ecorePackage.getEString(), "description", null, 1, 1, Constraint.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); |
888 | |
889 | initEClass(requiredConstraintEClass, RequiredConstraint.class, "RequiredConstraint", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
890 | |
891 | initEClass(prohibitsConstraintEClass, ProhibitsConstraint.class, "ProhibitsConstraint", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
892 | |
893 | initEClass(integerIntervalRangeEClass, IntegerIntervalRange.class, "IntegerIntervalRange", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
894 | initEAttribute(getIntegerIntervalRange_To(), ecorePackage.getEInt(), "to", null, 1, 1, IntegerIntervalRange.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); |
895 | initEAttribute(getIntegerIntervalRange_From(), ecorePackage.getEInt(), "from", "0", 1, 1, IntegerIntervalRange.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); |
896 | |
897 | initEClass(continousIntervalRangeEClass, ContinousIntervalRange.class, "ContinousIntervalRange", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
898 | initEAttribute(getContinousIntervalRange_To(), ecorePackage.getEDouble(), "to", null, 1, 1, ContinousIntervalRange.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); |
899 | initEAttribute(getContinousIntervalRange_From(), ecorePackage.getEDouble(), "from", null, 1, 1, ContinousIntervalRange.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); |
900 | |
901 | initEClass(integerAttributeEClass, IntegerAttribute.class, "IntegerAttribute", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
902 | initEAttribute(getIntegerAttribute_DefaultValue(), ecorePackage.getEInt(), "defaultValue", null, 1, 1, IntegerAttribute.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); |
903 | |
904 | initEClass(doubleAttributeEClass, DoubleAttribute.class, "DoubleAttribute", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
905 | initEAttribute(getDoubleAttribute_DefaultValue(), ecorePackage.getEDouble(), "defaultValue", null, 1, 1, DoubleAttribute.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); |
906 | |
907 | initEClass(stringAttributeEClass, StringAttribute.class, "StringAttribute", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
908 | initEAttribute(getStringAttribute_DefaultValue(), ecorePackage.getEString(), "defaultValue", null, 1, 1, StringAttribute.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); |
909 | |
910 | initEClass(externalObjectAttributeEClass, ExternalObjectAttribute.class, "ExternalObjectAttribute", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
911 | |
912 | // Initialize enums and add enum literals |
913 | initEEnum(attributeTypesEEnum, AttributeTypes.class, "AttributeTypes"); |
914 | addEEnumLiteral(attributeTypesEEnum, AttributeTypes.INT); |
915 | addEEnumLiteral(attributeTypesEEnum, AttributeTypes.STRING); |
916 | addEEnumLiteral(attributeTypesEEnum, AttributeTypes.REAL); |
917 | |
918 | // Create resource |
919 | createResource(eNS_URI); |
920 | } |
921 | |
922 | } //featuremodelPackageImpl |