root/org.axdt.axdoc.model/src/org/axdt/axdoc/model/impl/AXDocPackageImpl.java @ 85b4650e22de85722d0e932da31e0104e8a88327

Revision 85b4650e22de85722d0e932da31e0104e8a88327, 24.6 KB (checked in by mb0 <mb0@…>, 15 months ago)

axentry has now a transient reference property to the axnode
axnode can be created from any concrete axindexnode
index0r initializes preferences on singleton creation
axdoc has now a preference with table editor

  • Property mode set to 100644
Line 
1/**
2 * <copyright>
3 * </copyright>
4 *
5 * $Id$
6 */
7package org.axdt.axdoc.model.impl;
8
9import org.axdt.axdoc.model.AXDocFactory;
10import org.axdt.axdoc.model.AXDocPackage;
11import org.axdt.axdoc.model.AXEntry;
12import org.axdt.axdoc.model.AXEntryType;
13import org.axdt.axdoc.model.AXIndex;
14import org.axdt.axdoc.model.AXIndexNode;
15import org.axdt.axdoc.model.AXLevel;
16import org.axdt.axdoc.model.AXMember;
17import org.axdt.axdoc.model.AXMemberHolder;
18import org.axdt.axdoc.model.AXNode;
19import org.axdt.axdoc.model.AXPackage;
20import org.axdt.axdoc.model.AXRoot;
21import org.axdt.axdoc.model.AXRootType;
22import org.axdt.axdoc.model.AXType;
23import org.eclipse.emf.ecore.EAttribute;
24import org.eclipse.emf.ecore.EClass;
25import org.eclipse.emf.ecore.EEnum;
26import org.eclipse.emf.ecore.EOperation;
27import org.eclipse.emf.ecore.EPackage;
28import org.eclipse.emf.ecore.EReference;
29import org.eclipse.emf.ecore.impl.EPackageImpl;
30
31/**
32 * <!-- begin-user-doc -->
33 * An implementation of the model <b>Package</b>.
34 * <!-- end-user-doc -->
35 * @generated
36 */
37public class AXDocPackageImpl extends EPackageImpl implements AXDocPackage {
38        /**
39         * <!-- begin-user-doc -->
40         * <!-- end-user-doc -->
41         * @generated
42         */
43        private EClass axNodeEClass = null;
44
45        /**
46         * <!-- begin-user-doc -->
47         * <!-- end-user-doc -->
48         * @generated
49         */
50        private EClass axPackageEClass = null;
51
52        /**
53         * <!-- begin-user-doc -->
54         * <!-- end-user-doc -->
55         * @generated
56         */
57        private EClass axTypeEClass = null;
58
59        /**
60         * <!-- begin-user-doc -->
61         * <!-- end-user-doc -->
62         * @generated
63         */
64        private EClass axMemberEClass = null;
65
66        /**
67         * <!-- begin-user-doc -->
68         * <!-- end-user-doc -->
69         * @generated
70         */
71        private EClass axIndexEClass = null;
72
73        /**
74         * <!-- begin-user-doc -->
75         * <!-- end-user-doc -->
76         * @generated
77         */
78        private EClass axRootEClass = null;
79
80        /**
81         * <!-- begin-user-doc -->
82         * <!-- end-user-doc -->
83         * @generated
84         */
85        private EClass axEntryEClass = null;
86
87        /**
88         * <!-- begin-user-doc -->
89         * <!-- end-user-doc -->
90         * @generated
91         */
92        private EClass axIndexNodeEClass = null;
93
94        /**
95         * <!-- begin-user-doc -->
96         * <!-- end-user-doc -->
97         * @generated
98         */
99        private EClass axMemberHolderEClass = null;
100
101        /**
102         * <!-- begin-user-doc -->
103         * <!-- end-user-doc -->
104         * @generated
105         */
106        private EEnum axLevelEEnum = null;
107
108        /**
109         * <!-- begin-user-doc -->
110         * <!-- end-user-doc -->
111         * @generated
112         */
113        private EEnum axRootTypeEEnum = null;
114
115        /**
116         * <!-- begin-user-doc -->
117         * <!-- end-user-doc -->
118         * @generated
119         */
120        private EEnum axEntryTypeEEnum = null;
121
122        /**
123         * Creates an instance of the model <b>Package</b>, registered with
124         * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package
125         * package URI value.
126         * <p>Note: the correct way to create the package is via the static
127         * factory method {@link #init init()}, which also performs
128         * initialization of the package, or returns the registered package,
129         * if one already exists.
130         * <!-- begin-user-doc -->
131         * <!-- end-user-doc -->
132         * @see org.eclipse.emf.ecore.EPackage.Registry
133         * @see org.axdt.axdoc.model.AXDocPackage#eNS_URI
134         * @see #init()
135         * @generated
136         */
137        private AXDocPackageImpl() {
138                super(eNS_URI, AXDocFactory.eINSTANCE);
139        }
140
141        /**
142         * <!-- begin-user-doc -->
143         * <!-- end-user-doc -->
144         * @generated
145         */
146        private static boolean isInited = false;
147
148        /**
149         * Creates, registers, and initializes the <b>Package</b> for this
150         * model, and for any others upon which it depends.  Simple
151         * dependencies are satisfied by calling this method on all
152         * dependent packages before doing anything else.  This method drives
153         * initialization for interdependent packages directly, in parallel
154         * with this package, itself.
155         * <p>Of this package and its interdependencies, all packages which
156         * have not yet been registered by their URI values are first created
157         * and registered.  The packages are then initialized in two steps:
158         * meta-model objects for all of the packages are created before any
159         * are initialized, since one package's meta-model objects may refer to
160         * those of another.
161         * <p>Invocation of this method will not affect any packages that have
162         * already been initialized.
163         * <!-- begin-user-doc -->
164         * <!-- end-user-doc -->
165         * @see #eNS_URI
166         * @see #createPackageContents()
167         * @see #initializePackageContents()
168         * @generated
169         */
170        public static AXDocPackage init() {
171                if (isInited)
172                        return (AXDocPackage) EPackage.Registry.INSTANCE
173                                        .getEPackage(AXDocPackage.eNS_URI);
174
175                // Obtain or create and register package
176                AXDocPackageImpl theAXDocPackage = (AXDocPackageImpl) (EPackage.Registry.INSTANCE
177                                .getEPackage(eNS_URI) instanceof AXDocPackageImpl ? EPackage.Registry.INSTANCE
178                                .getEPackage(eNS_URI)
179                                : new AXDocPackageImpl());
180
181                isInited = true;
182
183                // Create package meta-data objects
184                theAXDocPackage.createPackageContents();
185
186                // Initialize created meta-data
187                theAXDocPackage.initializePackageContents();
188
189                // Mark meta-data to indicate it can't be changed
190                theAXDocPackage.freeze();
191
192                return theAXDocPackage;
193        }
194
195        /**
196         * <!-- begin-user-doc -->
197         * <!-- end-user-doc -->
198         * @generated
199         */
200        public EClass getAXNode() {
201                return axNodeEClass;
202        }
203
204        /**
205         * <!-- begin-user-doc -->
206         * <!-- end-user-doc -->
207         * @generated
208         */
209        public EAttribute getAXNode_Name() {
210                return (EAttribute) axNodeEClass.getEStructuralFeatures().get(0);
211        }
212
213        /**
214         * <!-- begin-user-doc -->
215         * <!-- end-user-doc -->
216         * @generated
217         */
218        public EAttribute getAXNode_Asdoc() {
219                return (EAttribute) axNodeEClass.getEStructuralFeatures().get(1);
220        }
221
222        /**
223         * <!-- begin-user-doc -->
224         * <!-- end-user-doc -->
225         * @generated
226         */
227        public EClass getAXPackage() {
228                return axPackageEClass;
229        }
230
231        /**
232         * <!-- begin-user-doc -->
233         * <!-- end-user-doc -->
234         * @generated
235         */
236        public EReference getAXPackage_Types() {
237                return (EReference) axPackageEClass.getEStructuralFeatures().get(0);
238        }
239
240        /**
241         * <!-- begin-user-doc -->
242         * <!-- end-user-doc -->
243         * @generated
244         */
245        public EClass getAXType() {
246                return axTypeEClass;
247        }
248
249        /**
250         * <!-- begin-user-doc -->
251         * <!-- end-user-doc -->
252         * @generated
253         */
254        public EAttribute getAXType_Interface() {
255                return (EAttribute) axTypeEClass.getEStructuralFeatures().get(0);
256        }
257
258        /**
259         * <!-- begin-user-doc -->
260         * <!-- end-user-doc -->
261         * @generated
262         */
263        public EClass getAXMember() {
264                return axMemberEClass;
265        }
266
267        /**
268         * <!-- begin-user-doc -->
269         * <!-- end-user-doc -->
270         * @generated
271         */
272        public EAttribute getAXMember_Var() {
273                return (EAttribute) axMemberEClass.getEStructuralFeatures().get(0);
274        }
275
276        /**
277         * <!-- begin-user-doc -->
278         * <!-- end-user-doc -->
279         * @generated
280         */
281        public EAttribute getAXMember_Function() {
282                return (EAttribute) axMemberEClass.getEStructuralFeatures().get(1);
283        }
284
285        /**
286         * <!-- begin-user-doc -->
287         * <!-- end-user-doc -->
288         * @generated
289         */
290        public EAttribute getAXMember_Const() {
291                return (EAttribute) axMemberEClass.getEStructuralFeatures().get(2);
292        }
293
294        /**
295         * <!-- begin-user-doc -->
296         * <!-- end-user-doc -->
297         * @generated
298         */
299        public EAttribute getAXMember_Static() {
300                return (EAttribute) axMemberEClass.getEStructuralFeatures().get(3);
301        }
302
303        /**
304         * <!-- begin-user-doc -->
305         * <!-- end-user-doc -->
306         * @generated
307         */
308        public EAttribute getAXMember_Protected() {
309                return (EAttribute) axMemberEClass.getEStructuralFeatures().get(4);
310        }
311
312        /**
313         * <!-- begin-user-doc -->
314         * <!-- end-user-doc -->
315         * @generated
316         */
317        public EClass getAXIndex() {
318                return axIndexEClass;
319        }
320
321        /**
322         * <!-- begin-user-doc -->
323         * <!-- end-user-doc -->
324         * @generated
325         */
326        public EReference getAXIndex_Indexes() {
327                return (EReference) axIndexEClass.getEStructuralFeatures().get(2);
328        }
329
330        /**
331         * <!-- begin-user-doc -->
332         * <!-- end-user-doc -->
333         * @generated
334         */
335        public EReference getAXIndex_Parent() {
336                return (EReference) axIndexEClass.getEStructuralFeatures().get(3);
337        }
338
339        /**
340         * <!-- begin-user-doc -->
341         * <!-- end-user-doc -->
342         * @generated
343         */
344        public EReference getAXIndex_Reference() {
345                return (EReference) axIndexEClass.getEStructuralFeatures().get(0);
346        }
347
348        /**
349         * <!-- begin-user-doc -->
350         * <!-- end-user-doc -->
351         * @generated
352         */
353        public EAttribute getAXIndex_Level() {
354                return (EAttribute) axIndexEClass.getEStructuralFeatures().get(1);
355        }
356
357        /**
358         * <!-- begin-user-doc -->
359         * <!-- end-user-doc -->
360         * @generated
361         */
362        public EClass getAXRoot() {
363                return axRootEClass;
364        }
365
366        /**
367         * <!-- begin-user-doc -->
368         * <!-- end-user-doc -->
369         * @generated
370         */
371        public EAttribute getAXRoot_Url() {
372                return (EAttribute) axRootEClass.getEStructuralFeatures().get(0);
373        }
374
375        /**
376         * <!-- begin-user-doc -->
377         * <!-- end-user-doc -->
378         * @generated
379         */
380        public EAttribute getAXRoot_RootType() {
381                return (EAttribute) axRootEClass.getEStructuralFeatures().get(1);
382        }
383
384        /**
385         * <!-- begin-user-doc -->
386         * <!-- end-user-doc -->
387         * @generated
388         */
389        public EAttribute getAXRoot_RootLevel() {
390                return (EAttribute) axRootEClass.getEStructuralFeatures().get(2);
391        }
392
393        /**
394         * <!-- begin-user-doc -->
395         * <!-- end-user-doc -->
396         * @generated
397         */
398        public EClass getAXEntry() {
399                return axEntryEClass;
400        }
401
402        /**
403         * <!-- begin-user-doc -->
404         * <!-- end-user-doc -->
405         * @generated
406         */
407        public EAttribute getAXEntry_Type() {
408                return (EAttribute) axEntryEClass.getEStructuralFeatures().get(0);
409        }
410
411        /**
412         * <!-- begin-user-doc -->
413         * <!-- end-user-doc -->
414         * @generated
415         */
416        public EReference getAXEntry_Parent() {
417                return (EReference) axEntryEClass.getEStructuralFeatures().get(1);
418        }
419
420        /**
421         * <!-- begin-user-doc -->
422         * <!-- end-user-doc -->
423         * @generated
424         */
425        public EReference getAXEntry_Reference() {
426                return (EReference) axEntryEClass.getEStructuralFeatures().get(2);
427        }
428
429        /**
430         * <!-- begin-user-doc -->
431         * <!-- end-user-doc -->
432         * @generated
433         */
434        public EClass getAXIndexNode() {
435                return axIndexNodeEClass;
436        }
437
438        /**
439         * <!-- begin-user-doc -->
440         * <!-- end-user-doc -->
441         * @generated
442         */
443        public EAttribute getAXIndexNode_Name() {
444                return (EAttribute) axIndexNodeEClass.getEStructuralFeatures().get(0);
445        }
446
447        /**
448         * <!-- begin-user-doc -->
449         * <!-- end-user-doc -->
450         * @generated
451         */
452        public EReference getAXIndexNode_Entries() {
453                return (EReference) axIndexNodeEClass.getEStructuralFeatures().get(1);
454        }
455
456        /**
457         * <!-- begin-user-doc -->
458         * <!-- end-user-doc -->
459         * @generated
460         */
461        public EAttribute getAXIndexNode_Id() {
462                return (EAttribute) axIndexNodeEClass.getEStructuralFeatures().get(2);
463        }
464
465        /**
466         * <!-- begin-user-doc -->
467         * <!-- end-user-doc -->
468         * @generated
469         */
470        public EReference getAXIndexNode_BasicParent() {
471                return (EReference) axIndexNodeEClass.getEStructuralFeatures().get(3);
472        }
473
474        /**
475         * <!-- begin-user-doc -->
476         * <!-- end-user-doc -->
477         * @generated
478         */
479        public EClass getAXMemberHolder() {
480                return axMemberHolderEClass;
481        }
482
483        /**
484         * <!-- begin-user-doc -->
485         * <!-- end-user-doc -->
486         * @generated
487         */
488        public EReference getAXMemberHolder_Members() {
489                return (EReference) axMemberHolderEClass.getEStructuralFeatures()
490                                .get(0);
491        }
492
493        /**
494         * <!-- begin-user-doc -->
495         * <!-- end-user-doc -->
496         * @generated
497         */
498        public EEnum getAXLevel() {
499                return axLevelEEnum;
500        }
501
502        /**
503         * <!-- begin-user-doc -->
504         * <!-- end-user-doc -->
505         * @generated
506         */
507        public EEnum getAXRootType() {
508                return axRootTypeEEnum;
509        }
510
511        /**
512         * <!-- begin-user-doc -->
513         * <!-- end-user-doc -->
514         * @generated
515         */
516        public EEnum getAXEntryType() {
517                return axEntryTypeEEnum;
518        }
519
520        /**
521         * <!-- begin-user-doc -->
522         * <!-- end-user-doc -->
523         * @generated
524         */
525        public AXDocFactory getAXDocFactory() {
526                return (AXDocFactory) getEFactoryInstance();
527        }
528
529        /**
530         * <!-- begin-user-doc -->
531         * <!-- end-user-doc -->
532         * @generated
533         */
534        private boolean isCreated = false;
535
536        /**
537         * Creates the meta-model objects for the package.  This method is
538         * guarded to have no affect on any invocation but its first.
539         * <!-- begin-user-doc -->
540         * <!-- end-user-doc -->
541         * @generated
542         */
543        public void createPackageContents() {
544                if (isCreated)
545                        return;
546                isCreated = true;
547
548                // Create classes and their features
549                axNodeEClass = createEClass(AX_NODE);
550                createEAttribute(axNodeEClass, AX_NODE__NAME);
551                createEAttribute(axNodeEClass, AX_NODE__ASDOC);
552
553                axMemberHolderEClass = createEClass(AX_MEMBER_HOLDER);
554                createEReference(axMemberHolderEClass, AX_MEMBER_HOLDER__MEMBERS);
555
556                axPackageEClass = createEClass(AX_PACKAGE);
557                createEReference(axPackageEClass, AX_PACKAGE__TYPES);
558
559                axTypeEClass = createEClass(AX_TYPE);
560                createEAttribute(axTypeEClass, AX_TYPE__INTERFACE);
561
562                axMemberEClass = createEClass(AX_MEMBER);
563                createEAttribute(axMemberEClass, AX_MEMBER__VAR);
564                createEAttribute(axMemberEClass, AX_MEMBER__FUNCTION);
565                createEAttribute(axMemberEClass, AX_MEMBER__CONST);
566                createEAttribute(axMemberEClass, AX_MEMBER__STATIC);
567                createEAttribute(axMemberEClass, AX_MEMBER__PROTECTED);
568
569                axIndexEClass = createEClass(AX_INDEX);
570                createEReference(axIndexEClass, AX_INDEX__REFERENCE);
571                createEAttribute(axIndexEClass, AX_INDEX__LEVEL);
572                createEReference(axIndexEClass, AX_INDEX__INDEXES);
573                createEReference(axIndexEClass, AX_INDEX__PARENT);
574
575                axRootEClass = createEClass(AX_ROOT);
576                createEAttribute(axRootEClass, AX_ROOT__URL);
577                createEAttribute(axRootEClass, AX_ROOT__ROOT_TYPE);
578                createEAttribute(axRootEClass, AX_ROOT__ROOT_LEVEL);
579
580                axEntryEClass = createEClass(AX_ENTRY);
581                createEAttribute(axEntryEClass, AX_ENTRY__TYPE);
582                createEReference(axEntryEClass, AX_ENTRY__PARENT);
583                createEReference(axEntryEClass, AX_ENTRY__REFERENCE);
584
585                axIndexNodeEClass = createEClass(AX_INDEX_NODE);
586                createEAttribute(axIndexNodeEClass, AX_INDEX_NODE__NAME);
587                createEReference(axIndexNodeEClass, AX_INDEX_NODE__ENTRIES);
588                createEAttribute(axIndexNodeEClass, AX_INDEX_NODE__ID);
589                createEReference(axIndexNodeEClass, AX_INDEX_NODE__BASIC_PARENT);
590
591                // Create enums
592                axLevelEEnum = createEEnum(AX_LEVEL);
593                axRootTypeEEnum = createEEnum(AX_ROOT_TYPE);
594                axEntryTypeEEnum = createEEnum(AX_ENTRY_TYPE);
595        }
596
597        /**
598         * <!-- begin-user-doc -->
599         * <!-- end-user-doc -->
600         * @generated
601         */
602        private boolean isInitialized = false;
603
604        /**
605         * Complete the initialization of the package and its meta-model.  This
606         * method is guarded to have no affect on any invocation but its first.
607         * <!-- begin-user-doc -->
608         * <!-- end-user-doc -->
609         * @generated
610         */
611        public void initializePackageContents() {
612                if (isInitialized)
613                        return;
614                isInitialized = true;
615
616                // Initialize package
617                setName(eNAME);
618                setNsPrefix(eNS_PREFIX);
619                setNsURI(eNS_URI);
620
621                // Create type parameters
622
623                // Set bounds for type parameters
624
625                // Add supertypes to classes
626                axMemberHolderEClass.getESuperTypes().add(this.getAXNode());
627                axPackageEClass.getESuperTypes().add(this.getAXMemberHolder());
628                axTypeEClass.getESuperTypes().add(this.getAXMemberHolder());
629                axMemberEClass.getESuperTypes().add(this.getAXNode());
630                axIndexEClass.getESuperTypes().add(this.getAXIndexNode());
631                axRootEClass.getESuperTypes().add(this.getAXIndex());
632                axEntryEClass.getESuperTypes().add(this.getAXIndexNode());
633
634                // Initialize classes and features; add operations and parameters
635                initEClass(axNodeEClass, AXNode.class, "AXNode", IS_ABSTRACT,
636                                !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
637                initEAttribute(getAXNode_Name(), ecorePackage.getEString(), "name",
638                                null, 1, 1, AXNode.class, !IS_TRANSIENT, !IS_VOLATILE,
639                                IS_CHANGEABLE, !IS_UNSETTABLE, IS_ID, IS_UNIQUE, !IS_DERIVED,
640                                IS_ORDERED);
641                initEAttribute(getAXNode_Asdoc(), ecorePackage.getEString(), "asdoc",
642                                null, 0, -1, AXNode.class, !IS_TRANSIENT, !IS_VOLATILE,
643                                IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED,
644                                !IS_ORDERED);
645
646                initEClass(axMemberHolderEClass, AXMemberHolder.class,
647                                "AXMemberHolder", IS_ABSTRACT, IS_INTERFACE,
648                                IS_GENERATED_INSTANCE_CLASS);
649                initEReference(getAXMemberHolder_Members(), this.getAXMember(), null,
650                                "members", null, 0, -1, AXMemberHolder.class, !IS_TRANSIENT,
651                                !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES,
652                                !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
653                getAXMemberHolder_Members().getEKeys().add(this.getAXNode_Name());
654                getAXMemberHolder_Members().getEKeys().add(this.getAXMember_Function());
655
656                initEClass(axPackageEClass, AXPackage.class, "AXPackage", !IS_ABSTRACT,
657                                !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
658                initEReference(getAXPackage_Types(), this.getAXType(), null, "types",
659                                null, 0, -1, AXPackage.class, !IS_TRANSIENT, !IS_VOLATILE,
660                                IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES,
661                                !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
662                getAXPackage_Types().getEKeys().add(this.getAXNode_Name());
663
664                initEClass(axTypeEClass, AXType.class, "AXType", !IS_ABSTRACT,
665                                !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
666                initEAttribute(getAXType_Interface(), ecorePackage.getEBoolean(),
667                                "interface", null, 0, 1, AXType.class, !IS_TRANSIENT,
668                                !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE,
669                                !IS_DERIVED, IS_ORDERED);
670
671                initEClass(axMemberEClass, AXMember.class, "AXMember", !IS_ABSTRACT,
672                                !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
673                initEAttribute(getAXMember_Var(), ecorePackage.getEBoolean(), "var",
674                                "true", 0, 1, AXMember.class, !IS_TRANSIENT, !IS_VOLATILE,
675                                IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED,
676                                IS_ORDERED);
677                initEAttribute(getAXMember_Function(), ecorePackage.getEBoolean(),
678                                "function", null, 0, 1, AXMember.class, !IS_TRANSIENT,
679                                !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE,
680                                !IS_DERIVED, IS_ORDERED);
681                initEAttribute(getAXMember_Const(), ecorePackage.getEBoolean(),
682                                "const", null, 0, 1, AXMember.class, !IS_TRANSIENT,
683                                !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE,
684                                !IS_DERIVED, IS_ORDERED);
685                initEAttribute(getAXMember_Static(), ecorePackage.getEBoolean(),
686                                "static", null, 0, 1, AXMember.class, !IS_TRANSIENT,
687                                !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE,
688                                !IS_DERIVED, IS_ORDERED);
689                initEAttribute(getAXMember_Protected(), ecorePackage.getEBoolean(),
690                                "protected", null, 0, 1, AXMember.class, !IS_TRANSIENT,
691                                !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE,
692                                !IS_DERIVED, IS_ORDERED);
693
694                initEClass(axIndexEClass, AXIndex.class, "AXIndex", !IS_ABSTRACT,
695                                !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
696                initEReference(getAXIndex_Reference(), this.getAXPackage(), null,
697                                "reference", null, 0, 1, AXIndex.class, !IS_TRANSIENT,
698                                !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES,
699                                !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
700                initEAttribute(getAXIndex_Level(), this.getAXLevel(), "level", null, 0,
701                                1, AXIndex.class, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE,
702                                !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
703                initEReference(getAXIndex_Indexes(), this.getAXIndex(), this
704                                .getAXIndex_Parent(), "indexes", null, 0, -1, AXIndex.class,
705                                !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE,
706                                !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED,
707                                IS_ORDERED);
708                getAXIndex_Indexes().getEKeys().add(this.getAXIndexNode_Id());
709                initEReference(getAXIndex_Parent(), this.getAXIndex(), this
710                                .getAXIndex_Indexes(), "parent", null, 0, 1, AXIndex.class,
711                                IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE,
712                                !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED,
713                                IS_ORDERED);
714
715                EOperation op = addEOperation(axIndexEClass, this.getAXIndex(),
716                                "localIndex", 0, 1, IS_UNIQUE, IS_ORDERED);
717                addEParameter(op, ecorePackage.getEString(), "part", 0, 1, IS_UNIQUE,
718                                IS_ORDERED);
719
720                op = addEOperation(axIndexEClass, this.getAXIndex(), "createIndex", 0,
721                                1, IS_UNIQUE, IS_ORDERED);
722                addEParameter(op, ecorePackage.getEString(), "part", 0, 1, IS_UNIQUE,
723                                IS_ORDERED);
724
725                addEOperation(axIndexEClass, this.getAXPackage(),
726                                "getOrCreateReference", 0, 1, IS_UNIQUE, IS_ORDERED);
727
728                initEClass(axRootEClass, AXRoot.class, "AXRoot", !IS_ABSTRACT,
729                                !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
730                initEAttribute(getAXRoot_Url(), ecorePackage.getEString(), "url", null,
731                                0, 1, AXRoot.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE,
732                                !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
733                initEAttribute(getAXRoot_RootType(), this.getAXRootType(), "rootType",
734                                null, 0, 1, AXRoot.class, !IS_TRANSIENT, !IS_VOLATILE,
735                                IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED,
736                                IS_ORDERED);
737                initEAttribute(getAXRoot_RootLevel(), this.getAXLevel(), "rootLevel",
738                                null, 0, 1, AXRoot.class, IS_TRANSIENT, !IS_VOLATILE,
739                                IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED,
740                                IS_ORDERED);
741
742                op = addEOperation(axRootEClass, this.getAXIndex(),
743                                "createPackageIndex", 0, 1, IS_UNIQUE, IS_ORDERED);
744                addEParameter(op, ecorePackage.getEString(), "id", 0, 1, IS_UNIQUE,
745                                IS_ORDERED);
746
747                op = addEOperation(axRootEClass, this.getAXIndex(), "getPackageIndex",
748                                0, 1, IS_UNIQUE, IS_ORDERED);
749                addEParameter(op, ecorePackage.getEString(), "id", 0, 1, IS_UNIQUE,
750                                IS_ORDERED);
751
752                initEClass(axEntryEClass, AXEntry.class, "AXEntry", !IS_ABSTRACT,
753                                !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
754                initEAttribute(getAXEntry_Type(), this.getAXEntryType(), "type", null,
755                                0, 1, AXEntry.class, !IS_TRANSIENT, !IS_VOLATILE,
756                                IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED,
757                                IS_ORDERED);
758                initEReference(getAXEntry_Parent(), this.getAXIndexNode(), this
759                                .getAXIndexNode_Entries(), "parent", null, 0, 1, AXEntry.class,
760                                IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE,
761                                !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED,
762                                IS_ORDERED);
763                initEReference(getAXEntry_Reference(), this.getAXNode(), null,
764                                "reference", null, 0, 1, AXEntry.class, IS_TRANSIENT,
765                                !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES,
766                                !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
767
768                initEClass(axIndexNodeEClass, AXIndexNode.class, "AXIndexNode",
769                                IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
770                initEAttribute(getAXIndexNode_Name(), ecorePackage.getEString(),
771                                "name", null, 1, 1, AXIndexNode.class, !IS_TRANSIENT,
772                                !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE,
773                                !IS_DERIVED, IS_ORDERED);
774                initEReference(getAXIndexNode_Entries(), this.getAXEntry(), this
775                                .getAXEntry_Parent(), "entries", null, 0, -1,
776                                AXIndexNode.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE,
777                                IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE,
778                                !IS_DERIVED, IS_ORDERED);
779                getAXIndexNode_Entries().getEKeys().add(this.getAXIndexNode_Id());
780                initEAttribute(getAXIndexNode_Id(), ecorePackage.getEString(), "id",
781                                null, 0, 1, AXIndexNode.class, IS_TRANSIENT, !IS_VOLATILE,
782                                !IS_CHANGEABLE, !IS_UNSETTABLE, IS_ID, IS_UNIQUE, IS_DERIVED,
783                                IS_ORDERED);
784                initEReference(getAXIndexNode_BasicParent(), this.getAXIndexNode(),
785                                null, "basicParent", null, 0, 1, AXIndexNode.class,
786                                IS_TRANSIENT, IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE,
787                                IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED,
788                                IS_ORDERED);
789
790                addEOperation(axIndexNodeEClass, this.getAXRoot(), "getRoot", 0, 1,
791                                IS_UNIQUE, IS_ORDERED);
792
793                addEOperation(axIndexNodeEClass, ecorePackage.getEString(), "fullUrl",
794                                0, 1, IS_UNIQUE, IS_ORDERED);
795
796                op = addEOperation(axIndexNodeEClass, this.getAXEntry(), "localEntry",
797                                0, -1, IS_UNIQUE, IS_ORDERED);
798                addEParameter(op, ecorePackage.getEString(), "part", 0, 1, IS_UNIQUE,
799                                IS_ORDERED);
800
801                op = addEOperation(axIndexNodeEClass, this.getAXEntry(), "localEntry",
802                                0, 1, IS_UNIQUE, IS_ORDERED);
803                addEParameter(op, ecorePackage.getEString(), "part", 0, 1, IS_UNIQUE,
804                                IS_ORDERED);
805                addEParameter(op, ecorePackage.getEBoolean(), "member", 0, 1,
806                                IS_UNIQUE, IS_ORDERED);
807
808                op = addEOperation(axIndexNodeEClass, this.getAXEntry(), "createEntry",
809                                0, 1, IS_UNIQUE, IS_ORDERED);
810                addEParameter(op, ecorePackage.getEString(), "part", 0, 1, IS_UNIQUE,
811                                IS_ORDERED);
812                addEParameter(op, this.getAXEntryType(), "type", 0, 1, IS_UNIQUE,
813                                IS_ORDERED);
814
815                addEOperation(axIndexNodeEClass, this.getAXNode(),
816                                "getOrCreateReference", 0, 1, IS_UNIQUE, IS_ORDERED);
817
818                // Initialize enums and add enum literals
819                initEEnum(axLevelEEnum, AXLevel.class, "AXLevel");
820                addEEnumLiteral(axLevelEEnum, AXLevel.EMPTY);
821                addEEnumLiteral(axLevelEEnum, AXLevel.PACKAGE);
822                addEEnumLiteral(axLevelEEnum, AXLevel.TYPE);
823                addEEnumLiteral(axLevelEEnum, AXLevel.MEMBER);
824
825                initEEnum(axRootTypeEEnum, AXRootType.class, "AXRootType");
826                addEEnumLiteral(axRootTypeEEnum, AXRootType.NONE);
827                addEEnumLiteral(axRootTypeEEnum, AXRootType.ASDOC);
828                addEEnumLiteral(axRootTypeEEnum, AXRootType.SOURCE);
829
830                initEEnum(axEntryTypeEEnum, AXEntryType.class, "AXEntryType");
831                addEEnumLiteral(axEntryTypeEEnum, AXEntryType.NONE);
832                addEEnumLiteral(axEntryTypeEEnum, AXEntryType.CLASS);
833                addEEnumLiteral(axEntryTypeEEnum, AXEntryType.INTERFACE);
834                addEEnumLiteral(axEntryTypeEEnum, AXEntryType.CONSTRUCTOR);
835                addEEnumLiteral(axEntryTypeEEnum, AXEntryType.METHOD);
836                addEEnumLiteral(axEntryTypeEEnum, AXEntryType.PROPERTY);
837                addEEnumLiteral(axEntryTypeEEnum, AXEntryType.EVENT);
838
839                // Create resource
840                createResource(eNS_URI);
841        }
842
843} //AXDocPackageImpl
Note: See TracBrowser for help on using the browser.