Fix some of the warnings
[EMFCompare2.git] / plugins / org.eclipse.emf.compare / src-gen / org / eclipse / emf / compare / impl / ComparePackageImpl.java
blob7d1521d91d1fcc868406e70db772fd52e7f44cea
1 /**
2 * Copyright (c) 2013, 2015 Obeo.
3 * All rights reserved. This program and the accompanying materials
4 * are made available under the terms of the Eclipse Public License v1.0
5 * which accompanies this distribution, and is available at
6 * http://www.eclipse.org/legal/epl-v10.html
7 *
8 * Contributors:
9 * Obeo - initial API and implementation
11 package org.eclipse.emf.compare.impl;
13 import java.lang.Iterable;
14 import org.eclipse.emf.common.util.Diagnostic;
15 import org.eclipse.emf.compare.AttributeChange;
16 import org.eclipse.emf.compare.CompareFactory;
17 import org.eclipse.emf.compare.ComparePackage;
18 import org.eclipse.emf.compare.Comparison;
19 import org.eclipse.emf.compare.Conflict;
20 import org.eclipse.emf.compare.ConflictKind;
21 import org.eclipse.emf.compare.Diff;
22 import org.eclipse.emf.compare.DifferenceKind;
23 import org.eclipse.emf.compare.DifferenceSource;
24 import org.eclipse.emf.compare.DifferenceState;
25 import org.eclipse.emf.compare.Equivalence;
26 import org.eclipse.emf.compare.FeatureMapChange;
27 import org.eclipse.emf.compare.Match;
28 import org.eclipse.emf.compare.MatchResource;
29 import org.eclipse.emf.compare.ReferenceChange;
30 import org.eclipse.emf.compare.ResourceAttachmentChange;
31 import org.eclipse.emf.compare.ResourceLocationChange;
32 import org.eclipse.emf.compare.utils.IEqualityHelper;
33 import org.eclipse.emf.ecore.EAttribute;
34 import org.eclipse.emf.ecore.EClass;
35 import org.eclipse.emf.ecore.EDataType;
36 import org.eclipse.emf.ecore.EEnum;
37 import org.eclipse.emf.ecore.EGenericType;
38 import org.eclipse.emf.ecore.EOperation;
39 import org.eclipse.emf.ecore.EPackage;
40 import org.eclipse.emf.ecore.EReference;
41 import org.eclipse.emf.ecore.EcorePackage;
42 import org.eclipse.emf.ecore.impl.EPackageImpl;
44 /**
45 * <!-- begin-user-doc --> An implementation of the model <b>Package</b>. <!-- end-user-doc -->
46 * @generated
48 public class ComparePackageImpl extends EPackageImpl implements ComparePackage {
49 /**
50 * <!-- begin-user-doc --> <!-- end-user-doc -->
51 * @generated
53 public static final String copyright = "Copyright (c) 2012 Obeo.\r\nAll rights reserved. This program and the accompanying materials\r\nare made available under the terms of the Eclipse Public License v1.0\r\nwhich accompanies this distribution, and is available at\r\nhttp://www.eclipse.org/legal/epl-v10.html\r\n\r\nContributors:\r\n Obeo - initial API and implementation"; //$NON-NLS-1$
55 /**
56 * <!-- begin-user-doc --> <!-- end-user-doc -->
57 * @generated
59 private EClass comparisonEClass = null;
61 /**
62 * <!-- begin-user-doc --> <!-- end-user-doc -->
63 * @generated
65 private EClass matchResourceEClass = null;
67 /**
68 * <!-- begin-user-doc --> <!-- end-user-doc -->
69 * @generated
71 private EClass matchEClass = null;
73 /**
74 * <!-- begin-user-doc --> <!-- end-user-doc -->
75 * @generated
77 private EClass diffEClass = null;
79 /**
80 * <!-- begin-user-doc --> <!-- end-user-doc -->
81 * @generated
83 private EClass resourceAttachmentChangeEClass = null;
85 /**
86 * <!-- begin-user-doc -->
87 * <!-- end-user-doc -->
88 * @generated
90 private EClass resourceLocationChangeEClass = null;
92 /**
93 * <!-- begin-user-doc --> <!-- end-user-doc -->
94 * @generated
96 private EClass referenceChangeEClass = null;
98 /**
99 * <!-- begin-user-doc --> <!-- end-user-doc -->
100 * @generated
102 private EClass attributeChangeEClass = null;
105 * <!-- begin-user-doc --> <!-- end-user-doc -->
106 * @generated
108 private EClass featureMapChangeEClass = null;
111 * <!-- begin-user-doc --> <!-- end-user-doc -->
112 * @generated
114 private EClass conflictEClass = null;
117 * <!-- begin-user-doc --> <!-- end-user-doc -->
118 * @generated
120 private EClass equivalenceEClass = null;
123 * <!-- begin-user-doc --> <!-- end-user-doc -->
124 * @generated
126 private EEnum differenceKindEEnum = null;
129 * <!-- begin-user-doc --> <!-- end-user-doc -->
130 * @generated
132 private EEnum differenceSourceEEnum = null;
135 * <!-- begin-user-doc --> <!-- end-user-doc -->
136 * @generated
138 private EEnum differenceStateEEnum = null;
141 * <!-- begin-user-doc --> <!-- end-user-doc -->
142 * @generated
144 private EEnum conflictKindEEnum = null;
147 * <!-- begin-user-doc --> <!-- end-user-doc -->
148 * @generated
150 private EDataType eIterableEDataType = null;
153 * <!-- begin-user-doc --> <!-- end-user-doc -->
154 * @generated
156 private EDataType iEqualityHelperEDataType = null;
159 * <!-- begin-user-doc --> <!-- end-user-doc -->
160 * @generated
162 private EDataType diagnosticEDataType = null;
165 * Creates an instance of the model <b>Package</b>, registered with
166 * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package
167 * package URI value.
168 * <p>Note: the correct way to create the package is via the static
169 * factory method {@link #init init()}, which also performs
170 * initialization of the package, or returns the registered package,
171 * if one already exists.
172 * <!-- begin-user-doc --> <!-- end-user-doc -->
173 * @see org.eclipse.emf.ecore.EPackage.Registry
174 * @see org.eclipse.emf.compare.ComparePackage#eNS_URI
175 * @see #init()
176 * @generated
178 private ComparePackageImpl() {
179 super(eNS_URI, CompareFactory.eINSTANCE);
183 * <!-- begin-user-doc --> <!-- end-user-doc -->
184 * @generated
186 private static boolean isInited = false;
189 * Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends.
191 * <p>This method is used to initialize {@link ComparePackage#eINSTANCE} when that field is accessed.
192 * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package.
193 * <!-- begin-user-doc --> <!-- end-user-doc -->
194 * @see #eNS_URI
195 * @see #createPackageContents()
196 * @see #initializePackageContents()
197 * @generated
199 public static ComparePackage init() {
200 if (isInited)
201 return (ComparePackage)EPackage.Registry.INSTANCE.getEPackage(ComparePackage.eNS_URI);
203 // Obtain or create and register package
204 ComparePackageImpl theComparePackage = (ComparePackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof ComparePackageImpl ? EPackage.Registry.INSTANCE
205 .get(eNS_URI)
206 : new ComparePackageImpl());
208 isInited = true;
210 // Initialize simple dependencies
211 EcorePackage.eINSTANCE.eClass();
213 // Create package meta-data objects
214 theComparePackage.createPackageContents();
216 // Initialize created meta-data
217 theComparePackage.initializePackageContents();
219 // Mark meta-data to indicate it can't be changed
220 theComparePackage.freeze();
222 // Update the registry and return the package
223 EPackage.Registry.INSTANCE.put(ComparePackage.eNS_URI, theComparePackage);
224 return theComparePackage;
228 * <!-- begin-user-doc --> <!-- end-user-doc -->
229 * @generated
231 public EClass getComparison() {
232 return comparisonEClass;
236 * <!-- begin-user-doc --> <!-- end-user-doc -->
237 * @generated
239 public EReference getComparison_MatchedResources() {
240 return (EReference)comparisonEClass.getEStructuralFeatures().get(0);
244 * <!-- begin-user-doc --> <!-- end-user-doc -->
245 * @generated
247 public EReference getComparison_Matches() {
248 return (EReference)comparisonEClass.getEStructuralFeatures().get(1);
252 * <!-- begin-user-doc --> <!-- end-user-doc -->
253 * @generated
255 public EReference getComparison_Conflicts() {
256 return (EReference)comparisonEClass.getEStructuralFeatures().get(2);
260 * <!-- begin-user-doc --> <!-- end-user-doc -->
261 * @generated
263 public EReference getComparison_Equivalences() {
264 return (EReference)comparisonEClass.getEStructuralFeatures().get(3);
268 * <!-- begin-user-doc --> <!-- end-user-doc -->
269 * @generated
271 public EAttribute getComparison_ThreeWay() {
272 return (EAttribute)comparisonEClass.getEStructuralFeatures().get(4);
276 * <!-- begin-user-doc --> <!-- end-user-doc -->
277 * @generated
279 public EAttribute getComparison_Diagnostic() {
280 return (EAttribute)comparisonEClass.getEStructuralFeatures().get(5);
284 * <!-- begin-user-doc --> <!-- end-user-doc -->
285 * @generated
287 public EClass getMatchResource() {
288 return matchResourceEClass;
292 * <!-- begin-user-doc --> <!-- end-user-doc -->
293 * @generated
295 public EAttribute getMatchResource_LeftURI() {
296 return (EAttribute)matchResourceEClass.getEStructuralFeatures().get(0);
300 * <!-- begin-user-doc --> <!-- end-user-doc -->
301 * @generated
303 public EAttribute getMatchResource_RightURI() {
304 return (EAttribute)matchResourceEClass.getEStructuralFeatures().get(1);
308 * <!-- begin-user-doc --> <!-- end-user-doc -->
309 * @generated
311 public EAttribute getMatchResource_OriginURI() {
312 return (EAttribute)matchResourceEClass.getEStructuralFeatures().get(2);
316 * <!-- begin-user-doc --> <!-- end-user-doc -->
317 * @generated
319 public EAttribute getMatchResource_Left() {
320 return (EAttribute)matchResourceEClass.getEStructuralFeatures().get(3);
324 * <!-- begin-user-doc --> <!-- end-user-doc -->
325 * @generated
327 public EAttribute getMatchResource_Right() {
328 return (EAttribute)matchResourceEClass.getEStructuralFeatures().get(4);
332 * <!-- begin-user-doc --> <!-- end-user-doc -->
333 * @generated
335 public EAttribute getMatchResource_Origin() {
336 return (EAttribute)matchResourceEClass.getEStructuralFeatures().get(5);
340 * <!-- begin-user-doc --> <!-- end-user-doc -->
341 * @generated
343 public EReference getMatchResource_Comparison() {
344 return (EReference)matchResourceEClass.getEStructuralFeatures().get(6);
348 * <!-- begin-user-doc -->
349 * <!-- end-user-doc -->
350 * @generated
351 * @since 3.2
353 public EReference getMatchResource_LocationChanges() {
354 return (EReference)matchResourceEClass.getEStructuralFeatures().get(7);
358 * <!-- begin-user-doc --> <!-- end-user-doc -->
359 * @generated
361 public EClass getMatch() {
362 return matchEClass;
366 * <!-- begin-user-doc --> <!-- end-user-doc -->
367 * @generated
369 public EReference getMatch_Submatches() {
370 return (EReference)matchEClass.getEStructuralFeatures().get(0);
374 * <!-- begin-user-doc --> <!-- end-user-doc -->
375 * @generated
377 public EReference getMatch_Differences() {
378 return (EReference)matchEClass.getEStructuralFeatures().get(1);
382 * <!-- begin-user-doc --> <!-- end-user-doc -->
383 * @generated
385 public EReference getMatch_Left() {
386 return (EReference)matchEClass.getEStructuralFeatures().get(2);
390 * <!-- begin-user-doc --> <!-- end-user-doc -->
391 * @generated
393 public EReference getMatch_Right() {
394 return (EReference)matchEClass.getEStructuralFeatures().get(3);
398 * <!-- begin-user-doc --> <!-- end-user-doc -->
399 * @generated
401 public EReference getMatch_Origin() {
402 return (EReference)matchEClass.getEStructuralFeatures().get(4);
406 * <!-- begin-user-doc --> <!-- end-user-doc -->
407 * @generated
409 public EClass getDiff() {
410 return diffEClass;
414 * <!-- begin-user-doc --> <!-- end-user-doc -->
415 * @generated
417 public EReference getDiff_Match() {
418 return (EReference)diffEClass.getEStructuralFeatures().get(0);
422 * <!-- begin-user-doc --> <!-- end-user-doc -->
423 * @generated
425 public EReference getDiff_Requires() {
426 return (EReference)diffEClass.getEStructuralFeatures().get(1);
430 * <!-- begin-user-doc --> <!-- end-user-doc -->
431 * @generated
433 public EReference getDiff_RequiredBy() {
434 return (EReference)diffEClass.getEStructuralFeatures().get(2);
438 * <!-- begin-user-doc --> <!-- end-user-doc -->
439 * @generated
441 public EReference getDiff_Implies() {
442 return (EReference)diffEClass.getEStructuralFeatures().get(3);
446 * <!-- begin-user-doc --> <!-- end-user-doc -->
447 * @generated
449 public EReference getDiff_ImpliedBy() {
450 return (EReference)diffEClass.getEStructuralFeatures().get(4);
454 * <!-- begin-user-doc --> <!-- end-user-doc -->
455 * @generated
457 public EReference getDiff_Refines() {
458 return (EReference)diffEClass.getEStructuralFeatures().get(5);
462 * <!-- begin-user-doc --> <!-- end-user-doc -->
463 * @generated
465 public EReference getDiff_RefinedBy() {
466 return (EReference)diffEClass.getEStructuralFeatures().get(6);
470 * <!-- begin-user-doc --> <!-- end-user-doc -->
471 * @generated
473 public EReference getDiff_PrimeRefining() {
474 return (EReference)diffEClass.getEStructuralFeatures().get(7);
478 * <!-- begin-user-doc --> <!-- end-user-doc -->
479 * @generated
481 public EAttribute getDiff_Kind() {
482 return (EAttribute)diffEClass.getEStructuralFeatures().get(8);
486 * <!-- begin-user-doc --> <!-- end-user-doc -->
487 * @generated
489 public EAttribute getDiff_Source() {
490 return (EAttribute)diffEClass.getEStructuralFeatures().get(9);
494 * <!-- begin-user-doc --> <!-- end-user-doc -->
495 * @generated
497 public EAttribute getDiff_State() {
498 return (EAttribute)diffEClass.getEStructuralFeatures().get(10);
502 * <!-- begin-user-doc --> <!-- end-user-doc -->
503 * @generated
505 public EReference getDiff_Equivalence() {
506 return (EReference)diffEClass.getEStructuralFeatures().get(11);
510 * <!-- begin-user-doc --> <!-- end-user-doc -->
511 * @generated
513 public EReference getDiff_Conflict() {
514 return (EReference)diffEClass.getEStructuralFeatures().get(12);
518 * <!-- begin-user-doc --> <!-- end-user-doc -->
519 * @generated
521 public EClass getResourceAttachmentChange() {
522 return resourceAttachmentChangeEClass;
526 * <!-- begin-user-doc --> <!-- end-user-doc -->
527 * @generated
529 public EAttribute getResourceAttachmentChange_ResourceURI() {
530 return (EAttribute)resourceAttachmentChangeEClass.getEStructuralFeatures().get(0);
534 * <!-- begin-user-doc -->
535 * <!-- end-user-doc -->
536 * @generated
537 * @since 3.2
539 public EClass getResourceLocationChange() {
540 return resourceLocationChangeEClass;
544 * <!-- begin-user-doc -->
545 * <!-- end-user-doc -->
546 * @generated
547 * @since 3.2
549 public EAttribute getResourceLocationChange_BaseLocation() {
550 return (EAttribute)resourceLocationChangeEClass.getEStructuralFeatures().get(0);
554 * <!-- begin-user-doc -->
555 * <!-- end-user-doc -->
556 * @generated
557 * @since 3.2
559 public EAttribute getResourceLocationChange_ChangedLocation() {
560 return (EAttribute)resourceLocationChangeEClass.getEStructuralFeatures().get(1);
564 * <!-- begin-user-doc --> <!-- end-user-doc -->
565 * @generated
567 public EClass getReferenceChange() {
568 return referenceChangeEClass;
572 * <!-- begin-user-doc --> <!-- end-user-doc -->
573 * @generated
575 public EReference getReferenceChange_Reference() {
576 return (EReference)referenceChangeEClass.getEStructuralFeatures().get(0);
580 * <!-- begin-user-doc --> <!-- end-user-doc -->
581 * @generated
583 public EReference getReferenceChange_Value() {
584 return (EReference)referenceChangeEClass.getEStructuralFeatures().get(1);
588 * <!-- begin-user-doc --> <!-- end-user-doc -->
589 * @generated
591 public EClass getAttributeChange() {
592 return attributeChangeEClass;
596 * <!-- begin-user-doc --> <!-- end-user-doc -->
597 * @generated
599 public EReference getAttributeChange_Attribute() {
600 return (EReference)attributeChangeEClass.getEStructuralFeatures().get(0);
604 * <!-- begin-user-doc --> <!-- end-user-doc -->
605 * @generated
607 public EAttribute getAttributeChange_Value() {
608 return (EAttribute)attributeChangeEClass.getEStructuralFeatures().get(1);
612 * <!-- begin-user-doc --> <!-- end-user-doc -->
613 * @generated
614 * @since 3.2
616 public EClass getFeatureMapChange() {
617 return featureMapChangeEClass;
621 * <!-- begin-user-doc --> <!-- end-user-doc -->
622 * @generated
623 * @since 3.2
625 public EReference getFeatureMapChange_Attribute() {
626 return (EReference)featureMapChangeEClass.getEStructuralFeatures().get(0);
630 * <!-- begin-user-doc --> <!-- end-user-doc -->
631 * @generated
632 * @since 3.2
634 public EAttribute getFeatureMapChange_Value() {
635 return (EAttribute)featureMapChangeEClass.getEStructuralFeatures().get(1);
639 * <!-- begin-user-doc --> <!-- end-user-doc -->
640 * @generated
642 public EClass getConflict() {
643 return conflictEClass;
647 * <!-- begin-user-doc --> <!-- end-user-doc -->
648 * @generated
650 public EAttribute getConflict_Kind() {
651 return (EAttribute)conflictEClass.getEStructuralFeatures().get(0);
655 * <!-- begin-user-doc --> <!-- end-user-doc -->
656 * @generated
658 public EReference getConflict_Differences() {
659 return (EReference)conflictEClass.getEStructuralFeatures().get(1);
663 * <!-- begin-user-doc --> <!-- end-user-doc -->
664 * @generated
666 public EClass getEquivalence() {
667 return equivalenceEClass;
671 * <!-- begin-user-doc --> <!-- end-user-doc -->
672 * @generated
674 public EReference getEquivalence_Differences() {
675 return (EReference)equivalenceEClass.getEStructuralFeatures().get(0);
679 * <!-- begin-user-doc --> <!-- end-user-doc -->
680 * @generated
682 public EEnum getDifferenceKind() {
683 return differenceKindEEnum;
687 * <!-- begin-user-doc --> <!-- end-user-doc -->
688 * @generated
690 public EEnum getDifferenceSource() {
691 return differenceSourceEEnum;
695 * <!-- begin-user-doc --> <!-- end-user-doc -->
696 * @generated
698 public EEnum getDifferenceState() {
699 return differenceStateEEnum;
703 * <!-- begin-user-doc --> <!-- end-user-doc -->
704 * @generated
706 public EEnum getConflictKind() {
707 return conflictKindEEnum;
711 * <!-- begin-user-doc --> <!-- end-user-doc -->
712 * @generated
714 public EDataType getEIterable() {
715 return eIterableEDataType;
719 * <!-- begin-user-doc --> <!-- end-user-doc -->
720 * @generated
722 public EDataType getIEqualityHelper() {
723 return iEqualityHelperEDataType;
727 * <!-- begin-user-doc --> <!-- end-user-doc -->
728 * @generated
730 public EDataType getDiagnostic() {
731 return diagnosticEDataType;
735 * <!-- begin-user-doc --> <!-- end-user-doc -->
736 * @generated
738 public CompareFactory getCompareFactory() {
739 return (CompareFactory)getEFactoryInstance();
743 * <!-- begin-user-doc --> <!-- end-user-doc -->
744 * @generated
746 private boolean isCreated = false;
749 * Creates the meta-model objects for the package. This method is
750 * guarded to have no affect on any invocation but its first.
751 * <!-- begin-user-doc --> <!-- end-user-doc -->
752 * @generated
754 public void createPackageContents() {
755 if (isCreated)
756 return;
757 isCreated = true;
759 // Create classes and their features
760 comparisonEClass = createEClass(COMPARISON);
761 createEReference(comparisonEClass, COMPARISON__MATCHED_RESOURCES);
762 createEReference(comparisonEClass, COMPARISON__MATCHES);
763 createEReference(comparisonEClass, COMPARISON__CONFLICTS);
764 createEReference(comparisonEClass, COMPARISON__EQUIVALENCES);
765 createEAttribute(comparisonEClass, COMPARISON__THREE_WAY);
766 createEAttribute(comparisonEClass, COMPARISON__DIAGNOSTIC);
768 matchResourceEClass = createEClass(MATCH_RESOURCE);
769 createEAttribute(matchResourceEClass, MATCH_RESOURCE__LEFT_URI);
770 createEAttribute(matchResourceEClass, MATCH_RESOURCE__RIGHT_URI);
771 createEAttribute(matchResourceEClass, MATCH_RESOURCE__ORIGIN_URI);
772 createEAttribute(matchResourceEClass, MATCH_RESOURCE__LEFT);
773 createEAttribute(matchResourceEClass, MATCH_RESOURCE__RIGHT);
774 createEAttribute(matchResourceEClass, MATCH_RESOURCE__ORIGIN);
775 createEReference(matchResourceEClass, MATCH_RESOURCE__COMPARISON);
776 createEReference(matchResourceEClass, MATCH_RESOURCE__LOCATION_CHANGES);
778 matchEClass = createEClass(MATCH);
779 createEReference(matchEClass, MATCH__SUBMATCHES);
780 createEReference(matchEClass, MATCH__DIFFERENCES);
781 createEReference(matchEClass, MATCH__LEFT);
782 createEReference(matchEClass, MATCH__RIGHT);
783 createEReference(matchEClass, MATCH__ORIGIN);
785 diffEClass = createEClass(DIFF);
786 createEReference(diffEClass, DIFF__MATCH);
787 createEReference(diffEClass, DIFF__REQUIRES);
788 createEReference(diffEClass, DIFF__REQUIRED_BY);
789 createEReference(diffEClass, DIFF__IMPLIES);
790 createEReference(diffEClass, DIFF__IMPLIED_BY);
791 createEReference(diffEClass, DIFF__REFINES);
792 createEReference(diffEClass, DIFF__REFINED_BY);
793 createEReference(diffEClass, DIFF__PRIME_REFINING);
794 createEAttribute(diffEClass, DIFF__KIND);
795 createEAttribute(diffEClass, DIFF__SOURCE);
796 createEAttribute(diffEClass, DIFF__STATE);
797 createEReference(diffEClass, DIFF__EQUIVALENCE);
798 createEReference(diffEClass, DIFF__CONFLICT);
800 resourceAttachmentChangeEClass = createEClass(RESOURCE_ATTACHMENT_CHANGE);
801 createEAttribute(resourceAttachmentChangeEClass, RESOURCE_ATTACHMENT_CHANGE__RESOURCE_URI);
803 resourceLocationChangeEClass = createEClass(RESOURCE_LOCATION_CHANGE);
804 createEAttribute(resourceLocationChangeEClass, RESOURCE_LOCATION_CHANGE__BASE_LOCATION);
805 createEAttribute(resourceLocationChangeEClass, RESOURCE_LOCATION_CHANGE__CHANGED_LOCATION);
807 referenceChangeEClass = createEClass(REFERENCE_CHANGE);
808 createEReference(referenceChangeEClass, REFERENCE_CHANGE__REFERENCE);
809 createEReference(referenceChangeEClass, REFERENCE_CHANGE__VALUE);
811 attributeChangeEClass = createEClass(ATTRIBUTE_CHANGE);
812 createEReference(attributeChangeEClass, ATTRIBUTE_CHANGE__ATTRIBUTE);
813 createEAttribute(attributeChangeEClass, ATTRIBUTE_CHANGE__VALUE);
815 featureMapChangeEClass = createEClass(FEATURE_MAP_CHANGE);
816 createEReference(featureMapChangeEClass, FEATURE_MAP_CHANGE__ATTRIBUTE);
817 createEAttribute(featureMapChangeEClass, FEATURE_MAP_CHANGE__VALUE);
819 conflictEClass = createEClass(CONFLICT);
820 createEAttribute(conflictEClass, CONFLICT__KIND);
821 createEReference(conflictEClass, CONFLICT__DIFFERENCES);
823 equivalenceEClass = createEClass(EQUIVALENCE);
824 createEReference(equivalenceEClass, EQUIVALENCE__DIFFERENCES);
826 // Create enums
827 differenceKindEEnum = createEEnum(DIFFERENCE_KIND);
828 differenceSourceEEnum = createEEnum(DIFFERENCE_SOURCE);
829 differenceStateEEnum = createEEnum(DIFFERENCE_STATE);
830 conflictKindEEnum = createEEnum(CONFLICT_KIND);
832 // Create data types
833 eIterableEDataType = createEDataType(EITERABLE);
834 iEqualityHelperEDataType = createEDataType(IEQUALITY_HELPER);
835 diagnosticEDataType = createEDataType(DIAGNOSTIC);
839 * <!-- begin-user-doc --> <!-- end-user-doc -->
840 * @generated
842 private boolean isInitialized = false;
845 * Complete the initialization of the package and its meta-model. This
846 * method is guarded to have no affect on any invocation but its first.
847 * <!-- begin-user-doc --> <!-- end-user-doc -->
848 * @generated
850 public void initializePackageContents() {
851 if (isInitialized)
852 return;
853 isInitialized = true;
855 // Initialize package
856 setName(eNAME);
857 setNsPrefix(eNS_PREFIX);
858 setNsURI(eNS_URI);
860 // Obtain other dependent packages
861 EcorePackage theEcorePackage = (EcorePackage)EPackage.Registry.INSTANCE
862 .getEPackage(EcorePackage.eNS_URI);
864 // Create type parameters
865 addETypeParameter(eIterableEDataType, "T"); //$NON-NLS-1$
867 // Set bounds for type parameters
869 // Add supertypes to classes
870 resourceAttachmentChangeEClass.getESuperTypes().add(this.getDiff());
871 resourceLocationChangeEClass.getESuperTypes().add(this.getDiff());
872 referenceChangeEClass.getESuperTypes().add(this.getDiff());
873 attributeChangeEClass.getESuperTypes().add(this.getDiff());
874 featureMapChangeEClass.getESuperTypes().add(this.getDiff());
876 // Initialize classes and features; add operations and parameters
877 initEClass(comparisonEClass, Comparison.class,
878 "Comparison", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$
879 initEReference(
880 getComparison_MatchedResources(),
881 this.getMatchResource(),
882 this.getMatchResource_Comparison(),
883 "matchedResources", null, 0, -1, Comparison.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$
884 initEReference(
885 getComparison_Matches(),
886 this.getMatch(),
887 null,
888 "matches", null, 0, -1, Comparison.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$
889 initEReference(
890 getComparison_Conflicts(),
891 this.getConflict(),
892 null,
893 "conflicts", null, 0, -1, Comparison.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$
894 initEReference(
895 getComparison_Equivalences(),
896 this.getEquivalence(),
897 null,
898 "equivalences", null, 0, -1, Comparison.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$
899 initEAttribute(
900 getComparison_ThreeWay(),
901 ecorePackage.getEBoolean(),
902 "threeWay", null, 0, 1, Comparison.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$
903 initEAttribute(
904 getComparison_Diagnostic(),
905 this.getDiagnostic(),
906 "diagnostic", null, 0, 1, Comparison.class, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$
908 addEOperation(comparisonEClass, this.getDiff(), "getDifferences", 0, -1, IS_UNIQUE, IS_ORDERED); //$NON-NLS-1$
910 EOperation op = addEOperation(comparisonEClass, this.getDiff(),
911 "getDifferences", 0, -1, IS_UNIQUE, IS_ORDERED); //$NON-NLS-1$
912 addEParameter(op, theEcorePackage.getEObject(), "element", 0, 1, IS_UNIQUE, IS_ORDERED); //$NON-NLS-1$
914 op = addEOperation(comparisonEClass, this.getMatch(), "getMatch", 0, 1, IS_UNIQUE, IS_ORDERED); //$NON-NLS-1$
915 addEParameter(op, theEcorePackage.getEObject(), "element", 0, 1, IS_UNIQUE, IS_ORDERED); //$NON-NLS-1$
917 addEOperation(comparisonEClass, this.getIEqualityHelper(),
918 "getEqualityHelper", 0, 1, IS_UNIQUE, IS_ORDERED); //$NON-NLS-1$
920 initEClass(matchResourceEClass, MatchResource.class,
921 "MatchResource", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$
922 initEAttribute(
923 getMatchResource_LeftURI(),
924 ecorePackage.getEString(),
925 "leftURI", null, 1, 1, MatchResource.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$
926 initEAttribute(
927 getMatchResource_RightURI(),
928 ecorePackage.getEString(),
929 "rightURI", null, 1, 1, MatchResource.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$
930 initEAttribute(
931 getMatchResource_OriginURI(),
932 ecorePackage.getEString(),
933 "originURI", null, 0, 1, MatchResource.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$
934 initEAttribute(
935 getMatchResource_Left(),
936 theEcorePackage.getEResource(),
937 "left", null, 0, 1, MatchResource.class, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$
938 initEAttribute(
939 getMatchResource_Right(),
940 theEcorePackage.getEResource(),
941 "right", null, 0, 1, MatchResource.class, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$
942 initEAttribute(
943 getMatchResource_Origin(),
944 theEcorePackage.getEResource(),
945 "origin", null, 0, 1, MatchResource.class, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$
946 initEReference(
947 getMatchResource_Comparison(),
948 this.getComparison(),
949 this.getComparison_MatchedResources(),
950 "comparison", null, 0, 1, MatchResource.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$
951 initEReference(
952 getMatchResource_LocationChanges(),
953 this.getResourceLocationChange(),
954 null,
955 "locationChanges", null, 0, 2, MatchResource.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$
957 initEClass(matchEClass, Match.class,
958 "Match", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$
959 initEReference(
960 getMatch_Submatches(),
961 this.getMatch(),
962 null,
963 "submatches", null, 0, -1, Match.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$
964 initEReference(
965 getMatch_Differences(),
966 this.getDiff(),
967 null,
968 "differences", null, 0, -1, Match.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$
969 initEReference(
970 getMatch_Left(),
971 ecorePackage.getEObject(),
972 null,
973 "left", null, 0, 1, Match.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$
974 initEReference(
975 getMatch_Right(),
976 ecorePackage.getEObject(),
977 null,
978 "right", null, 0, 1, Match.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$
979 initEReference(
980 getMatch_Origin(),
981 ecorePackage.getEObject(),
982 null,
983 "origin", null, 0, 1, Match.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$
985 addEOperation(matchEClass, this.getComparison(), "getComparison", 0, 1, IS_UNIQUE, IS_ORDERED); //$NON-NLS-1$
987 op = addEOperation(matchEClass, null, "getAllSubmatches", 0, 1, IS_UNIQUE, IS_ORDERED); //$NON-NLS-1$
988 EGenericType g1 = createEGenericType(this.getEIterable());
989 EGenericType g2 = createEGenericType(this.getMatch());
990 g1.getETypeArguments().add(g2);
991 initEOperation(op, g1);
993 op = addEOperation(matchEClass, null, "getAllDifferences", 0, 1, IS_UNIQUE, IS_ORDERED); //$NON-NLS-1$
994 g1 = createEGenericType(this.getEIterable());
995 g2 = createEGenericType(this.getDiff());
996 g1.getETypeArguments().add(g2);
997 initEOperation(op, g1);
999 initEClass(diffEClass, Diff.class, "Diff", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$
1000 initEReference(
1001 getDiff_Match(),
1002 this.getMatch(),
1003 null,
1004 "match", null, 0, 1, Diff.class, IS_TRANSIENT, IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED); //$NON-NLS-1$
1005 initEReference(
1006 getDiff_Requires(),
1007 this.getDiff(),
1008 this.getDiff_RequiredBy(),
1009 "requires", null, 0, -1, Diff.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$
1010 initEReference(
1011 getDiff_RequiredBy(),
1012 this.getDiff(),
1013 this.getDiff_Requires(),
1014 "requiredBy", null, 0, -1, Diff.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$
1015 initEReference(
1016 getDiff_Implies(),
1017 this.getDiff(),
1018 this.getDiff_ImpliedBy(),
1019 "implies", null, 0, -1, Diff.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$
1020 initEReference(
1021 getDiff_ImpliedBy(),
1022 this.getDiff(),
1023 this.getDiff_Implies(),
1024 "impliedBy", null, 0, -1, Diff.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$
1025 initEReference(
1026 getDiff_Refines(),
1027 this.getDiff(),
1028 this.getDiff_RefinedBy(),
1029 "refines", null, 0, -1, Diff.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$
1030 initEReference(
1031 getDiff_RefinedBy(),
1032 this.getDiff(),
1033 this.getDiff_Refines(),
1034 "refinedBy", null, 0, -1, Diff.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$
1035 initEReference(
1036 getDiff_PrimeRefining(),
1037 this.getDiff(),
1038 null,
1039 "primeRefining", null, 0, 1, Diff.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED); //$NON-NLS-1$
1040 initEAttribute(
1041 getDiff_Kind(),
1042 this.getDifferenceKind(),
1043 "kind", null, 1, 1, Diff.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$
1044 initEAttribute(
1045 getDiff_Source(),
1046 this.getDifferenceSource(),
1047 "source", null, 1, 1, Diff.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$
1048 initEAttribute(
1049 getDiff_State(),
1050 this.getDifferenceState(),
1051 "state", null, 1, 1, Diff.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$
1052 initEReference(
1053 getDiff_Equivalence(),
1054 this.getEquivalence(),
1055 this.getEquivalence_Differences(),
1056 "equivalence", null, 0, 1, Diff.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$
1057 initEReference(
1058 getDiff_Conflict(),
1059 this.getConflict(),
1060 this.getConflict_Differences(),
1061 "conflict", null, 0, 1, Diff.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$
1063 addEOperation(diffEClass, null, "copyRightToLeft", 0, 1, IS_UNIQUE, IS_ORDERED); //$NON-NLS-1$
1065 addEOperation(diffEClass, null, "copyLeftToRight", 0, 1, IS_UNIQUE, IS_ORDERED); //$NON-NLS-1$
1067 addEOperation(diffEClass, null, "discard", 0, 1, IS_UNIQUE, IS_ORDERED); //$NON-NLS-1$
1069 initEClass(resourceAttachmentChangeEClass, ResourceAttachmentChange.class,
1070 "ResourceAttachmentChange", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$
1071 initEAttribute(
1072 getResourceAttachmentChange_ResourceURI(),
1073 ecorePackage.getEString(),
1074 "resourceURI", null, 1, 1, ResourceAttachmentChange.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$
1076 initEClass(resourceLocationChangeEClass, ResourceLocationChange.class,
1077 "ResourceLocationChange", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$
1078 initEAttribute(
1079 getResourceLocationChange_BaseLocation(),
1080 ecorePackage.getEString(),
1081 "baseLocation", null, 1, 1, ResourceLocationChange.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$
1082 initEAttribute(
1083 getResourceLocationChange_ChangedLocation(),
1084 ecorePackage.getEString(),
1085 "changedLocation", null, 1, 1, ResourceLocationChange.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$
1087 initEClass(referenceChangeEClass, ReferenceChange.class,
1088 "ReferenceChange", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$
1089 initEReference(
1090 getReferenceChange_Reference(),
1091 theEcorePackage.getEReference(),
1092 null,
1093 "reference", null, 1, 1, ReferenceChange.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$
1094 initEReference(
1095 getReferenceChange_Value(),
1096 theEcorePackage.getEObject(),
1097 null,
1098 "value", null, 0, 1, ReferenceChange.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$
1100 initEClass(attributeChangeEClass, AttributeChange.class,
1101 "AttributeChange", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$
1102 initEReference(
1103 getAttributeChange_Attribute(),
1104 theEcorePackage.getEAttribute(),
1105 null,
1106 "attribute", null, 1, 1, AttributeChange.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$
1107 initEAttribute(
1108 getAttributeChange_Value(),
1109 theEcorePackage.getEJavaObject(),
1110 "value", null, 0, 1, AttributeChange.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$
1112 initEClass(featureMapChangeEClass, FeatureMapChange.class,
1113 "FeatureMapChange", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$
1114 initEReference(
1115 getFeatureMapChange_Attribute(),
1116 theEcorePackage.getEAttribute(),
1117 null,
1118 "attribute", null, 1, 1, FeatureMapChange.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$
1119 initEAttribute(
1120 getFeatureMapChange_Value(),
1121 theEcorePackage.getEJavaObject(),
1122 "value", null, 0, 1, FeatureMapChange.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$
1124 initEClass(conflictEClass, Conflict.class,
1125 "Conflict", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$
1126 initEAttribute(
1127 getConflict_Kind(),
1128 this.getConflictKind(),
1129 "kind", null, 1, 1, Conflict.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$
1130 initEReference(
1131 getConflict_Differences(),
1132 this.getDiff(),
1133 this.getDiff_Conflict(),
1134 "differences", null, 2, -1, Conflict.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$
1136 addEOperation(conflictEClass, this.getDiff(), "getLeftDifferences", 1, -1, IS_UNIQUE, IS_ORDERED); //$NON-NLS-1$
1138 addEOperation(conflictEClass, this.getDiff(), "getRightDifferences", 1, -1, IS_UNIQUE, IS_ORDERED); //$NON-NLS-1$
1140 initEClass(equivalenceEClass, Equivalence.class,
1141 "Equivalence", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$
1142 initEReference(
1143 getEquivalence_Differences(),
1144 this.getDiff(),
1145 this.getDiff_Equivalence(),
1146 "differences", null, 2, -1, Equivalence.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$
1148 // Initialize enums and add enum literals
1149 initEEnum(differenceKindEEnum, DifferenceKind.class, "DifferenceKind"); //$NON-NLS-1$
1150 addEEnumLiteral(differenceKindEEnum, DifferenceKind.ADD);
1151 addEEnumLiteral(differenceKindEEnum, DifferenceKind.DELETE);
1152 addEEnumLiteral(differenceKindEEnum, DifferenceKind.CHANGE);
1153 addEEnumLiteral(differenceKindEEnum, DifferenceKind.MOVE);
1155 initEEnum(differenceSourceEEnum, DifferenceSource.class, "DifferenceSource"); //$NON-NLS-1$
1156 addEEnumLiteral(differenceSourceEEnum, DifferenceSource.LEFT);
1157 addEEnumLiteral(differenceSourceEEnum, DifferenceSource.RIGHT);
1159 initEEnum(differenceStateEEnum, DifferenceState.class, "DifferenceState"); //$NON-NLS-1$
1160 addEEnumLiteral(differenceStateEEnum, DifferenceState.UNRESOLVED);
1161 addEEnumLiteral(differenceStateEEnum, DifferenceState.MERGED);
1162 addEEnumLiteral(differenceStateEEnum, DifferenceState.DISCARDED);
1164 initEEnum(conflictKindEEnum, ConflictKind.class, "ConflictKind"); //$NON-NLS-1$
1165 addEEnumLiteral(conflictKindEEnum, ConflictKind.REAL);
1166 addEEnumLiteral(conflictKindEEnum, ConflictKind.PSEUDO);
1168 // Initialize data types
1169 initEDataType(eIterableEDataType, Iterable.class,
1170 "EIterable", IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$
1171 initEDataType(iEqualityHelperEDataType, IEqualityHelper.class,
1172 "IEqualityHelper", !IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$
1173 initEDataType(diagnosticEDataType, Diagnostic.class,
1174 "Diagnostic", !IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$
1176 // Create resource
1177 createResource(eNS_URI);
1180 } // ComparePackageImpl