View Javadoc

1   /**
2    * <copyright>
3    * </copyright>
4    *
5    * $Id$
6    */
7   package org.mod4j.dsl.service.mm.ServiceDsl.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.EPackage;
13  import org.eclipse.emf.ecore.EReference;
14  
15  import org.eclipse.emf.ecore.impl.EPackageImpl;
16  
17  import org.mod4j.dsl.service.mm.ServiceDsl.AssociationMethod;
18  import org.mod4j.dsl.service.mm.ServiceDsl.CollectionType;
19  import org.mod4j.dsl.service.mm.ServiceDsl.CrudService;
20  import org.mod4j.dsl.service.mm.ServiceDsl.CustomMethod;
21  import org.mod4j.dsl.service.mm.ServiceDsl.DtoReference;
22  import org.mod4j.dsl.service.mm.ServiceDsl.MethodType;
23  import org.mod4j.dsl.service.mm.ServiceDsl.ModelElement;
24  import org.mod4j.dsl.service.mm.ServiceDsl.Parameter;
25  import org.mod4j.dsl.service.mm.ServiceDsl.ServiceDslFactory;
26  import org.mod4j.dsl.service.mm.ServiceDsl.ServiceDslPackage;
27  import org.mod4j.dsl.service.mm.ServiceDsl.ServiceMethod;
28  import org.mod4j.dsl.service.mm.ServiceDsl.ServiceModel;
29  import org.mod4j.dsl.service.mm.ServiceDsl.SpecialMethod;
30  
31  /**
32   * <!-- begin-user-doc -->
33   * An implementation of the model <b>Package</b>.
34   * <!-- end-user-doc -->
35   * @generated
36   */
37  public class ServiceDslPackageImpl extends EPackageImpl implements ServiceDslPackage {
38      /**
39       * <!-- begin-user-doc -->
40       * <!-- end-user-doc -->
41       * @generated
42       */
43      private EClass serviceModelEClass = null;
44  
45      /**
46       * <!-- begin-user-doc -->
47       * <!-- end-user-doc -->
48       * @generated
49       */
50      private EClass modelElementEClass = null;
51  
52      /**
53       * <!-- begin-user-doc -->
54       * <!-- end-user-doc -->
55       * @generated
56       */
57      private EClass dtoReferenceEClass = null;
58  
59      /**
60       * <!-- begin-user-doc -->
61       * <!-- end-user-doc -->
62       * @generated
63       */
64      private EClass customMethodEClass = null;
65  
66      /**
67       * <!-- begin-user-doc -->
68       * <!-- end-user-doc -->
69       * @generated
70       */
71      private EClass crudServiceEClass = null;
72  
73      /**
74       * <!-- begin-user-doc -->
75       * <!-- end-user-doc -->
76       * @generated
77       */
78      private EClass specialMethodEClass = null;
79  
80      /**
81       * <!-- begin-user-doc -->
82       * <!-- end-user-doc -->
83       * @generated
84       */
85      private EClass serviceMethodEClass = null;
86  
87      /**
88       * <!-- begin-user-doc -->
89       * <!-- end-user-doc -->
90       * @generated
91       */
92      private EClass parameterEClass = null;
93  
94      /**
95       * <!-- begin-user-doc -->
96       * <!-- end-user-doc -->
97       * @generated
98       */
99      private EClass associationMethodEClass = null;
100 
101     /**
102      * <!-- begin-user-doc -->
103      * <!-- end-user-doc -->
104      * @generated
105      */
106     private EEnum methodTypeEEnum = null;
107 
108     /**
109      * <!-- begin-user-doc -->
110      * <!-- end-user-doc -->
111      * @generated
112      */
113     private EEnum collectionTypeEEnum = null;
114 
115     /**
116      * Creates an instance of the model <b>Package</b>, registered with
117      * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package
118      * package URI value.
119      * <p>Note: the correct way to create the package is via the static
120      * factory method {@link #init init()}, which also performs
121      * initialization of the package, or returns the registered package,
122      * if one already exists.
123      * <!-- begin-user-doc -->
124      * <!-- end-user-doc -->
125      * @see org.eclipse.emf.ecore.EPackage.Registry
126      * @see org.mod4j.dsl.service.mm.ServiceDsl.ServiceDslPackage#eNS_URI
127      * @see #init()
128      * @generated
129      */
130     private ServiceDslPackageImpl() {
131         super(eNS_URI, ServiceDslFactory.eINSTANCE);
132     }
133 
134     /**
135      * <!-- begin-user-doc -->
136      * <!-- end-user-doc -->
137      * @generated
138      */
139     private static boolean isInited = false;
140 
141     /**
142      * Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends.
143      * 
144      * <p>This method is used to initialize {@link ServiceDslPackage#eINSTANCE} when that field is accessed.
145      * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package.
146      * <!-- begin-user-doc -->
147      * <!-- end-user-doc -->
148      * @see #eNS_URI
149      * @see #createPackageContents()
150      * @see #initializePackageContents()
151      * @generated
152      */
153     public static ServiceDslPackage init() {
154         if (isInited) return (ServiceDslPackage)EPackage.Registry.INSTANCE.getEPackage(ServiceDslPackage.eNS_URI);
155 
156         // Obtain or create and register package
157         ServiceDslPackageImpl theServiceDslPackage = (ServiceDslPackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof ServiceDslPackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new ServiceDslPackageImpl());
158 
159         isInited = true;
160 
161         // Create package meta-data objects
162         theServiceDslPackage.createPackageContents();
163 
164         // Initialize created meta-data
165         theServiceDslPackage.initializePackageContents();
166 
167         // Mark meta-data to indicate it can't be changed
168         theServiceDslPackage.freeze();
169 
170   
171         // Update the registry and return the package
172         EPackage.Registry.INSTANCE.put(ServiceDslPackage.eNS_URI, theServiceDslPackage);
173         return theServiceDslPackage;
174     }
175 
176     /**
177      * <!-- begin-user-doc -->
178      * <!-- end-user-doc -->
179      * @generated
180      */
181     public EClass getServiceModel() {
182         return serviceModelEClass;
183     }
184 
185     /**
186      * <!-- begin-user-doc -->
187      * <!-- end-user-doc -->
188      * @generated
189      */
190     public EReference getServiceModel_Methods() {
191         return (EReference)serviceModelEClass.getEStructuralFeatures().get(0);
192     }
193 
194     /**
195      * <!-- begin-user-doc -->
196      * <!-- end-user-doc -->
197      * @generated
198      */
199     public EReference getServiceModel_DtoReferences() {
200         return (EReference)serviceModelEClass.getEStructuralFeatures().get(1);
201     }
202 
203     /**
204      * <!-- begin-user-doc -->
205      * <!-- end-user-doc -->
206      * @generated
207      */
208     public EReference getServiceModel_CrudServices() {
209         return (EReference)serviceModelEClass.getEStructuralFeatures().get(2);
210     }
211 
212     /**
213      * <!-- begin-user-doc -->
214      * <!-- end-user-doc -->
215      * @generated
216      */
217     public EClass getModelElement() {
218         return modelElementEClass;
219     }
220 
221     /**
222      * <!-- begin-user-doc -->
223      * <!-- end-user-doc -->
224      * @generated
225      */
226     public EAttribute getModelElement_Name() {
227         return (EAttribute)modelElementEClass.getEStructuralFeatures().get(0);
228     }
229 
230     /**
231      * <!-- begin-user-doc -->
232      * <!-- end-user-doc -->
233      * @generated
234      */
235     public EAttribute getModelElement_Description() {
236         return (EAttribute)modelElementEClass.getEStructuralFeatures().get(1);
237     }
238 
239     /**
240      * <!-- begin-user-doc -->
241      * <!-- end-user-doc -->
242      * @generated
243      */
244     public EClass getDtoReference() {
245         return dtoReferenceEClass;
246     }
247 
248     /**
249      * <!-- begin-user-doc -->
250      * <!-- end-user-doc -->
251      * @generated
252      */
253     public EAttribute getDtoReference_Modelname() {
254         return (EAttribute)dtoReferenceEClass.getEStructuralFeatures().get(0);
255     }
256 
257     /**
258      * <!-- begin-user-doc -->
259      * <!-- end-user-doc -->
260      * @generated
261      */
262     public EReference getDtoReference_Model() {
263         return (EReference)dtoReferenceEClass.getEStructuralFeatures().get(1);
264     }
265 
266     /**
267      * <!-- begin-user-doc -->
268      * <!-- end-user-doc -->
269      * @generated
270      */
271     public EClass getCustomMethod() {
272         return customMethodEClass;
273     }
274 
275     /**
276      * <!-- begin-user-doc -->
277      * <!-- end-user-doc -->
278      * @generated
279      */
280     public EReference getCustomMethod_OutParameter() {
281         return (EReference)customMethodEClass.getEStructuralFeatures().get(0);
282     }
283 
284     /**
285      * <!-- begin-user-doc -->
286      * <!-- end-user-doc -->
287      * @generated
288      */
289     public EReference getCustomMethod_InParameters() {
290         return (EReference)customMethodEClass.getEStructuralFeatures().get(1);
291     }
292 
293     /**
294      * <!-- begin-user-doc -->
295      * <!-- end-user-doc -->
296      * @generated
297      */
298     public EClass getCrudService() {
299         return crudServiceEClass;
300     }
301 
302     /**
303      * <!-- begin-user-doc -->
304      * <!-- end-user-doc -->
305      * @generated
306      */
307     public EReference getCrudService_Dto() {
308         return (EReference)crudServiceEClass.getEStructuralFeatures().get(0);
309     }
310 
311     /**
312      * <!-- begin-user-doc -->
313      * <!-- end-user-doc -->
314      * @generated
315      */
316     public EReference getCrudService_Model() {
317         return (EReference)crudServiceEClass.getEStructuralFeatures().get(1);
318     }
319 
320     /**
321      * <!-- begin-user-doc -->
322      * <!-- end-user-doc -->
323      * @generated
324      */
325     public EClass getSpecialMethod() {
326         return specialMethodEClass;
327     }
328 
329     /**
330      * <!-- begin-user-doc -->
331      * <!-- end-user-doc -->
332      * @generated
333      */
334     public EReference getSpecialMethod_Dto() {
335         return (EReference)specialMethodEClass.getEStructuralFeatures().get(0);
336     }
337 
338     /**
339      * <!-- begin-user-doc -->
340      * <!-- end-user-doc -->
341      * @generated
342      */
343     public EClass getServiceMethod() {
344         return serviceMethodEClass;
345     }
346 
347     /**
348      * <!-- begin-user-doc -->
349      * <!-- end-user-doc -->
350      * @generated
351      */
352     public EAttribute getServiceMethod_Type() {
353         return (EAttribute)serviceMethodEClass.getEStructuralFeatures().get(0);
354     }
355 
356     /**
357      * <!-- begin-user-doc -->
358      * <!-- end-user-doc -->
359      * @generated
360      */
361     public EReference getServiceMethod_Model() {
362         return (EReference)serviceMethodEClass.getEStructuralFeatures().get(1);
363     }
364 
365     /**
366      * <!-- begin-user-doc -->
367      * <!-- end-user-doc -->
368      * @generated
369      */
370     public EClass getParameter() {
371         return parameterEClass;
372     }
373 
374     /**
375      * <!-- begin-user-doc -->
376      * <!-- end-user-doc -->
377      * @generated
378      */
379     public EReference getParameter_Type() {
380         return (EReference)parameterEClass.getEStructuralFeatures().get(0);
381     }
382 
383     /**
384      * <!-- begin-user-doc -->
385      * <!-- end-user-doc -->
386      * @generated
387      */
388     public EReference getParameter_Method() {
389         return (EReference)parameterEClass.getEStructuralFeatures().get(1);
390     }
391 
392     /**
393      * <!-- begin-user-doc -->
394      * <!-- end-user-doc -->
395      * @generated
396      */
397     public EAttribute getParameter_Collection() {
398         return (EAttribute)parameterEClass.getEStructuralFeatures().get(2);
399     }
400 
401     /**
402      * <!-- begin-user-doc -->
403      * <!-- end-user-doc -->
404      * @generated
405      */
406     public EClass getAssociationMethod() {
407         return associationMethodEClass;
408     }
409 
410     /**
411      * <!-- begin-user-doc -->
412      * <!-- end-user-doc -->
413      * @generated
414      */
415     public EReference getAssociationMethod_Main() {
416         return (EReference)associationMethodEClass.getEStructuralFeatures().get(0);
417     }
418 
419     /**
420      * <!-- begin-user-doc -->
421      * <!-- end-user-doc -->
422      * @generated
423      */
424     public EReference getAssociationMethod_Part() {
425         return (EReference)associationMethodEClass.getEStructuralFeatures().get(1);
426     }
427 
428     /**
429      * <!-- begin-user-doc -->
430      * <!-- end-user-doc -->
431      * @generated
432      */
433     public EAttribute getAssociationMethod_Rolename() {
434         return (EAttribute)associationMethodEClass.getEStructuralFeatures().get(2);
435     }
436 
437     /**
438      * <!-- begin-user-doc -->
439      * <!-- end-user-doc -->
440      * @generated
441      */
442     public EEnum getMethodType() {
443         return methodTypeEEnum;
444     }
445 
446     /**
447      * <!-- begin-user-doc -->
448      * <!-- end-user-doc -->
449      * @generated
450      */
451     public EEnum getCollectionType() {
452         return collectionTypeEEnum;
453     }
454 
455     /**
456      * <!-- begin-user-doc -->
457      * <!-- end-user-doc -->
458      * @generated
459      */
460     public ServiceDslFactory getServiceDslFactory() {
461         return (ServiceDslFactory)getEFactoryInstance();
462     }
463 
464     /**
465      * <!-- begin-user-doc -->
466      * <!-- end-user-doc -->
467      * @generated
468      */
469     private boolean isCreated = false;
470 
471     /**
472      * Creates the meta-model objects for the package.  This method is
473      * guarded to have no affect on any invocation but its first.
474      * <!-- begin-user-doc -->
475      * <!-- end-user-doc -->
476      * @generated
477      */
478     public void createPackageContents() {
479         if (isCreated) return;
480         isCreated = true;
481 
482         // Create classes and their features
483         serviceModelEClass = createEClass(SERVICE_MODEL);
484         createEReference(serviceModelEClass, SERVICE_MODEL__METHODS);
485         createEReference(serviceModelEClass, SERVICE_MODEL__DTO_REFERENCES);
486         createEReference(serviceModelEClass, SERVICE_MODEL__CRUD_SERVICES);
487 
488         modelElementEClass = createEClass(MODEL_ELEMENT);
489         createEAttribute(modelElementEClass, MODEL_ELEMENT__NAME);
490         createEAttribute(modelElementEClass, MODEL_ELEMENT__DESCRIPTION);
491 
492         dtoReferenceEClass = createEClass(DTO_REFERENCE);
493         createEAttribute(dtoReferenceEClass, DTO_REFERENCE__MODELNAME);
494         createEReference(dtoReferenceEClass, DTO_REFERENCE__MODEL);
495 
496         customMethodEClass = createEClass(CUSTOM_METHOD);
497         createEReference(customMethodEClass, CUSTOM_METHOD__OUT_PARAMETER);
498         createEReference(customMethodEClass, CUSTOM_METHOD__IN_PARAMETERS);
499 
500         crudServiceEClass = createEClass(CRUD_SERVICE);
501         createEReference(crudServiceEClass, CRUD_SERVICE__DTO);
502         createEReference(crudServiceEClass, CRUD_SERVICE__MODEL);
503 
504         specialMethodEClass = createEClass(SPECIAL_METHOD);
505         createEReference(specialMethodEClass, SPECIAL_METHOD__DTO);
506 
507         serviceMethodEClass = createEClass(SERVICE_METHOD);
508         createEAttribute(serviceMethodEClass, SERVICE_METHOD__TYPE);
509         createEReference(serviceMethodEClass, SERVICE_METHOD__MODEL);
510 
511         parameterEClass = createEClass(PARAMETER);
512         createEReference(parameterEClass, PARAMETER__TYPE);
513         createEReference(parameterEClass, PARAMETER__METHOD);
514         createEAttribute(parameterEClass, PARAMETER__COLLECTION);
515 
516         associationMethodEClass = createEClass(ASSOCIATION_METHOD);
517         createEReference(associationMethodEClass, ASSOCIATION_METHOD__MAIN);
518         createEReference(associationMethodEClass, ASSOCIATION_METHOD__PART);
519         createEAttribute(associationMethodEClass, ASSOCIATION_METHOD__ROLENAME);
520 
521         // Create enums
522         methodTypeEEnum = createEEnum(METHOD_TYPE);
523         collectionTypeEEnum = createEEnum(COLLECTION_TYPE);
524     }
525 
526     /**
527      * <!-- begin-user-doc -->
528      * <!-- end-user-doc -->
529      * @generated
530      */
531     private boolean isInitialized = false;
532 
533     /**
534      * Complete the initialization of the package and its meta-model.  This
535      * method is guarded to have no affect on any invocation but its first.
536      * <!-- begin-user-doc -->
537      * <!-- end-user-doc -->
538      * @generated
539      */
540     public void initializePackageContents() {
541         if (isInitialized) return;
542         isInitialized = true;
543 
544         // Initialize package
545         setName(eNAME);
546         setNsPrefix(eNS_PREFIX);
547         setNsURI(eNS_URI);
548 
549         // Create type parameters
550 
551         // Set bounds for type parameters
552 
553         // Add supertypes to classes
554         serviceModelEClass.getESuperTypes().add(this.getModelElement());
555         dtoReferenceEClass.getESuperTypes().add(this.getModelElement());
556         customMethodEClass.getESuperTypes().add(this.getServiceMethod());
557         crudServiceEClass.getESuperTypes().add(this.getModelElement());
558         specialMethodEClass.getESuperTypes().add(this.getServiceMethod());
559         serviceMethodEClass.getESuperTypes().add(this.getModelElement());
560         parameterEClass.getESuperTypes().add(this.getModelElement());
561         associationMethodEClass.getESuperTypes().add(this.getServiceMethod());
562 
563         // Initialize classes and features; add operations and parameters
564         initEClass(serviceModelEClass, ServiceModel.class, "ServiceModel", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
565         initEReference(getServiceModel_Methods(), this.getServiceMethod(), this.getServiceMethod_Model(), "methods", null, 0, -1, ServiceModel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
566         initEReference(getServiceModel_DtoReferences(), this.getDtoReference(), this.getDtoReference_Model(), "dtoReferences", null, 0, -1, ServiceModel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
567         initEReference(getServiceModel_CrudServices(), this.getCrudService(), this.getCrudService_Model(), "crudServices", null, 0, -1, ServiceModel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
568 
569         initEClass(modelElementEClass, ModelElement.class, "ModelElement", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
570         initEAttribute(getModelElement_Name(), ecorePackage.getEString(), "name", null, 0, 1, ModelElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
571         initEAttribute(getModelElement_Description(), ecorePackage.getEString(), "description", null, 0, 1, ModelElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
572 
573         initEClass(dtoReferenceEClass, DtoReference.class, "DtoReference", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
574         initEAttribute(getDtoReference_Modelname(), ecorePackage.getEString(), "modelname", null, 0, 1, DtoReference.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
575         initEReference(getDtoReference_Model(), this.getServiceModel(), this.getServiceModel_DtoReferences(), "model", null, 0, 1, DtoReference.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
576 
577         initEClass(customMethodEClass, CustomMethod.class, "CustomMethod", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
578         initEReference(getCustomMethod_OutParameter(), this.getParameter(), null, "outParameter", null, 0, 1, CustomMethod.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
579         initEReference(getCustomMethod_InParameters(), this.getParameter(), this.getParameter_Method(), "inParameters", null, 0, -1, CustomMethod.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
580 
581         initEClass(crudServiceEClass, CrudService.class, "CrudService", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
582         initEReference(getCrudService_Dto(), this.getDtoReference(), null, "dto", null, 0, 1, CrudService.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
583         initEReference(getCrudService_Model(), this.getServiceModel(), this.getServiceModel_CrudServices(), "model", null, 0, 1, CrudService.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
584 
585         initEClass(specialMethodEClass, SpecialMethod.class, "SpecialMethod", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
586         initEReference(getSpecialMethod_Dto(), this.getDtoReference(), null, "dto", null, 0, 1, SpecialMethod.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
587 
588         initEClass(serviceMethodEClass, ServiceMethod.class, "ServiceMethod", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
589         initEAttribute(getServiceMethod_Type(), this.getMethodType(), "type", "Custom", 0, 1, ServiceMethod.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
590         initEReference(getServiceMethod_Model(), this.getServiceModel(), this.getServiceModel_Methods(), "model", null, 0, 1, ServiceMethod.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
591 
592         initEClass(parameterEClass, Parameter.class, "Parameter", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
593         initEReference(getParameter_Type(), this.getDtoReference(), null, "type", null, 0, 1, Parameter.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
594         initEReference(getParameter_Method(), this.getCustomMethod(), this.getCustomMethod_InParameters(), "method", null, 0, 1, Parameter.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
595         initEAttribute(getParameter_Collection(), this.getCollectionType(), "collection", "SINGLE", 0, 1, Parameter.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
596 
597         initEClass(associationMethodEClass, AssociationMethod.class, "AssociationMethod", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
598         initEReference(getAssociationMethod_Main(), this.getDtoReference(), null, "main", null, 0, 1, AssociationMethod.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
599         initEReference(getAssociationMethod_Part(), this.getDtoReference(), null, "part", null, 0, 1, AssociationMethod.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
600         initEAttribute(getAssociationMethod_Rolename(), ecorePackage.getEString(), "rolename", null, 0, 1, AssociationMethod.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
601 
602         // Initialize enums and add enum literals
603         initEEnum(methodTypeEEnum, MethodType.class, "MethodType");
604         addEEnumLiteral(methodTypeEEnum, MethodType.CREATE);
605         addEEnumLiteral(methodTypeEEnum, MethodType.READ);
606         addEEnumLiteral(methodTypeEEnum, MethodType.UPDATE);
607         addEEnumLiteral(methodTypeEEnum, MethodType.DELETE);
608         addEEnumLiteral(methodTypeEEnum, MethodType.FIND);
609         addEEnumLiteral(methodTypeEEnum, MethodType.CUSTOM);
610         addEEnumLiteral(methodTypeEEnum, MethodType.ADDTO);
611         addEEnumLiteral(methodTypeEEnum, MethodType.REMOVEFROM);
612         addEEnumLiteral(methodTypeEEnum, MethodType.GETFROM);
613         addEEnumLiteral(methodTypeEEnum, MethodType.LISTALL);
614 
615         initEEnum(collectionTypeEEnum, CollectionType.class, "CollectionType");
616         addEEnumLiteral(collectionTypeEEnum, CollectionType.SINGLE);
617         addEEnumLiteral(collectionTypeEEnum, CollectionType.LIST);
618 
619         // Create resource
620         createResource(eNS_URI);
621     }
622 
623 } //ServiceDslPackageImpl