KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > emf > ecore > change > impl > ChangePackageImpl


1 /**
2  * <copyright>
3  *
4  * Copyright (c) 2003-2004 IBM Corporation and others.
5  * All rights reserved. This program and the accompanying materials
6  * are made available under the terms of the Eclipse Public License v1.0
7  * which accompanies this distribution, and is available at
8  * http://www.eclipse.org/legal/epl-v10.html
9  *
10  * Contributors:
11  * IBM - Initial API and implementation
12  *
13  * </copyright>
14  *
15  * $Id: ChangePackageImpl.java,v 1.10 2005/06/08 06:16:16 nickb Exp $
16  */

17 package org.eclipse.emf.ecore.change.impl;
18
19
20 import java.util.Map JavaDoc;
21
22 import org.eclipse.emf.ecore.EAttribute;
23 import org.eclipse.emf.ecore.EClass;
24 import org.eclipse.emf.ecore.EEnum;
25 import org.eclipse.emf.ecore.EOperation;
26 import org.eclipse.emf.ecore.EPackage;
27 import org.eclipse.emf.ecore.EReference;
28 import org.eclipse.emf.ecore.EcorePackage;
29 import org.eclipse.emf.ecore.change.ChangeDescription;
30 import org.eclipse.emf.ecore.change.ChangeFactory;
31 import org.eclipse.emf.ecore.change.ChangeKind;
32 import org.eclipse.emf.ecore.change.ChangePackage;
33 import org.eclipse.emf.ecore.change.FeatureChange;
34 import org.eclipse.emf.ecore.change.FeatureMapEntry;
35 import org.eclipse.emf.ecore.change.ListChange;
36 import org.eclipse.emf.ecore.change.ResourceChange;
37 import org.eclipse.emf.ecore.impl.EPackageImpl;
38 import org.eclipse.emf.ecore.impl.EcorePackageImpl;
39
40
41 /**
42  * <!-- begin-user-doc -->
43  * An implementation of the model <b>Package</b>.
44  * <!-- end-user-doc -->
45  * @generated
46  */

47 public class ChangePackageImpl extends EPackageImpl implements ChangePackage
48 {
49   /**
50    * <!-- begin-user-doc -->
51    * <!-- end-user-doc -->
52    * @generated
53    */

54   private EClass changeDescriptionEClass = null;
55
56   /**
57    * <!-- begin-user-doc -->
58    * <!-- end-user-doc -->
59    * @generated
60    */

61   private EClass eObjectToChangesMapEntryEClass = null;
62
63   /**
64    * <!-- begin-user-doc -->
65    * <!-- end-user-doc -->
66    * @generated
67    */

68   private EClass featureChangeEClass = null;
69
70   /**
71    * <!-- begin-user-doc -->
72    * <!-- end-user-doc -->
73    * @generated
74    */

75   private EClass listChangeEClass = null;
76
77   /**
78    * <!-- begin-user-doc -->
79    * <!-- end-user-doc -->
80    * @generated
81    */

82   private EClass resourceChangeEClass = null;
83
84   /**
85    * <!-- begin-user-doc -->
86    * <!-- end-user-doc -->
87    * @generated
88    */

89   private EClass featureMapEntryEClass = null;
90
91   /**
92    * <!-- begin-user-doc -->
93    * <!-- end-user-doc -->
94    * @generated
95    */

96   private EEnum changeKindEEnum = null;
97
98   /**
99    * Creates an instance of the model <b>Package</b>, registered with
100    * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package
101    * package URI value.
102    * <p>Note: the correct way to create the package is via the static
103    * factory method {@link #init init()}, which also performs
104    * initialization of the package, or returns the registered package,
105    * if one already exists.
106    * <!-- begin-user-doc -->
107    * <!-- end-user-doc -->
108    * @see org.eclipse.emf.ecore.EPackage.Registry
109    * @see org.eclipse.emf.ecore.change.ChangePackage#eNS_URI
110    * @see #init()
111    * @generated
112    */

113   private ChangePackageImpl()
114   {
115     super(eNS_URI, ChangeFactory.eINSTANCE);
116   }
117
118   /**
119    * <!-- begin-user-doc -->
120    * <!-- end-user-doc -->
121    * @generated
122    */

123   private static boolean isInited = false;
124
125   /**
126    * Creates, registers, and initializes the <b>Package</b> for this
127    * model, and for any others upon which it depends. Simple
128    * dependencies are satisfied by calling this method on all
129    * dependent packages before doing anything else. This method drives
130    * initialization for interdependent packages directly, in parallel
131    * with this package, itself.
132    * <p>Of this package and its interdependencies, all packages which
133    * have not yet been registered by their URI values are first created
134    * and registered. The packages are then initialized in two steps:
135    * meta-model objects for all of the packages are created before any
136    * are initialized, since one package's meta-model objects may refer to
137    * those of another.
138    * <p>Invocation of this method will not affect any packages that have
139    * already been initialized.
140    * <!-- begin-user-doc -->
141    * <!-- end-user-doc -->
142    * @see #eNS_URI
143    * @see #createPackageContents()
144    * @see #initializePackageContents()
145    * @generated
146    */

147   public static ChangePackage init()
148   {
149     if (isInited) return (ChangePackage)EPackage.Registry.INSTANCE.getEPackage(ChangePackage.eNS_URI);
150
151     // Obtain or create and register package
152
ChangePackageImpl theChangePackage = (ChangePackageImpl)(EPackage.Registry.INSTANCE.getEPackage(eNS_URI) instanceof ChangePackageImpl ? EPackage.Registry.INSTANCE.getEPackage(eNS_URI) : new ChangePackageImpl());
153
154     isInited = true;
155
156     // Initialize simple dependencies
157
EcorePackageImpl.init();
158
159     // Create package meta-data objects
160
theChangePackage.createPackageContents();
161
162     // Initialize created meta-data
163
theChangePackage.initializePackageContents();
164
165     // Mark meta-data to indicate it can't be changed
166
theChangePackage.freeze();
167
168     return theChangePackage;
169   }
170
171   /**
172    * <!-- begin-user-doc -->
173    * <!-- end-user-doc -->
174    * @generated
175    */

176   public EClass getChangeDescription()
177   {
178     return changeDescriptionEClass;
179   }
180
181   /**
182    * <!-- begin-user-doc -->
183    * <!-- end-user-doc -->
184    * @generated
185    */

186   public EReference getChangeDescription_ObjectChanges()
187   {
188     return (EReference)changeDescriptionEClass.getEStructuralFeatures().get(0);
189   }
190
191   /**
192    * <!-- begin-user-doc -->
193    * <!-- end-user-doc -->
194    * @generated
195    */

196   public EReference getChangeDescription_ObjectsToDetach()
197   {
198     return (EReference)changeDescriptionEClass.getEStructuralFeatures().get(1);
199   }
200
201   /**
202    * <!-- begin-user-doc -->
203    * <!-- end-user-doc -->
204    * @generated
205    */

206   public EReference getChangeDescription_ObjectsToAttach()
207   {
208     return (EReference)changeDescriptionEClass.getEStructuralFeatures().get(2);
209   }
210
211   /**
212    * <!-- begin-user-doc -->
213    * <!-- end-user-doc -->
214    * @generated
215    */

216   public EReference getChangeDescription_ResourceChanges()
217   {
218     return (EReference)changeDescriptionEClass.getEStructuralFeatures().get(3);
219   }
220
221   /**
222    * <!-- begin-user-doc -->
223    * <!-- end-user-doc -->
224    * @generated
225    */

226   public EClass getEObjectToChangesMapEntry()
227   {
228     return eObjectToChangesMapEntryEClass;
229   }
230
231   /**
232    * <!-- begin-user-doc -->
233    * <!-- end-user-doc -->
234    * @generated
235    */

236   public EReference getEObjectToChangesMapEntry_Key()
237   {
238     return (EReference)eObjectToChangesMapEntryEClass.getEStructuralFeatures().get(0);
239   }
240
241   /**
242    * <!-- begin-user-doc -->
243    * <!-- end-user-doc -->
244    * @generated
245    */

246   public EReference getEObjectToChangesMapEntry_Value()
247   {
248     return (EReference)eObjectToChangesMapEntryEClass.getEStructuralFeatures().get(1);
249   }
250
251   /**
252    * <!-- begin-user-doc -->
253    * <!-- end-user-doc -->
254    * @generated
255    */

256   public EClass getFeatureChange()
257   {
258     return featureChangeEClass;
259   }
260
261   /**
262    * <!-- begin-user-doc -->
263    * <!-- end-user-doc -->
264    * @generated
265    */

266   public EAttribute getFeatureChange_FeatureName()
267   {
268     return (EAttribute)featureChangeEClass.getEStructuralFeatures().get(0);
269   }
270
271   /**
272    * <!-- begin-user-doc -->
273    * <!-- end-user-doc -->
274    * @generated
275    */

276   public EAttribute getFeatureChange_DataValue()
277   {
278     return (EAttribute)featureChangeEClass.getEStructuralFeatures().get(1);
279   }
280
281   /**
282    * <!-- begin-user-doc -->
283    * <!-- end-user-doc -->
284    * @generated
285    */

286   public EAttribute getFeatureChange_Set()
287   {
288     return (EAttribute)featureChangeEClass.getEStructuralFeatures().get(2);
289   }
290
291   /**
292    * <!-- begin-user-doc -->
293    * <!-- end-user-doc -->
294    * @generated
295    */

296   public EAttribute getFeatureChange_Value()
297   {
298     return (EAttribute)featureChangeEClass.getEStructuralFeatures().get(3);
299   }
300
301   /**
302    * <!-- begin-user-doc -->
303    * <!-- end-user-doc -->
304    * @generated
305    */

306   public EReference getFeatureChange_Feature()
307   {
308     return (EReference)featureChangeEClass.getEStructuralFeatures().get(4);
309   }
310
311   /**
312    * <!-- begin-user-doc -->
313    * <!-- end-user-doc -->
314    * @generated
315    */

316   public EReference getFeatureChange_ReferenceValue()
317   {
318     return (EReference)featureChangeEClass.getEStructuralFeatures().get(5);
319   }
320
321   /**
322    * <!-- begin-user-doc -->
323    * <!-- end-user-doc -->
324    * @generated
325    */

326   public EReference getFeatureChange_ListChanges()
327   {
328     return (EReference)featureChangeEClass.getEStructuralFeatures().get(6);
329   }
330
331   /**
332    * <!-- begin-user-doc -->
333    * <!-- end-user-doc -->
334    * @generated
335    */

336   public EClass getListChange()
337   {
338     return listChangeEClass;
339   }
340
341   /**
342    * <!-- begin-user-doc -->
343    * <!-- end-user-doc -->
344    * @generated
345    */

346   public EAttribute getListChange_Kind()
347   {
348     return (EAttribute)listChangeEClass.getEStructuralFeatures().get(0);
349   }
350
351   /**
352    * <!-- begin-user-doc -->
353    * <!-- end-user-doc -->
354    * @generated
355    */

356   public EAttribute getListChange_DataValues()
357   {
358     return (EAttribute)listChangeEClass.getEStructuralFeatures().get(1);
359   }
360
361   /**
362    * <!-- begin-user-doc -->
363    * <!-- end-user-doc -->
364    * @generated
365    */

366   public EAttribute getListChange_Index()
367   {
368     return (EAttribute)listChangeEClass.getEStructuralFeatures().get(2);
369   }
370
371   /**
372    * <!-- begin-user-doc -->
373    * <!-- end-user-doc -->
374    * @generated
375    */

376   public EAttribute getListChange_MoveToIndex()
377   {
378     return (EAttribute)listChangeEClass.getEStructuralFeatures().get(3);
379   }
380
381   /**
382    * <!-- begin-user-doc -->
383    * <!-- end-user-doc -->
384    * @generated
385    */

386   public EAttribute getListChange_Values()
387   {
388     return (EAttribute)listChangeEClass.getEStructuralFeatures().get(4);
389   }
390
391   /**
392    * <!-- begin-user-doc -->
393    * <!-- end-user-doc -->
394    * @generated
395    */

396   public EReference getListChange_ReferenceValues()
397   {
398     return (EReference)listChangeEClass.getEStructuralFeatures().get(5);
399   }
400
401   /**
402    * <!-- begin-user-doc -->
403    * <!-- end-user-doc -->
404    * @generated
405    */

406   public EReference getListChange_Feature()
407   {
408     return (EReference)listChangeEClass.getEStructuralFeatures().get(6);
409   }
410
411   /**
412    * <!-- begin-user-doc -->
413    * <!-- end-user-doc -->
414    * @generated
415    */

416   public EReference getListChange_FeatureMapEntryValues()
417   {
418     return (EReference)listChangeEClass.getEStructuralFeatures().get(7);
419   }
420
421   /**
422    * <!-- begin-user-doc -->
423    * <!-- end-user-doc -->
424    * @generated
425    */

426   public EClass getResourceChange()
427   {
428     return resourceChangeEClass;
429   }
430
431   /**
432    * <!-- begin-user-doc -->
433    * <!-- end-user-doc -->
434    * @generated
435    */

436   public EAttribute getResourceChange_ResourceURI()
437   {
438     return (EAttribute)resourceChangeEClass.getEStructuralFeatures().get(0);
439   }
440
441   /**
442    * <!-- begin-user-doc -->
443    * <!-- end-user-doc -->
444    * @generated
445    */

446   public EAttribute getResourceChange_Resource()
447   {
448     return (EAttribute)resourceChangeEClass.getEStructuralFeatures().get(1);
449   }
450
451   /**
452    * <!-- begin-user-doc -->
453    * <!-- end-user-doc -->
454    * @generated
455    */

456   public EAttribute getResourceChange_Value()
457   {
458     return (EAttribute)resourceChangeEClass.getEStructuralFeatures().get(2);
459   }
460
461   /**
462    * <!-- begin-user-doc -->
463    * <!-- end-user-doc -->
464    * @generated
465    */

466   public EReference getResourceChange_ListChanges()
467   {
468     return (EReference)resourceChangeEClass.getEStructuralFeatures().get(3);
469   }
470
471   /**
472    * <!-- begin-user-doc -->
473    * <!-- end-user-doc -->
474    * @generated
475    */

476   public EClass getFeatureMapEntry()
477   {
478     return featureMapEntryEClass;
479   }
480
481   /**
482    * <!-- begin-user-doc -->
483    * <!-- end-user-doc -->
484    * @generated
485    */

486   public EAttribute getFeatureMapEntry_FeatureName()
487   {
488     return (EAttribute)featureMapEntryEClass.getEStructuralFeatures().get(0);
489   }
490
491   /**
492    * <!-- begin-user-doc -->
493    * <!-- end-user-doc -->
494    * @generated
495    */

496   public EAttribute getFeatureMapEntry_DataValue()
497   {
498     return (EAttribute)featureMapEntryEClass.getEStructuralFeatures().get(1);
499   }
500
501   /**
502    * <!-- begin-user-doc -->
503    * <!-- end-user-doc -->
504    * @generated
505    */

506   public EAttribute getFeatureMapEntry_Value()
507   {
508     return (EAttribute)featureMapEntryEClass.getEStructuralFeatures().get(2);
509   }
510
511   /**
512    * <!-- begin-user-doc -->
513    * <!-- end-user-doc -->
514    * @generated
515    */

516   public EReference getFeatureMapEntry_Feature()
517   {
518     return (EReference)featureMapEntryEClass.getEStructuralFeatures().get(3);
519   }
520
521   /**
522    * <!-- begin-user-doc -->
523    * <!-- end-user-doc -->
524    * @generated
525    */

526   public EReference getFeatureMapEntry_ReferenceValue()
527   {
528     return (EReference)featureMapEntryEClass.getEStructuralFeatures().get(4);
529   }
530
531   /**
532    * <!-- begin-user-doc -->
533    * <!-- end-user-doc -->
534    * @generated
535    */

536   public EEnum getChangeKind()
537   {
538     return changeKindEEnum;
539   }
540
541   /**
542    * <!-- begin-user-doc -->
543    * <!-- end-user-doc -->
544    * @generated
545    */

546   public ChangeFactory getChangeFactory()
547   {
548     return (ChangeFactory)getEFactoryInstance();
549   }
550
551   /**
552    * <!-- begin-user-doc -->
553    * <!-- end-user-doc -->
554    * @generated
555    */

556   private boolean isCreated = false;
557
558   /**
559    * Creates the meta-model objects for the package. This method is
560    * guarded to have no affect on any invocation but its first.
561    * <!-- begin-user-doc -->
562    * <!-- end-user-doc -->
563    * @generated
564    */

565   public void createPackageContents()
566   {
567     if (isCreated) return;
568     isCreated = true;
569
570     // Create classes and their features
571
changeDescriptionEClass = createEClass(CHANGE_DESCRIPTION);
572     createEReference(changeDescriptionEClass, CHANGE_DESCRIPTION__OBJECT_CHANGES);
573     createEReference(changeDescriptionEClass, CHANGE_DESCRIPTION__OBJECTS_TO_DETACH);
574     createEReference(changeDescriptionEClass, CHANGE_DESCRIPTION__OBJECTS_TO_ATTACH);
575     createEReference(changeDescriptionEClass, CHANGE_DESCRIPTION__RESOURCE_CHANGES);
576
577     eObjectToChangesMapEntryEClass = createEClass(EOBJECT_TO_CHANGES_MAP_ENTRY);
578     createEReference(eObjectToChangesMapEntryEClass, EOBJECT_TO_CHANGES_MAP_ENTRY__KEY);
579     createEReference(eObjectToChangesMapEntryEClass, EOBJECT_TO_CHANGES_MAP_ENTRY__VALUE);
580
581     featureChangeEClass = createEClass(FEATURE_CHANGE);
582     createEAttribute(featureChangeEClass, FEATURE_CHANGE__FEATURE_NAME);
583     createEAttribute(featureChangeEClass, FEATURE_CHANGE__DATA_VALUE);
584     createEAttribute(featureChangeEClass, FEATURE_CHANGE__SET);
585     createEAttribute(featureChangeEClass, FEATURE_CHANGE__VALUE);
586     createEReference(featureChangeEClass, FEATURE_CHANGE__FEATURE);
587     createEReference(featureChangeEClass, FEATURE_CHANGE__REFERENCE_VALUE);
588     createEReference(featureChangeEClass, FEATURE_CHANGE__LIST_CHANGES);
589
590     listChangeEClass = createEClass(LIST_CHANGE);
591     createEAttribute(listChangeEClass, LIST_CHANGE__KIND);
592     createEAttribute(listChangeEClass, LIST_CHANGE__DATA_VALUES);
593     createEAttribute(listChangeEClass, LIST_CHANGE__INDEX);
594     createEAttribute(listChangeEClass, LIST_CHANGE__MOVE_TO_INDEX);
595     createEAttribute(listChangeEClass, LIST_CHANGE__VALUES);
596     createEReference(listChangeEClass, LIST_CHANGE__REFERENCE_VALUES);
597     createEReference(listChangeEClass, LIST_CHANGE__FEATURE);
598     createEReference(listChangeEClass, LIST_CHANGE__FEATURE_MAP_ENTRY_VALUES);
599
600     resourceChangeEClass = createEClass(RESOURCE_CHANGE);
601     createEAttribute(resourceChangeEClass, RESOURCE_CHANGE__RESOURCE_URI);
602     createEAttribute(resourceChangeEClass, RESOURCE_CHANGE__RESOURCE);
603     createEAttribute(resourceChangeEClass, RESOURCE_CHANGE__VALUE);
604     createEReference(resourceChangeEClass, RESOURCE_CHANGE__LIST_CHANGES);
605
606     featureMapEntryEClass = createEClass(FEATURE_MAP_ENTRY);
607     createEAttribute(featureMapEntryEClass, FEATURE_MAP_ENTRY__FEATURE_NAME);
608     createEAttribute(featureMapEntryEClass, FEATURE_MAP_ENTRY__DATA_VALUE);
609     createEAttribute(featureMapEntryEClass, FEATURE_MAP_ENTRY__VALUE);
610     createEReference(featureMapEntryEClass, FEATURE_MAP_ENTRY__FEATURE);
611     createEReference(featureMapEntryEClass, FEATURE_MAP_ENTRY__REFERENCE_VALUE);
612
613     // Create enums
614
changeKindEEnum = createEEnum(CHANGE_KIND);
615   }
616
617   /**
618    * <!-- begin-user-doc -->
619    * <!-- end-user-doc -->
620    * @generated
621    */

622   private boolean isInitialized = false;
623
624   /**
625    * Complete the initialization of the package and its meta-model. This
626    * method is guarded to have no affect on any invocation but its first.
627    * <!-- begin-user-doc -->
628    * <!-- end-user-doc -->
629    * @generated
630    */

631   public void initializePackageContents()
632   {
633     if (isInitialized) return;
634     isInitialized = true;
635
636     // Initialize package
637
setName(eNAME);
638     setNsPrefix(eNS_PREFIX);
639     setNsURI(eNS_URI);
640
641     // Obtain other dependent packages
642
EcorePackageImpl theEcorePackage = (EcorePackageImpl)EPackage.Registry.INSTANCE.getEPackage(EcorePackage.eNS_URI);
643
644     // Add supertypes to classes
645

646     // Initialize classes and features; add operations and parameters
647
initEClass(changeDescriptionEClass, ChangeDescription.class, "ChangeDescription", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
648     initEReference(getChangeDescription_ObjectChanges(), this.getEObjectToChangesMapEntry(), null, "objectChanges", null, 0, -1, ChangeDescription.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
649     initEReference(getChangeDescription_ObjectsToDetach(), theEcorePackage.getEObject(), null, "objectsToDetach", null, 0, -1, ChangeDescription.class, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);
650     initEReference(getChangeDescription_ObjectsToAttach(), theEcorePackage.getEObject(), null, "objectsToAttach", null, 0, -1, ChangeDescription.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
651     initEReference(getChangeDescription_ResourceChanges(), this.getResourceChange(), null, "resourceChanges", null, 0, -1, ChangeDescription.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
652
653     addEOperation(changeDescriptionEClass, null, "apply");
654
655     addEOperation(changeDescriptionEClass, null, "applyAndReverse");
656
657     initEClass(eObjectToChangesMapEntryEClass, Map.Entry JavaDoc.class, "EObjectToChangesMapEntry", !IS_ABSTRACT, !IS_INTERFACE, !IS_GENERATED_INSTANCE_CLASS);
658     initEReference(getEObjectToChangesMapEntry_Key(), theEcorePackage.getEObject(), null, "key", null, 1, 1, Map.Entry JavaDoc.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
659     initEReference(getEObjectToChangesMapEntry_Value(), this.getFeatureChange(), null, "value", null, 0, -1, Map.Entry JavaDoc.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
660
661     initEClass(featureChangeEClass, FeatureChange.class, "FeatureChange", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
662     initEAttribute(getFeatureChange_FeatureName(), ecorePackage.getEString(), "featureName", null, 0, 1, FeatureChange.class, !IS_TRANSIENT, IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
663     initEAttribute(getFeatureChange_DataValue(), ecorePackage.getEString(), "dataValue", null, 0, 1, FeatureChange.class, !IS_TRANSIENT, IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
664     initEAttribute(getFeatureChange_Set(), ecorePackage.getEBoolean(), "set", "true", 0, 1, FeatureChange.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
665     initEAttribute(getFeatureChange_Value(), theEcorePackage.getEJavaObject(), "value", null, 0, 1, FeatureChange.class, IS_TRANSIENT, IS_VOLATILE, !IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, IS_DERIVED, IS_ORDERED);
666     initEReference(getFeatureChange_Feature(), theEcorePackage.getEStructuralFeature(), null, "feature", null, 1, 1, FeatureChange.class, !IS_TRANSIENT, IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
667     initEReference(getFeatureChange_ReferenceValue(), theEcorePackage.getEObject(), null, "referenceValue", null, 0, 1, FeatureChange.class, !IS_TRANSIENT, IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
668     initEReference(getFeatureChange_ListChanges(), this.getListChange(), null, "listChanges", null, 0, -1, FeatureChange.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
669
670     EOperation op = addEOperation(featureChangeEClass, null, "apply");
671     addEParameter(op, theEcorePackage.getEObject(), "originalObject");
672
673     op = addEOperation(featureChangeEClass, null, "applyAndReverse");
674     addEParameter(op, theEcorePackage.getEObject(), "originalObject");
675
676     initEClass(listChangeEClass, ListChange.class, "ListChange", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
677     initEAttribute(getListChange_Kind(), this.getChangeKind(), "kind", null, 0, 1, ListChange.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
678     initEAttribute(getListChange_DataValues(), ecorePackage.getEString(), "dataValues", null, 0, -1, ListChange.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
679     initEAttribute(getListChange_Index(), ecorePackage.getEInt(), "index", "-1", 0, 1, ListChange.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
680     initEAttribute(getListChange_MoveToIndex(), ecorePackage.getEInt(), "moveToIndex", null, 0, 1, ListChange.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
681     initEAttribute(getListChange_Values(), theEcorePackage.getEJavaObject(), "values", null, 0, -1, ListChange.class, IS_TRANSIENT, IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, IS_DERIVED, IS_ORDERED);
682     initEReference(getListChange_ReferenceValues(), theEcorePackage.getEObject(), null, "referenceValues", null, 0, -1, ListChange.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
683     initEReference(getListChange_Feature(), theEcorePackage.getEStructuralFeature(), null, "feature", null, 0, 1, ListChange.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
684     initEReference(getListChange_FeatureMapEntryValues(), this.getFeatureMapEntry(), null, "featureMapEntryValues", null, 0, -1, ListChange.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
685
686     op = addEOperation(listChangeEClass, null, "apply");
687     addEParameter(op, theEcorePackage.getEEList(), "originalList");
688
689     op = addEOperation(listChangeEClass, null, "applyAndReverse");
690     addEParameter(op, theEcorePackage.getEEList(), "originalList");
691
692     initEClass(resourceChangeEClass, ResourceChange.class, "ResourceChange", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
693     initEAttribute(getResourceChange_ResourceURI(), ecorePackage.getEString(), "resourceURI", null, 0, 1, ResourceChange.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
694     initEAttribute(getResourceChange_Resource(), theEcorePackage.getEResource(), "resource", null, 0, 1, ResourceChange.class, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, IS_DERIVED, IS_ORDERED);
695     initEAttribute(getResourceChange_Value(), theEcorePackage.getEEList(), "value", null, 0, 1, ResourceChange.class, IS_TRANSIENT, IS_VOLATILE, !IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, IS_DERIVED, IS_ORDERED);
696     initEReference(getResourceChange_ListChanges(), this.getListChange(), null, "listChanges", null, 0, -1, ResourceChange.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
697
698     addEOperation(resourceChangeEClass, null, "apply");
699
700     addEOperation(resourceChangeEClass, null, "applyAndReverse");
701
702     initEClass(featureMapEntryEClass, FeatureMapEntry.class, "FeatureMapEntry", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
703     initEAttribute(getFeatureMapEntry_FeatureName(), ecorePackage.getEString(), "featureName", null, 0, 1, FeatureMapEntry.class, !IS_TRANSIENT, IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
704     initEAttribute(getFeatureMapEntry_DataValue(), ecorePackage.getEString(), "dataValue", null, 0, 1, FeatureMapEntry.class, !IS_TRANSIENT, IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
705     initEAttribute(getFeatureMapEntry_Value(), theEcorePackage.getEJavaObject(), "value", null, 0, 1, FeatureMapEntry.class, IS_TRANSIENT, IS_VOLATILE, !IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, IS_DERIVED, IS_ORDERED);
706     initEReference(getFeatureMapEntry_Feature(), theEcorePackage.getEStructuralFeature(), null, "feature", null, 1, 1, FeatureMapEntry.class, !IS_TRANSIENT, IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
707     initEReference(getFeatureMapEntry_ReferenceValue(), theEcorePackage.getEObject(), null, "referenceValue", null, 0, 1, FeatureMapEntry.class, !IS_TRANSIENT, IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
708
709     // Initialize enums and add enum literals
710
initEEnum(changeKindEEnum, ChangeKind.class, "ChangeKind");
711     addEEnumLiteral(changeKindEEnum, ChangeKind.ADD_LITERAL);
712     addEEnumLiteral(changeKindEEnum, ChangeKind.REMOVE_LITERAL);
713     addEEnumLiteral(changeKindEEnum, ChangeKind.MOVE_LITERAL);
714
715     // Create resource
716
createResource(eNS_URI);
717   }
718
719 } //ChangePackageImpl
720
Popular Tags