EMMA Coverage Report (generated Sun Feb 05 10:43:15 CET 2012)
[all classes][QVTRelation.impl]

COVERAGE SUMMARY FOR SOURCE FILE [QVTRelationPackageImpl.java]

nameclass, %method, %block, %line, %
QVTRelationPackageImpl.java0%   (0/1)0%   (0/37)0%   (0/1230)0%   (0/182)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class QVTRelationPackageImpl0%   (0/1)0%   (0/37)0%   (0/1230)0%   (0/182)
<static initializer> 0%   (0/1)0%   (0/3)0%   (0/2)
QVTRelationPackageImpl (): void 0%   (0/1)0%   (0/38)0%   (0/13)
createEmofAnnotations (): void 0%   (0/1)0%   (0/93)0%   (0/32)
createPackageContents (): void 0%   (0/1)0%   (0/158)0%   (0/33)
getDomainPattern (): EClass 0%   (0/1)0%   (0/3)0%   (0/1)
getDomainPattern_TemplateExpression (): EReference 0%   (0/1)0%   (0/7)0%   (0/1)
getKey (): EClass 0%   (0/1)0%   (0/3)0%   (0/1)
getKey_Identifies (): EReference 0%   (0/1)0%   (0/7)0%   (0/1)
getKey_OppositePart (): EReference 0%   (0/1)0%   (0/7)0%   (0/1)
getKey_Part (): EReference 0%   (0/1)0%   (0/7)0%   (0/1)
getKey_Transformation (): EReference 0%   (0/1)0%   (0/7)0%   (0/1)
getOppositePropertyCallExp (): EClass 0%   (0/1)0%   (0/3)0%   (0/1)
getQVTRelationFactory (): QVTRelationFactory 0%   (0/1)0%   (0/4)0%   (0/1)
getRelation (): EClass 0%   (0/1)0%   (0/3)0%   (0/1)
getRelationCallExp (): EClass 0%   (0/1)0%   (0/3)0%   (0/1)
getRelationCallExp_Argument (): EReference 0%   (0/1)0%   (0/7)0%   (0/1)
getRelationCallExp_ReferredRelation (): EReference 0%   (0/1)0%   (0/7)0%   (0/1)
getRelationDomain (): EClass 0%   (0/1)0%   (0/3)0%   (0/1)
getRelationDomainAssignment (): EClass 0%   (0/1)0%   (0/3)0%   (0/1)
getRelationDomainAssignment_ValueExp (): EReference 0%   (0/1)0%   (0/7)0%   (0/1)
getRelationDomainAssignment_Variable (): EReference 0%   (0/1)0%   (0/7)0%   (0/1)
getRelationDomain_DefaultAssignment (): EReference 0%   (0/1)0%   (0/7)0%   (0/1)
getRelationDomain_Pattern (): EReference 0%   (0/1)0%   (0/7)0%   (0/1)
getRelationDomain_RootVariable (): EReference 0%   (0/1)0%   (0/7)0%   (0/1)
getRelationImplementation (): EClass 0%   (0/1)0%   (0/3)0%   (0/1)
getRelationImplementation_Impl (): EReference 0%   (0/1)0%   (0/7)0%   (0/1)
getRelationImplementation_InDirectionOf (): EReference 0%   (0/1)0%   (0/7)0%   (0/1)
getRelationImplementation_Relation (): EReference 0%   (0/1)0%   (0/7)0%   (0/1)
getRelation_IsTopLevel (): EAttribute 0%   (0/1)0%   (0/7)0%   (0/1)
getRelation_OperationalImpl (): EReference 0%   (0/1)0%   (0/7)0%   (0/1)
getRelation_Variable (): EReference 0%   (0/1)0%   (0/7)0%   (0/1)
getRelation_When (): EReference 0%   (0/1)0%   (0/7)0%   (0/1)
getRelation_Where (): EReference 0%   (0/1)0%   (0/7)0%   (0/1)
getRelationalTransformation (): EClass 0%   (0/1)0%   (0/3)0%   (0/1)
getRelationalTransformation_OwnedKey (): EReference 0%   (0/1)0%   (0/7)0%   (0/1)
init (): QVTRelationPackage 0%   (0/1)0%   (0/100)0%   (0/20)
initializePackageContents (): void 0%   (0/1)0%   (0/660)0%   (0/51)

1/**
2 * <copyright>
3 * </copyright>
4 *
5 * $Id$
6 */
7package QVTRelation.impl;
8 
9import EMOF.EMOFPackage;
10 
11import EMOF.impl.EMOFPackageImpl;
12 
13import EssentialOCL.EssentialOCLPackage;
14 
15import EssentialOCL.impl.EssentialOCLPackageImpl;
16 
17import QVTBase.QVTBasePackage;
18 
19import QVTBase.impl.QVTBasePackageImpl;
20 
21import QVTRelation.DomainPattern;
22import QVTRelation.Key;
23import QVTRelation.OppositePropertyCallExp;
24import QVTRelation.QVTRelationFactory;
25import QVTRelation.QVTRelationPackage;
26import QVTRelation.Relation;
27import QVTRelation.RelationCallExp;
28import QVTRelation.RelationDomain;
29import QVTRelation.RelationDomainAssignment;
30import QVTRelation.RelationImplementation;
31import QVTRelation.RelationalTransformation;
32 
33import QVTTemplate.QVTTemplatePackage;
34 
35import QVTTemplate.impl.QVTTemplatePackageImpl;
36 
37import org.eclipse.emf.ecore.EAttribute;
38import org.eclipse.emf.ecore.EClass;
39import org.eclipse.emf.ecore.EPackage;
40import org.eclipse.emf.ecore.EReference;
41 
42import org.eclipse.emf.ecore.impl.EPackageImpl;
43 
44/**
45 * <!-- begin-user-doc -->
46 * An implementation of the model <b>Package</b>.
47 * <!-- end-user-doc -->
48 * @generated
49 */
50public class QVTRelationPackageImpl extends EPackageImpl implements QVTRelationPackage {
51        /**
52         * <!-- begin-user-doc -->
53         * <!-- end-user-doc -->
54         * @generated
55         */
56        private EClass domainPatternEClass = null;
57 
58        /**
59         * <!-- begin-user-doc -->
60         * <!-- end-user-doc -->
61         * @generated
62         */
63        private EClass keyEClass = null;
64 
65        /**
66         * <!-- begin-user-doc -->
67         * <!-- end-user-doc -->
68         * @generated
69         */
70        private EClass oppositePropertyCallExpEClass = null;
71 
72        /**
73         * <!-- begin-user-doc -->
74         * <!-- end-user-doc -->
75         * @generated
76         */
77        private EClass relationEClass = null;
78 
79        /**
80         * <!-- begin-user-doc -->
81         * <!-- end-user-doc -->
82         * @generated
83         */
84        private EClass relationCallExpEClass = null;
85 
86        /**
87         * <!-- begin-user-doc -->
88         * <!-- end-user-doc -->
89         * @generated
90         */
91        private EClass relationDomainEClass = null;
92 
93        /**
94         * <!-- begin-user-doc -->
95         * <!-- end-user-doc -->
96         * @generated
97         */
98        private EClass relationDomainAssignmentEClass = null;
99 
100        /**
101         * <!-- begin-user-doc -->
102         * <!-- end-user-doc -->
103         * @generated
104         */
105        private EClass relationImplementationEClass = null;
106 
107        /**
108         * <!-- begin-user-doc -->
109         * <!-- end-user-doc -->
110         * @generated
111         */
112        private EClass relationalTransformationEClass = null;
113 
114        /**
115         * Creates an instance of the model <b>Package</b>, registered with
116         * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package
117         * package URI value.
118         * <p>Note: the correct way to create the package is via the static
119         * factory method {@link #init init()}, which also performs
120         * initialization of the package, or returns the registered package,
121         * if one already exists.
122         * <!-- begin-user-doc -->
123         * <!-- end-user-doc -->
124         * @see org.eclipse.emf.ecore.EPackage.Registry
125         * @see QVTRelation.QVTRelationPackage#eNS_URI
126         * @see #init()
127         * @generated
128         */
129        private QVTRelationPackageImpl() {
130                super(eNS_URI, QVTRelationFactory.eINSTANCE);
131        }
132 
133        /**
134         * <!-- begin-user-doc -->
135         * <!-- end-user-doc -->
136         * @generated
137         */
138        private static boolean isInited = false;
139 
140        /**
141         * Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends.
142         * 
143         * <p>This method is used to initialize {@link QVTRelationPackage#eINSTANCE} when that field is accessed.
144         * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package.
145         * <!-- begin-user-doc -->
146         * <!-- end-user-doc -->
147         * @see #eNS_URI
148         * @see #createPackageContents()
149         * @see #initializePackageContents()
150         * @generated
151         */
152        public static QVTRelationPackage init() {
153                if (isInited) return (QVTRelationPackage)EPackage.Registry.INSTANCE.getEPackage(QVTRelationPackage.eNS_URI);
154 
155                // Obtain or create and register package
156                QVTRelationPackageImpl theQVTRelationPackage = (QVTRelationPackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof QVTRelationPackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new QVTRelationPackageImpl());
157 
158                isInited = true;
159 
160                // Obtain or create and register interdependencies
161                EMOFPackageImpl theEMOFPackage = (EMOFPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(EMOFPackage.eNS_URI) instanceof EMOFPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(EMOFPackage.eNS_URI) : EMOFPackage.eINSTANCE);
162                EssentialOCLPackageImpl theEssentialOCLPackage = (EssentialOCLPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(EssentialOCLPackage.eNS_URI) instanceof EssentialOCLPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(EssentialOCLPackage.eNS_URI) : EssentialOCLPackage.eINSTANCE);
163                QVTBasePackageImpl theQVTBasePackage = (QVTBasePackageImpl)(EPackage.Registry.INSTANCE.getEPackage(QVTBasePackage.eNS_URI) instanceof QVTBasePackageImpl ? EPackage.Registry.INSTANCE.getEPackage(QVTBasePackage.eNS_URI) : QVTBasePackage.eINSTANCE);
164                QVTTemplatePackageImpl theQVTTemplatePackage = (QVTTemplatePackageImpl)(EPackage.Registry.INSTANCE.getEPackage(QVTTemplatePackage.eNS_URI) instanceof QVTTemplatePackageImpl ? EPackage.Registry.INSTANCE.getEPackage(QVTTemplatePackage.eNS_URI) : QVTTemplatePackage.eINSTANCE);
165 
166                // Create package meta-data objects
167                theQVTRelationPackage.createPackageContents();
168                theEMOFPackage.createPackageContents();
169                theEssentialOCLPackage.createPackageContents();
170                theQVTBasePackage.createPackageContents();
171                theQVTTemplatePackage.createPackageContents();
172 
173                // Initialize created meta-data
174                theQVTRelationPackage.initializePackageContents();
175                theEMOFPackage.initializePackageContents();
176                theEssentialOCLPackage.initializePackageContents();
177                theQVTBasePackage.initializePackageContents();
178                theQVTTemplatePackage.initializePackageContents();
179 
180                // Mark meta-data to indicate it can't be changed
181                theQVTRelationPackage.freeze();
182 
183  
184                // Update the registry and return the package
185                EPackage.Registry.INSTANCE.put(QVTRelationPackage.eNS_URI, theQVTRelationPackage);
186                return theQVTRelationPackage;
187        }
188 
189        /**
190         * <!-- begin-user-doc -->
191         * <!-- end-user-doc -->
192         * @generated
193         */
194        public EClass getDomainPattern() {
195                return domainPatternEClass;
196        }
197 
198        /**
199         * <!-- begin-user-doc -->
200         * <!-- end-user-doc -->
201         * @generated
202         */
203        public EReference getDomainPattern_TemplateExpression() {
204                return (EReference)domainPatternEClass.getEStructuralFeatures().get(0);
205        }
206 
207        /**
208         * <!-- begin-user-doc -->
209         * <!-- end-user-doc -->
210         * @generated
211         */
212        public EClass getKey() {
213                return keyEClass;
214        }
215 
216        /**
217         * <!-- begin-user-doc -->
218         * <!-- end-user-doc -->
219         * @generated
220         */
221        public EReference getKey_Identifies() {
222                return (EReference)keyEClass.getEStructuralFeatures().get(0);
223        }
224 
225        /**
226         * <!-- begin-user-doc -->
227         * <!-- end-user-doc -->
228         * @generated
229         */
230        public EReference getKey_OppositePart() {
231                return (EReference)keyEClass.getEStructuralFeatures().get(1);
232        }
233 
234        /**
235         * <!-- begin-user-doc -->
236         * <!-- end-user-doc -->
237         * @generated
238         */
239        public EReference getKey_Part() {
240                return (EReference)keyEClass.getEStructuralFeatures().get(2);
241        }
242 
243        /**
244         * <!-- begin-user-doc -->
245         * <!-- end-user-doc -->
246         * @generated
247         */
248        public EReference getKey_Transformation() {
249                return (EReference)keyEClass.getEStructuralFeatures().get(3);
250        }
251 
252        /**
253         * <!-- begin-user-doc -->
254         * <!-- end-user-doc -->
255         * @generated
256         */
257        public EClass getOppositePropertyCallExp() {
258                return oppositePropertyCallExpEClass;
259        }
260 
261        /**
262         * <!-- begin-user-doc -->
263         * <!-- end-user-doc -->
264         * @generated
265         */
266        public EClass getRelation() {
267                return relationEClass;
268        }
269 
270        /**
271         * <!-- begin-user-doc -->
272         * <!-- end-user-doc -->
273         * @generated
274         */
275        public EAttribute getRelation_IsTopLevel() {
276                return (EAttribute)relationEClass.getEStructuralFeatures().get(0);
277        }
278 
279        /**
280         * <!-- begin-user-doc -->
281         * <!-- end-user-doc -->
282         * @generated
283         */
284        public EReference getRelation_OperationalImpl() {
285                return (EReference)relationEClass.getEStructuralFeatures().get(1);
286        }
287 
288        /**
289         * <!-- begin-user-doc -->
290         * <!-- end-user-doc -->
291         * @generated
292         */
293        public EReference getRelation_Variable() {
294                return (EReference)relationEClass.getEStructuralFeatures().get(2);
295        }
296 
297        /**
298         * <!-- begin-user-doc -->
299         * <!-- end-user-doc -->
300         * @generated
301         */
302        public EReference getRelation_When() {
303                return (EReference)relationEClass.getEStructuralFeatures().get(3);
304        }
305 
306        /**
307         * <!-- begin-user-doc -->
308         * <!-- end-user-doc -->
309         * @generated
310         */
311        public EReference getRelation_Where() {
312                return (EReference)relationEClass.getEStructuralFeatures().get(4);
313        }
314 
315        /**
316         * <!-- begin-user-doc -->
317         * <!-- end-user-doc -->
318         * @generated
319         */
320        public EClass getRelationCallExp() {
321                return relationCallExpEClass;
322        }
323 
324        /**
325         * <!-- begin-user-doc -->
326         * <!-- end-user-doc -->
327         * @generated
328         */
329        public EReference getRelationCallExp_Argument() {
330                return (EReference)relationCallExpEClass.getEStructuralFeatures().get(0);
331        }
332 
333        /**
334         * <!-- begin-user-doc -->
335         * <!-- end-user-doc -->
336         * @generated
337         */
338        public EReference getRelationCallExp_ReferredRelation() {
339                return (EReference)relationCallExpEClass.getEStructuralFeatures().get(1);
340        }
341 
342        /**
343         * <!-- begin-user-doc -->
344         * <!-- end-user-doc -->
345         * @generated
346         */
347        public EClass getRelationDomain() {
348                return relationDomainEClass;
349        }
350 
351        /**
352         * <!-- begin-user-doc -->
353         * <!-- end-user-doc -->
354         * @generated
355         */
356        public EReference getRelationDomain_DefaultAssignment() {
357                return (EReference)relationDomainEClass.getEStructuralFeatures().get(0);
358        }
359 
360        /**
361         * <!-- begin-user-doc -->
362         * <!-- end-user-doc -->
363         * @generated
364         */
365        public EReference getRelationDomain_Pattern() {
366                return (EReference)relationDomainEClass.getEStructuralFeatures().get(1);
367        }
368 
369        /**
370         * <!-- begin-user-doc -->
371         * <!-- end-user-doc -->
372         * @generated
373         */
374        public EReference getRelationDomain_RootVariable() {
375                return (EReference)relationDomainEClass.getEStructuralFeatures().get(2);
376        }
377 
378        /**
379         * <!-- begin-user-doc -->
380         * <!-- end-user-doc -->
381         * @generated
382         */
383        public EClass getRelationDomainAssignment() {
384                return relationDomainAssignmentEClass;
385        }
386 
387        /**
388         * <!-- begin-user-doc -->
389         * <!-- end-user-doc -->
390         * @generated
391         */
392        public EReference getRelationDomainAssignment_ValueExp() {
393                return (EReference)relationDomainAssignmentEClass.getEStructuralFeatures().get(0);
394        }
395 
396        /**
397         * <!-- begin-user-doc -->
398         * <!-- end-user-doc -->
399         * @generated
400         */
401        public EReference getRelationDomainAssignment_Variable() {
402                return (EReference)relationDomainAssignmentEClass.getEStructuralFeatures().get(1);
403        }
404 
405        /**
406         * <!-- begin-user-doc -->
407         * <!-- end-user-doc -->
408         * @generated
409         */
410        public EClass getRelationImplementation() {
411                return relationImplementationEClass;
412        }
413 
414        /**
415         * <!-- begin-user-doc -->
416         * <!-- end-user-doc -->
417         * @generated
418         */
419        public EReference getRelationImplementation_Impl() {
420                return (EReference)relationImplementationEClass.getEStructuralFeatures().get(0);
421        }
422 
423        /**
424         * <!-- begin-user-doc -->
425         * <!-- end-user-doc -->
426         * @generated
427         */
428        public EReference getRelationImplementation_InDirectionOf() {
429                return (EReference)relationImplementationEClass.getEStructuralFeatures().get(1);
430        }
431 
432        /**
433         * <!-- begin-user-doc -->
434         * <!-- end-user-doc -->
435         * @generated
436         */
437        public EReference getRelationImplementation_Relation() {
438                return (EReference)relationImplementationEClass.getEStructuralFeatures().get(2);
439        }
440 
441        /**
442         * <!-- begin-user-doc -->
443         * <!-- end-user-doc -->
444         * @generated
445         */
446        public EClass getRelationalTransformation() {
447                return relationalTransformationEClass;
448        }
449 
450        /**
451         * <!-- begin-user-doc -->
452         * <!-- end-user-doc -->
453         * @generated
454         */
455        public EReference getRelationalTransformation_OwnedKey() {
456                return (EReference)relationalTransformationEClass.getEStructuralFeatures().get(0);
457        }
458 
459        /**
460         * <!-- begin-user-doc -->
461         * <!-- end-user-doc -->
462         * @generated
463         */
464        public QVTRelationFactory getQVTRelationFactory() {
465                return (QVTRelationFactory)getEFactoryInstance();
466        }
467 
468        /**
469         * <!-- begin-user-doc -->
470         * <!-- end-user-doc -->
471         * @generated
472         */
473        private boolean isCreated = false;
474 
475        /**
476         * Creates the meta-model objects for the package.  This method is
477         * guarded to have no affect on any invocation but its first.
478         * <!-- begin-user-doc -->
479         * <!-- end-user-doc -->
480         * @generated
481         */
482        public void createPackageContents() {
483                if (isCreated) return;
484                isCreated = true;
485 
486                // Create classes and their features
487                domainPatternEClass = createEClass(DOMAIN_PATTERN);
488                createEReference(domainPatternEClass, DOMAIN_PATTERN__TEMPLATE_EXPRESSION);
489 
490                keyEClass = createEClass(KEY);
491                createEReference(keyEClass, KEY__IDENTIFIES);
492                createEReference(keyEClass, KEY__OPPOSITE_PART);
493                createEReference(keyEClass, KEY__PART);
494                createEReference(keyEClass, KEY__TRANSFORMATION);
495 
496                oppositePropertyCallExpEClass = createEClass(OPPOSITE_PROPERTY_CALL_EXP);
497 
498                relationEClass = createEClass(RELATION);
499                createEAttribute(relationEClass, RELATION__IS_TOP_LEVEL);
500                createEReference(relationEClass, RELATION__OPERATIONAL_IMPL);
501                createEReference(relationEClass, RELATION__VARIABLE);
502                createEReference(relationEClass, RELATION__WHEN);
503                createEReference(relationEClass, RELATION__WHERE);
504 
505                relationCallExpEClass = createEClass(RELATION_CALL_EXP);
506                createEReference(relationCallExpEClass, RELATION_CALL_EXP__ARGUMENT);
507                createEReference(relationCallExpEClass, RELATION_CALL_EXP__REFERRED_RELATION);
508 
509                relationDomainEClass = createEClass(RELATION_DOMAIN);
510                createEReference(relationDomainEClass, RELATION_DOMAIN__DEFAULT_ASSIGNMENT);
511                createEReference(relationDomainEClass, RELATION_DOMAIN__PATTERN);
512                createEReference(relationDomainEClass, RELATION_DOMAIN__ROOT_VARIABLE);
513 
514                relationDomainAssignmentEClass = createEClass(RELATION_DOMAIN_ASSIGNMENT);
515                createEReference(relationDomainAssignmentEClass, RELATION_DOMAIN_ASSIGNMENT__VALUE_EXP);
516                createEReference(relationDomainAssignmentEClass, RELATION_DOMAIN_ASSIGNMENT__VARIABLE);
517 
518                relationImplementationEClass = createEClass(RELATION_IMPLEMENTATION);
519                createEReference(relationImplementationEClass, RELATION_IMPLEMENTATION__IMPL);
520                createEReference(relationImplementationEClass, RELATION_IMPLEMENTATION__IN_DIRECTION_OF);
521                createEReference(relationImplementationEClass, RELATION_IMPLEMENTATION__RELATION);
522 
523                relationalTransformationEClass = createEClass(RELATIONAL_TRANSFORMATION);
524                createEReference(relationalTransformationEClass, RELATIONAL_TRANSFORMATION__OWNED_KEY);
525        }
526 
527        /**
528         * <!-- begin-user-doc -->
529         * <!-- end-user-doc -->
530         * @generated
531         */
532        private boolean isInitialized = false;
533 
534        /**
535         * Complete the initialization of the package and its meta-model.  This
536         * method is guarded to have no affect on any invocation but its first.
537         * <!-- begin-user-doc -->
538         * <!-- end-user-doc -->
539         * @generated
540         */
541        public void initializePackageContents() {
542                if (isInitialized) return;
543                isInitialized = true;
544 
545                // Initialize package
546                setName(eNAME);
547                setNsPrefix(eNS_PREFIX);
548                setNsURI(eNS_URI);
549 
550                // Obtain other dependent packages
551                QVTBasePackage theQVTBasePackage = (QVTBasePackage)EPackage.Registry.INSTANCE.getEPackage(QVTBasePackage.eNS_URI);
552                QVTTemplatePackage theQVTTemplatePackage = (QVTTemplatePackage)EPackage.Registry.INSTANCE.getEPackage(QVTTemplatePackage.eNS_URI);
553                EMOFPackage theEMOFPackage = (EMOFPackage)EPackage.Registry.INSTANCE.getEPackage(EMOFPackage.eNS_URI);
554                EssentialOCLPackage theEssentialOCLPackage = (EssentialOCLPackage)EPackage.Registry.INSTANCE.getEPackage(EssentialOCLPackage.eNS_URI);
555 
556                // Create type parameters
557 
558                // Set bounds for type parameters
559 
560                // Add supertypes to classes
561                domainPatternEClass.getESuperTypes().add(theQVTBasePackage.getPattern());
562                keyEClass.getESuperTypes().add(theEMOFPackage.getElement());
563                oppositePropertyCallExpEClass.getESuperTypes().add(theEssentialOCLPackage.getPropertyCallExp());
564                relationEClass.getESuperTypes().add(theQVTBasePackage.getRule());
565                relationCallExpEClass.getESuperTypes().add(theEssentialOCLPackage.getOclExpression());
566                relationDomainEClass.getESuperTypes().add(theQVTBasePackage.getDomain());
567                relationDomainAssignmentEClass.getESuperTypes().add(theEMOFPackage.getElement());
568                relationImplementationEClass.getESuperTypes().add(theEMOFPackage.getElement());
569                relationalTransformationEClass.getESuperTypes().add(theQVTBasePackage.getTransformation());
570 
571                // Initialize classes and features; add operations and parameters
572                initEClass(domainPatternEClass, DomainPattern.class, "DomainPattern", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
573                initEReference(getDomainPattern_TemplateExpression(), theQVTTemplatePackage.getTemplateExp(), null, "templateExpression", null, 0, 1, DomainPattern.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
574 
575                initEClass(keyEClass, Key.class, "Key", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
576                initEReference(getKey_Identifies(), theEMOFPackage.getClass_(), null, "identifies", null, 1, 1, Key.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
577                initEReference(getKey_OppositePart(), theEMOFPackage.getProperty(), null, "oppositePart", null, 0, -1, Key.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
578                initEReference(getKey_Part(), theEMOFPackage.getProperty(), null, "part", null, 0, -1, Key.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
579                initEReference(getKey_Transformation(), this.getRelationalTransformation(), this.getRelationalTransformation_OwnedKey(), "transformation", null, 0, 1, Key.class, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
580 
581                initEClass(oppositePropertyCallExpEClass, OppositePropertyCallExp.class, "OppositePropertyCallExp", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
582 
583                initEClass(relationEClass, Relation.class, "Relation", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
584                initEAttribute(getRelation_IsTopLevel(), theEMOFPackage.getBoolean(), "isTopLevel", null, 0, 1, Relation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
585                initEReference(getRelation_OperationalImpl(), this.getRelationImplementation(), this.getRelationImplementation_Relation(), "operationalImpl", null, 0, -1, Relation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
586                initEReference(getRelation_Variable(), theEssentialOCLPackage.getVariable(), null, "variable", null, 0, -1, Relation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
587                initEReference(getRelation_When(), theQVTBasePackage.getPattern(), null, "when", null, 0, 1, Relation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
588                initEReference(getRelation_Where(), theQVTBasePackage.getPattern(), null, "where", null, 0, 1, Relation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
589 
590                initEClass(relationCallExpEClass, RelationCallExp.class, "RelationCallExp", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
591                initEReference(getRelationCallExp_Argument(), theEssentialOCLPackage.getOclExpression(), null, "argument", null, 2, -1, RelationCallExp.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
592                initEReference(getRelationCallExp_ReferredRelation(), this.getRelation(), null, "referredRelation", null, 1, 1, RelationCallExp.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
593 
594                initEClass(relationDomainEClass, RelationDomain.class, "RelationDomain", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
595                initEReference(getRelationDomain_DefaultAssignment(), this.getRelationDomainAssignment(), null, "defaultAssignment", null, 0, -1, RelationDomain.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
596                initEReference(getRelationDomain_Pattern(), this.getDomainPattern(), null, "pattern", null, 0, 1, RelationDomain.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
597                initEReference(getRelationDomain_RootVariable(), theEssentialOCLPackage.getVariable(), null, "rootVariable", null, 1, 1, RelationDomain.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
598 
599                initEClass(relationDomainAssignmentEClass, RelationDomainAssignment.class, "RelationDomainAssignment", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
600                initEReference(getRelationDomainAssignment_ValueExp(), theEssentialOCLPackage.getOclExpression(), null, "valueExp", null, 1, 1, RelationDomainAssignment.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
601                initEReference(getRelationDomainAssignment_Variable(), theEssentialOCLPackage.getVariable(), null, "variable", null, 1, 1, RelationDomainAssignment.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
602 
603                initEClass(relationImplementationEClass, RelationImplementation.class, "RelationImplementation", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
604                initEReference(getRelationImplementation_Impl(), theEMOFPackage.getOperation(), null, "impl", null, 1, 1, RelationImplementation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
605                initEReference(getRelationImplementation_InDirectionOf(), theQVTBasePackage.getTypedModel(), null, "inDirectionOf", null, 1, 1, RelationImplementation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
606                initEReference(getRelationImplementation_Relation(), this.getRelation(), this.getRelation_OperationalImpl(), "relation", null, 0, 1, RelationImplementation.class, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
607 
608                initEClass(relationalTransformationEClass, RelationalTransformation.class, "RelationalTransformation", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
609                initEReference(getRelationalTransformation_OwnedKey(), this.getKey(), this.getKey_Transformation(), "ownedKey", null, 0, -1, RelationalTransformation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
610 
611                // Create resource
612                createResource(eNS_URI);
613 
614                // Create annotations
615                // http://schema.omg.org/spec/MOF/2.0/emof.xml#Property.oppositeRoleName
616                createEmofAnnotations();
617        }
618 
619        /**
620         * Initializes the annotations for <b>http://schema.omg.org/spec/MOF/2.0/emof.xml#Property.oppositeRoleName</b>.
621         * <!-- begin-user-doc -->
622         * <!-- end-user-doc -->
623         * @generated
624         */
625        protected void createEmofAnnotations() {
626                String source = "http://schema.omg.org/spec/MOF/2.0/emof.xml#Property.oppositeRoleName";                
627                addAnnotation
628                  (getKey_OppositePart(), 
629                   source, 
630                   new String[] {
631                         "body", "oppositeKey"
632                   });                
633                addAnnotation
634                  (getRelation_When(), 
635                   source, 
636                   new String[] {
637                         "body", "whenOwner"
638                   });                
639                addAnnotation
640                  (getRelation_Where(), 
641                   source, 
642                   new String[] {
643                         "body", "whereOwner"
644                   });                
645                addAnnotation
646                  (getRelationDomain_DefaultAssignment(), 
647                   source, 
648                   new String[] {
649                         "body", "owner"
650                   });                
651                addAnnotation
652                  (getRelationDomainAssignment_ValueExp(), 
653                   source, 
654                   new String[] {
655                         "body", "domainAssignment"
656                   });                
657                addAnnotation
658                  (getRelationDomainAssignment_Variable(), 
659                   source, 
660                   new String[] {
661                         "body", "domainAssignment"
662                   });
663        }
664 
665} //QVTRelationPackageImpl

[all classes][QVTRelation.impl]
EMMA 2.0.9414 (unsupported private build) (C) Vladimir Roubtsov