Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/org.eclipse.emf.compare.uml2/src-gen/org/eclipse/emf/compare/uml2')
-rw-r--r--plugins/org.eclipse.emf.compare.uml2/src-gen/org/eclipse/emf/compare/uml2/internal/MultiplicityElementChange.java23
-rw-r--r--plugins/org.eclipse.emf.compare.uml2/src-gen/org/eclipse/emf/compare/uml2/internal/UMLCompareFactory.java9
-rw-r--r--plugins/org.eclipse.emf.compare.uml2/src-gen/org/eclipse/emf/compare/uml2/internal/UMLComparePackage.java204
-rw-r--r--plugins/org.eclipse.emf.compare.uml2/src-gen/org/eclipse/emf/compare/uml2/internal/impl/MultiplicityElementChangeImpl.java61
-rw-r--r--plugins/org.eclipse.emf.compare.uml2/src-gen/org/eclipse/emf/compare/uml2/internal/impl/UMLCompareFactoryImpl.java12
-rw-r--r--plugins/org.eclipse.emf.compare.uml2/src-gen/org/eclipse/emf/compare/uml2/internal/impl/UMLComparePackageImpl.java134
-rw-r--r--plugins/org.eclipse.emf.compare.uml2/src-gen/org/eclipse/emf/compare/uml2/internal/util/UMLCompareAdapterFactory.java19
-rw-r--r--plugins/org.eclipse.emf.compare.uml2/src-gen/org/eclipse/emf/compare/uml2/internal/util/UMLCompareSwitch.java26
8 files changed, 435 insertions, 53 deletions
diff --git a/plugins/org.eclipse.emf.compare.uml2/src-gen/org/eclipse/emf/compare/uml2/internal/MultiplicityElementChange.java b/plugins/org.eclipse.emf.compare.uml2/src-gen/org/eclipse/emf/compare/uml2/internal/MultiplicityElementChange.java
new file mode 100644
index 000000000..18f27d99b
--- /dev/null
+++ b/plugins/org.eclipse.emf.compare.uml2/src-gen/org/eclipse/emf/compare/uml2/internal/MultiplicityElementChange.java
@@ -0,0 +1,23 @@
+/**
+ * Copyright (c) 2012 Obeo.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Obeo - initial API and implementation
+ */
+package org.eclipse.emf.compare.uml2.internal;
+
+/**
+ * <!-- begin-user-doc --> A representation of the model object '<em><b>Multiplicity Element Change</b></em>
+ * '. <!-- end-user-doc -->
+ *
+ *
+ * @see org.eclipse.emf.compare.uml2.internal.UMLComparePackage#getMultiplicityElementChange()
+ * @model
+ * @generated
+ */
+public interface MultiplicityElementChange extends UMLDiff {
+} // MultiplicityElementChange
diff --git a/plugins/org.eclipse.emf.compare.uml2/src-gen/org/eclipse/emf/compare/uml2/internal/UMLCompareFactory.java b/plugins/org.eclipse.emf.compare.uml2/src-gen/org/eclipse/emf/compare/uml2/internal/UMLCompareFactory.java
index 7f62f99ca..24a6f31e5 100644
--- a/plugins/org.eclipse.emf.compare.uml2/src-gen/org/eclipse/emf/compare/uml2/internal/UMLCompareFactory.java
+++ b/plugins/org.eclipse.emf.compare.uml2/src-gen/org/eclipse/emf/compare/uml2/internal/UMLCompareFactory.java
@@ -151,6 +151,15 @@ public interface UMLCompareFactory extends EFactory {
DanglingStereotypeApplication createDanglingStereotypeApplication();
/**
+ * Returns a new object of class '<em>Multiplicity Element Change</em>'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return a new object of class '<em>Multiplicity Element Change</em>'.
+ * @generated
+ */
+ MultiplicityElementChange createMultiplicityElementChange();
+
+ /**
* Returns the package supported by this factory.
* <!-- begin-user-doc --> <!-- end-user-doc -->
* @return the package supported by this factory.
diff --git a/plugins/org.eclipse.emf.compare.uml2/src-gen/org/eclipse/emf/compare/uml2/internal/UMLComparePackage.java b/plugins/org.eclipse.emf.compare.uml2/src-gen/org/eclipse/emf/compare/uml2/internal/UMLComparePackage.java
index 50aaec75b..6b4600df0 100644
--- a/plugins/org.eclipse.emf.compare.uml2/src-gen/org/eclipse/emf/compare/uml2/internal/UMLComparePackage.java
+++ b/plugins/org.eclipse.emf.compare.uml2/src-gen/org/eclipse/emf/compare/uml2/internal/UMLComparePackage.java
@@ -69,7 +69,7 @@ public interface UMLComparePackage extends EPackage {
int UML_DIFF = 11;
/**
- * The feature id for the '<em><b>Match</b></em>' reference.
+ * The feature id for the '<em><b>Match</b></em>' container reference.
* <!-- begin-user-doc --> <!--
* end-user-doc -->
* @generated
@@ -220,7 +220,7 @@ public interface UMLComparePackage extends EPackage {
int ASSOCIATION_CHANGE = 0;
/**
- * The feature id for the '<em><b>Match</b></em>' reference.
+ * The feature id for the '<em><b>Match</b></em>' container reference.
* <!-- begin-user-doc --> <!--
* end-user-doc -->
* @generated
@@ -371,7 +371,7 @@ public interface UMLComparePackage extends EPackage {
int EXTEND_CHANGE = 1;
/**
- * The feature id for the '<em><b>Match</b></em>' reference.
+ * The feature id for the '<em><b>Match</b></em>' container reference.
* <!-- begin-user-doc --> <!--
* end-user-doc -->
* @generated
@@ -522,7 +522,7 @@ public interface UMLComparePackage extends EPackage {
int GENERALIZATION_SET_CHANGE = 2;
/**
- * The feature id for the '<em><b>Match</b></em>' reference.
+ * The feature id for the '<em><b>Match</b></em>' container reference.
* <!-- begin-user-doc --> <!--
* end-user-doc -->
* @generated
@@ -673,7 +673,7 @@ public interface UMLComparePackage extends EPackage {
int EXECUTION_SPECIFICATION_CHANGE = 3;
/**
- * The feature id for the '<em><b>Match</b></em>' reference.
+ * The feature id for the '<em><b>Match</b></em>' container reference.
* <!-- begin-user-doc --> <!--
* end-user-doc -->
* @generated
@@ -824,7 +824,7 @@ public interface UMLComparePackage extends EPackage {
int INTERVAL_CONSTRAINT_CHANGE = 4;
/**
- * The feature id for the '<em><b>Match</b></em>' reference.
+ * The feature id for the '<em><b>Match</b></em>' container reference.
* <!-- begin-user-doc --> <!--
* end-user-doc -->
* @generated
@@ -975,7 +975,7 @@ public interface UMLComparePackage extends EPackage {
int MESSAGE_CHANGE = 5;
/**
- * The feature id for the '<em><b>Match</b></em>' reference.
+ * The feature id for the '<em><b>Match</b></em>' container reference.
* <!-- begin-user-doc --> <!--
* end-user-doc -->
* @generated
@@ -1126,7 +1126,7 @@ public interface UMLComparePackage extends EPackage {
int STEREOTYPE_ATTRIBUTE_CHANGE = 6;
/**
- * The feature id for the '<em><b>Match</b></em>' reference.
+ * The feature id for the '<em><b>Match</b></em>' container reference.
* <!-- begin-user-doc --> <!--
* end-user-doc -->
* @generated
@@ -1277,7 +1277,7 @@ public interface UMLComparePackage extends EPackage {
int STEREOTYPE_APPLICATION_CHANGE = 7;
/**
- * The feature id for the '<em><b>Match</b></em>' reference.
+ * The feature id for the '<em><b>Match</b></em>' container reference.
* <!-- begin-user-doc --> <!--
* end-user-doc -->
* @generated
@@ -1437,7 +1437,7 @@ public interface UMLComparePackage extends EPackage {
int STEREOTYPE_REFERENCE_CHANGE = 8;
/**
- * The feature id for the '<em><b>Match</b></em>' reference.
+ * The feature id for the '<em><b>Match</b></em>' container reference.
* <!-- begin-user-doc --> <!--
* end-user-doc -->
* @generated
@@ -1588,7 +1588,7 @@ public interface UMLComparePackage extends EPackage {
int PROFILE_APPLICATION_CHANGE = 9;
/**
- * The feature id for the '<em><b>Match</b></em>' reference.
+ * The feature id for the '<em><b>Match</b></em>' container reference.
* <!-- begin-user-doc --> <!--
* end-user-doc -->
* @generated
@@ -1748,7 +1748,7 @@ public interface UMLComparePackage extends EPackage {
int DIRECTED_RELATIONSHIP_CHANGE = 10;
/**
- * The feature id for the '<em><b>Match</b></em>' reference.
+ * The feature id for the '<em><b>Match</b></em>' container reference.
* <!-- begin-user-doc --> <!--
* end-user-doc -->
* @generated
@@ -1899,7 +1899,7 @@ public interface UMLComparePackage extends EPackage {
int STEREOTYPED_ELEMENT_CHANGE = 12;
/**
- * The feature id for the '<em><b>Match</b></em>' reference.
+ * The feature id for the '<em><b>Match</b></em>' container reference.
* <!-- begin-user-doc --> <!--
* end-user-doc -->
* @generated
@@ -2050,7 +2050,7 @@ public interface UMLComparePackage extends EPackage {
int OPAQUE_ELEMENT_BODY_CHANGE = 13;
/**
- * The feature id for the '<em><b>Match</b></em>' reference.
+ * The feature id for the '<em><b>Match</b></em>' container reference.
* <!-- begin-user-doc --> <!--
* end-user-doc -->
* @generated
@@ -2211,7 +2211,7 @@ public interface UMLComparePackage extends EPackage {
int DANGLING_STEREOTYPE_APPLICATION = 14;
/**
- * The feature id for the '<em><b>Match</b></em>' reference.
+ * The feature id for the '<em><b>Match</b></em>' container reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
@@ -2364,6 +2364,160 @@ public interface UMLComparePackage extends EPackage {
int DANGLING_STEREOTYPE_APPLICATION_FEATURE_COUNT = ComparePackage.RESOURCE_ATTACHMENT_CHANGE_FEATURE_COUNT + 2;
/**
+ * The meta object id for the '{@link org.eclipse.emf.compare.uml2.internal.impl.MultiplicityElementChangeImpl <em>Multiplicity Element Change</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.emf.compare.uml2.internal.impl.MultiplicityElementChangeImpl
+ * @see org.eclipse.emf.compare.uml2.internal.impl.UMLComparePackageImpl#getMultiplicityElementChange()
+ * @generated
+ */
+ int MULTIPLICITY_ELEMENT_CHANGE = 15;
+
+ /**
+ * The feature id for the '<em><b>Match</b></em>' container reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int MULTIPLICITY_ELEMENT_CHANGE__MATCH = UML_DIFF__MATCH;
+
+ /**
+ * The feature id for the '<em><b>Requires</b></em>' reference list.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int MULTIPLICITY_ELEMENT_CHANGE__REQUIRES = UML_DIFF__REQUIRES;
+
+ /**
+ * The feature id for the '<em><b>Required By</b></em>' reference list.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int MULTIPLICITY_ELEMENT_CHANGE__REQUIRED_BY = UML_DIFF__REQUIRED_BY;
+
+ /**
+ * The feature id for the '<em><b>Implies</b></em>' reference list.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int MULTIPLICITY_ELEMENT_CHANGE__IMPLIES = UML_DIFF__IMPLIES;
+
+ /**
+ * The feature id for the '<em><b>Implied By</b></em>' reference list.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int MULTIPLICITY_ELEMENT_CHANGE__IMPLIED_BY = UML_DIFF__IMPLIED_BY;
+
+ /**
+ * The feature id for the '<em><b>Refines</b></em>' reference list.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int MULTIPLICITY_ELEMENT_CHANGE__REFINES = UML_DIFF__REFINES;
+
+ /**
+ * The feature id for the '<em><b>Refined By</b></em>' reference list.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int MULTIPLICITY_ELEMENT_CHANGE__REFINED_BY = UML_DIFF__REFINED_BY;
+
+ /**
+ * The feature id for the '<em><b>Prime Refining</b></em>' reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int MULTIPLICITY_ELEMENT_CHANGE__PRIME_REFINING = UML_DIFF__PRIME_REFINING;
+
+ /**
+ * The feature id for the '<em><b>Kind</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int MULTIPLICITY_ELEMENT_CHANGE__KIND = UML_DIFF__KIND;
+
+ /**
+ * The feature id for the '<em><b>Source</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int MULTIPLICITY_ELEMENT_CHANGE__SOURCE = UML_DIFF__SOURCE;
+
+ /**
+ * The feature id for the '<em><b>State</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int MULTIPLICITY_ELEMENT_CHANGE__STATE = UML_DIFF__STATE;
+
+ /**
+ * The feature id for the '<em><b>Equivalence</b></em>' reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int MULTIPLICITY_ELEMENT_CHANGE__EQUIVALENCE = UML_DIFF__EQUIVALENCE;
+
+ /**
+ * The feature id for the '<em><b>Conflict</b></em>' reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int MULTIPLICITY_ELEMENT_CHANGE__CONFLICT = UML_DIFF__CONFLICT;
+
+ /**
+ * The feature id for the '<em><b>Discriminant</b></em>' reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int MULTIPLICITY_ELEMENT_CHANGE__DISCRIMINANT = UML_DIFF__DISCRIMINANT;
+
+ /**
+ * The feature id for the '<em><b>EReference</b></em>' reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int MULTIPLICITY_ELEMENT_CHANGE__EREFERENCE = UML_DIFF__EREFERENCE;
+
+ /**
+ * The number of structural features of the '<em>Multiplicity Element Change</em>' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int MULTIPLICITY_ELEMENT_CHANGE_FEATURE_COUNT = UML_DIFF_FEATURE_COUNT + 0;
+
+ /**
* Returns the meta object for class '{@link org.eclipse.emf.compare.uml2.internal.AssociationChange <em>Association Change</em>}'.
* <!-- begin-user-doc --> <!-- end-user-doc -->
* @return the meta object for class '<em>Association Change</em>'.
@@ -2554,6 +2708,16 @@ public interface UMLComparePackage extends EPackage {
EClass getDanglingStereotypeApplication();
/**
+ * Returns the meta object for class '{@link org.eclipse.emf.compare.uml2.internal.MultiplicityElementChange <em>Multiplicity Element Change</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for class '<em>Multiplicity Element Change</em>'.
+ * @see org.eclipse.emf.compare.uml2.internal.MultiplicityElementChange
+ * @generated
+ */
+ EClass getMultiplicityElementChange();
+
+ /**
* Returns the factory that creates the instances of the model. <!-- begin-user-doc --> <!-- end-user-doc
* -->
*
@@ -2753,6 +2917,16 @@ public interface UMLComparePackage extends EPackage {
*/
EClass DANGLING_STEREOTYPE_APPLICATION = eINSTANCE.getDanglingStereotypeApplication();
+ /**
+ * The meta object literal for the '{@link org.eclipse.emf.compare.uml2.internal.impl.MultiplicityElementChangeImpl <em>Multiplicity Element Change</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.emf.compare.uml2.internal.impl.MultiplicityElementChangeImpl
+ * @see org.eclipse.emf.compare.uml2.internal.impl.UMLComparePackageImpl#getMultiplicityElementChange()
+ * @generated
+ */
+ EClass MULTIPLICITY_ELEMENT_CHANGE = eINSTANCE.getMultiplicityElementChange();
+
}
} // UMLComparePackage
diff --git a/plugins/org.eclipse.emf.compare.uml2/src-gen/org/eclipse/emf/compare/uml2/internal/impl/MultiplicityElementChangeImpl.java b/plugins/org.eclipse.emf.compare.uml2/src-gen/org/eclipse/emf/compare/uml2/internal/impl/MultiplicityElementChangeImpl.java
new file mode 100644
index 000000000..f0a198e92
--- /dev/null
+++ b/plugins/org.eclipse.emf.compare.uml2/src-gen/org/eclipse/emf/compare/uml2/internal/impl/MultiplicityElementChangeImpl.java
@@ -0,0 +1,61 @@
+/**
+ * Copyright (c) 2012 Obeo.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Obeo - initial API and implementation
+ */
+package org.eclipse.emf.compare.uml2.internal.impl;
+
+import org.eclipse.emf.compare.Diff;
+import org.eclipse.emf.compare.uml2.internal.MultiplicityElementChange;
+import org.eclipse.emf.compare.uml2.internal.UMLComparePackage;
+import org.eclipse.emf.compare.uml2.internal.spec.UMLDiffSpec;
+import org.eclipse.emf.ecore.EClass;
+
+/**
+ * <!-- begin-user-doc --> An implementation of the model object '<em><b>Multiplicity Element Change</b></em>
+ * '. <!-- end-user-doc -->
+ * <p>
+ * </p>
+ *
+ * @generated
+ */
+public class MultiplicityElementChangeImpl extends UMLDiffSpec implements MultiplicityElementChange {
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected MultiplicityElementChangeImpl() {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass() {
+ return UMLComparePackage.Literals.MULTIPLICITY_ELEMENT_CHANGE;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated NOT
+ */
+ @Override
+ public Diff getPrimeRefining() {
+ if (getRefinedBy().isEmpty()) {
+ return super.getPrimeRefining();
+ } else {
+ return getRefinedBy().get(0);
+ }
+ }
+
+} // MultiplicityElementChangeImpl
diff --git a/plugins/org.eclipse.emf.compare.uml2/src-gen/org/eclipse/emf/compare/uml2/internal/impl/UMLCompareFactoryImpl.java b/plugins/org.eclipse.emf.compare.uml2/src-gen/org/eclipse/emf/compare/uml2/internal/impl/UMLCompareFactoryImpl.java
index 6867e7a8b..631ddc778 100644
--- a/plugins/org.eclipse.emf.compare.uml2/src-gen/org/eclipse/emf/compare/uml2/internal/impl/UMLCompareFactoryImpl.java
+++ b/plugins/org.eclipse.emf.compare.uml2/src-gen/org/eclipse/emf/compare/uml2/internal/impl/UMLCompareFactoryImpl.java
@@ -99,6 +99,8 @@ public class UMLCompareFactoryImpl extends EFactoryImpl implements UMLCompareFac
return createOpaqueElementBodyChange();
case UMLComparePackage.DANGLING_STEREOTYPE_APPLICATION:
return createDanglingStereotypeApplication();
+ case UMLComparePackage.MULTIPLICITY_ELEMENT_CHANGE:
+ return createMultiplicityElementChange();
default:
throw new IllegalArgumentException(
"The class '" + eClass.getName() + "' is not a valid classifier"); //$NON-NLS-1$ //$NON-NLS-2$
@@ -234,6 +236,16 @@ public class UMLCompareFactoryImpl extends EFactoryImpl implements UMLCompareFac
}
/**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public MultiplicityElementChange createMultiplicityElementChange() {
+ MultiplicityElementChangeImpl multiplicityElementChange = new MultiplicityElementChangeImpl();
+ return multiplicityElementChange;
+ }
+
+ /**
* <!-- begin-user-doc --> <!-- end-user-doc -->
* @generated
*/
diff --git a/plugins/org.eclipse.emf.compare.uml2/src-gen/org/eclipse/emf/compare/uml2/internal/impl/UMLComparePackageImpl.java b/plugins/org.eclipse.emf.compare.uml2/src-gen/org/eclipse/emf/compare/uml2/internal/impl/UMLComparePackageImpl.java
index a6cf18c4e..6d7a7b7e0 100644
--- a/plugins/org.eclipse.emf.compare.uml2/src-gen/org/eclipse/emf/compare/uml2/internal/impl/UMLComparePackageImpl.java
+++ b/plugins/org.eclipse.emf.compare.uml2/src-gen/org/eclipse/emf/compare/uml2/internal/impl/UMLComparePackageImpl.java
@@ -19,6 +19,7 @@ import org.eclipse.emf.compare.uml2.internal.ExtendChange;
import org.eclipse.emf.compare.uml2.internal.GeneralizationSetChange;
import org.eclipse.emf.compare.uml2.internal.IntervalConstraintChange;
import org.eclipse.emf.compare.uml2.internal.MessageChange;
+import org.eclipse.emf.compare.uml2.internal.MultiplicityElementChange;
import org.eclipse.emf.compare.uml2.internal.OpaqueElementBodyChange;
import org.eclipse.emf.compare.uml2.internal.ProfileApplicationChange;
import org.eclipse.emf.compare.uml2.internal.StereotypeApplicationChange;
@@ -38,112 +39,130 @@ import org.eclipse.uml2.uml.UMLPackage;
/**
* <!-- begin-user-doc --> An implementation of the model <b>Package</b>. <!-- end-user-doc -->
+ *
* @generated
*/
public class UMLComparePackageImpl extends EPackageImpl implements UMLComparePackage {
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
* @generated
*/
private EClass associationChangeEClass = null;
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
* @generated
*/
private EClass extendChangeEClass = null;
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
* @generated
*/
private EClass generalizationSetChangeEClass = null;
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
* @generated
*/
private EClass executionSpecificationChangeEClass = null;
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
* @generated
*/
private EClass intervalConstraintChangeEClass = null;
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
* @generated
*/
private EClass messageChangeEClass = null;
/**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
* @generated
*/
private EClass stereotypeAttributeChangeEClass = null;
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
* @generated
*/
private EClass stereotypeApplicationChangeEClass = null;
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
* @generated
*/
private EClass stereotypeReferenceChangeEClass = null;
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
* @generated
*/
private EClass profileApplicationChangeEClass = null;
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
* @generated
*/
private EClass directedRelationshipChangeEClass = null;
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
* @generated
*/
private EClass umlDiffEClass = null;
/**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
* @generated
*/
private EClass stereotypedElementChangeEClass = null;
/**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
* @generated
*/
private EClass opaqueElementBodyChangeEClass = null;
/**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
* @generated
*/
private EClass danglingStereotypeApplicationEClass = null;
/**
- * Creates an instance of the model <b>Package</b>, registered with
- * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package
- * package URI value.
- * <p>Note: the correct way to create the package is via the static
- * factory method {@link #init init()}, which also performs
- * initialization of the package, or returns the registered package,
- * if one already exists.
* <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ private EClass multiplicityElementChangeEClass = null;
+
+ /**
+ * Creates an instance of the model <b>Package</b>, registered with
+ * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package package URI value.
+ * <p>
+ * Note: the correct way to create the package is via the static factory method {@link #init init()},
+ * which also performs initialization of the package, or returns the registered package, if one already
+ * exists. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
* @see org.eclipse.emf.ecore.EPackage.Registry
* @see org.eclipse.emf.compare.uml2.internal.UMLComparePackage#eNS_URI
* @see #init()
@@ -155,24 +174,28 @@ public class UMLComparePackageImpl extends EPackageImpl implements UMLComparePac
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
* @generated
*/
private static boolean isInited = false;
/**
- * Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends.
+ * Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it
+ * depends.
+ * <p>
+ * This method is used to initialize {@link UMLComparePackage#eINSTANCE} when that field is accessed.
+ * Clients should not invoke it directly. Instead, they should simply access that field to obtain the
+ * package. <!-- begin-user-doc --> <!-- end-user-doc -->
*
- * <p>This method is used to initialize {@link UMLComparePackage#eINSTANCE} when that field is accessed.
- * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
* @see #eNS_URI
* @see #createPackageContents()
* @see #initializePackageContents()
* @generated
*/
public static UMLComparePackage init() {
- if (isInited)
+ if (isInited) {
return (UMLComparePackage)EPackage.Registry.INSTANCE.getEPackage(UMLComparePackage.eNS_URI);
+ }
// Obtain or create and register package
UMLComparePackageImpl theUMLComparePackage = (UMLComparePackageImpl)(EPackage.Registry.INSTANCE
@@ -201,6 +224,7 @@ public class UMLComparePackageImpl extends EPackageImpl implements UMLComparePac
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
* @generated
*/
public EClass getAssociationChange() {
@@ -209,6 +233,7 @@ public class UMLComparePackageImpl extends EPackageImpl implements UMLComparePac
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
* @generated
*/
public EClass getExtendChange() {
@@ -217,6 +242,7 @@ public class UMLComparePackageImpl extends EPackageImpl implements UMLComparePac
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
* @generated
*/
public EClass getGeneralizationSetChange() {
@@ -225,6 +251,7 @@ public class UMLComparePackageImpl extends EPackageImpl implements UMLComparePac
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
* @generated
*/
public EClass getExecutionSpecificationChange() {
@@ -233,6 +260,7 @@ public class UMLComparePackageImpl extends EPackageImpl implements UMLComparePac
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
* @generated
*/
public EClass getIntervalConstraintChange() {
@@ -241,6 +269,7 @@ public class UMLComparePackageImpl extends EPackageImpl implements UMLComparePac
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
* @generated
*/
public EClass getMessageChange() {
@@ -248,8 +277,8 @@ public class UMLComparePackageImpl extends EPackageImpl implements UMLComparePac
}
/**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
* @generated
*/
public EClass getStereotypeAttributeChange() {
@@ -258,6 +287,7 @@ public class UMLComparePackageImpl extends EPackageImpl implements UMLComparePac
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
* @generated
*/
public EClass getStereotypeApplicationChange() {
@@ -266,6 +296,7 @@ public class UMLComparePackageImpl extends EPackageImpl implements UMLComparePac
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
* @generated
*/
public EReference getStereotypeApplicationChange_Stereotype() {
@@ -274,6 +305,7 @@ public class UMLComparePackageImpl extends EPackageImpl implements UMLComparePac
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
* @generated
*/
public EClass getStereotypeReferenceChange() {
@@ -282,6 +314,7 @@ public class UMLComparePackageImpl extends EPackageImpl implements UMLComparePac
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
* @generated
*/
public EClass getProfileApplicationChange() {
@@ -290,6 +323,7 @@ public class UMLComparePackageImpl extends EPackageImpl implements UMLComparePac
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
* @generated
*/
public EReference getProfileApplicationChange_Profile() {
@@ -298,6 +332,7 @@ public class UMLComparePackageImpl extends EPackageImpl implements UMLComparePac
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
* @generated
*/
public EClass getDirectedRelationshipChange() {
@@ -306,6 +341,7 @@ public class UMLComparePackageImpl extends EPackageImpl implements UMLComparePac
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
* @generated
*/
public EClass getUMLDiff() {
@@ -314,6 +350,7 @@ public class UMLComparePackageImpl extends EPackageImpl implements UMLComparePac
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
* @generated
*/
public EReference getUMLDiff_Discriminant() {
@@ -322,6 +359,7 @@ public class UMLComparePackageImpl extends EPackageImpl implements UMLComparePac
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
* @generated
*/
public EReference getUMLDiff_EReference() {
@@ -329,8 +367,8 @@ public class UMLComparePackageImpl extends EPackageImpl implements UMLComparePac
}
/**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
* @generated
*/
public EClass getStereotypedElementChange() {
@@ -338,8 +376,8 @@ public class UMLComparePackageImpl extends EPackageImpl implements UMLComparePac
}
/**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
* @generated
*/
public EClass getOpaqueElementBodyChange() {
@@ -347,8 +385,8 @@ public class UMLComparePackageImpl extends EPackageImpl implements UMLComparePac
}
/**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
* @generated
*/
public EAttribute getOpaqueElementBodyChange_Language() {
@@ -356,8 +394,8 @@ public class UMLComparePackageImpl extends EPackageImpl implements UMLComparePac
}
/**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
* @generated
*/
public EClass getDanglingStereotypeApplication() {
@@ -366,6 +404,16 @@ public class UMLComparePackageImpl extends EPackageImpl implements UMLComparePac
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EClass getMultiplicityElementChange() {
+ return multiplicityElementChangeEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
* @generated
*/
public UMLCompareFactory getUMLCompareFactory() {
@@ -374,19 +422,21 @@ public class UMLComparePackageImpl extends EPackageImpl implements UMLComparePac
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
* @generated
*/
private boolean isCreated = false;
/**
- * Creates the meta-model objects for the package. This method is
- * guarded to have no affect on any invocation but its first.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * Creates the meta-model objects for the package. This method is guarded to have no affect on any
+ * invocation but its first. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
* @generated
*/
public void createPackageContents() {
- if (isCreated)
+ if (isCreated) {
return;
+ }
isCreated = true;
// Create classes and their features
@@ -424,23 +474,27 @@ public class UMLComparePackageImpl extends EPackageImpl implements UMLComparePac
createEAttribute(opaqueElementBodyChangeEClass, OPAQUE_ELEMENT_BODY_CHANGE__LANGUAGE);
danglingStereotypeApplicationEClass = createEClass(DANGLING_STEREOTYPE_APPLICATION);
+
+ multiplicityElementChangeEClass = createEClass(MULTIPLICITY_ELEMENT_CHANGE);
}
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
* @generated
*/
private boolean isInitialized = false;
/**
- * Complete the initialization of the package and its meta-model. This
- * method is guarded to have no affect on any invocation but its first.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * Complete the initialization of the package and its meta-model. This method is guarded to have no affect
+ * on any invocation but its first. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
* @generated
*/
public void initializePackageContents() {
- if (isInitialized)
+ if (isInitialized) {
return;
+ }
isInitialized = true;
// Initialize package
@@ -477,6 +531,7 @@ public class UMLComparePackageImpl extends EPackageImpl implements UMLComparePac
danglingStereotypeApplicationEClass.getESuperTypes().add(
theComparePackage.getResourceAttachmentChange());
danglingStereotypeApplicationEClass.getESuperTypes().add(this.getUMLDiff());
+ multiplicityElementChangeEClass.getESuperTypes().add(this.getUMLDiff());
// Initialize classes and features; add operations and parameters
initEClass(associationChangeEClass, AssociationChange.class,
@@ -548,6 +603,9 @@ public class UMLComparePackageImpl extends EPackageImpl implements UMLComparePac
initEClass(danglingStereotypeApplicationEClass, DanglingStereotypeApplication.class,
"DanglingStereotypeApplication", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$
+ initEClass(multiplicityElementChangeEClass, MultiplicityElementChange.class,
+ "MultiplicityElementChange", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$
+
// Create resource
createResource(eNS_URI);
}
diff --git a/plugins/org.eclipse.emf.compare.uml2/src-gen/org/eclipse/emf/compare/uml2/internal/util/UMLCompareAdapterFactory.java b/plugins/org.eclipse.emf.compare.uml2/src-gen/org/eclipse/emf/compare/uml2/internal/util/UMLCompareAdapterFactory.java
index 7d63b8f76..870697aad 100644
--- a/plugins/org.eclipse.emf.compare.uml2/src-gen/org/eclipse/emf/compare/uml2/internal/util/UMLCompareAdapterFactory.java
+++ b/plugins/org.eclipse.emf.compare.uml2/src-gen/org/eclipse/emf/compare/uml2/internal/util/UMLCompareAdapterFactory.java
@@ -145,6 +145,11 @@ public class UMLCompareAdapterFactory extends AdapterFactoryImpl {
}
@Override
+ public Adapter caseMultiplicityElementChange(MultiplicityElementChange object) {
+ return createMultiplicityElementChangeAdapter();
+ }
+
+ @Override
public Adapter caseDiff(Diff object) {
return createDiffAdapter();
}
@@ -373,6 +378,20 @@ public class UMLCompareAdapterFactory extends AdapterFactoryImpl {
}
/**
+ * Creates a new adapter for an object of class '{@link org.eclipse.emf.compare.uml2.internal.MultiplicityElementChange <em>Multiplicity Element Change</em>}'.
+ * <!-- begin-user-doc -->
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ * <!-- end-user-doc -->
+ * @return the new adapter.
+ * @see org.eclipse.emf.compare.uml2.internal.MultiplicityElementChange
+ * @generated
+ */
+ public Adapter createMultiplicityElementChangeAdapter() {
+ return null;
+ }
+
+ /**
* Creates a new adapter for an object of class '{@link org.eclipse.emf.compare.Diff <em>Diff</em>}'. <!--
* begin-user-doc --> This default implementation returns null so that we can easily ignore cases; it's
* useful to ignore a case when inheritance will catch all the cases anyway. <!-- end-user-doc -->
diff --git a/plugins/org.eclipse.emf.compare.uml2/src-gen/org/eclipse/emf/compare/uml2/internal/util/UMLCompareSwitch.java b/plugins/org.eclipse.emf.compare.uml2/src-gen/org/eclipse/emf/compare/uml2/internal/util/UMLCompareSwitch.java
index 0b1c31129..6161766db 100644
--- a/plugins/org.eclipse.emf.compare.uml2/src-gen/org/eclipse/emf/compare/uml2/internal/util/UMLCompareSwitch.java
+++ b/plugins/org.eclipse.emf.compare.uml2/src-gen/org/eclipse/emf/compare/uml2/internal/util/UMLCompareSwitch.java
@@ -258,6 +258,17 @@ public class UMLCompareSwitch<T> {
result = defaultCase(theEObject);
return result;
}
+ case UMLComparePackage.MULTIPLICITY_ELEMENT_CHANGE: {
+ MultiplicityElementChange multiplicityElementChange = (MultiplicityElementChange)theEObject;
+ T result = caseMultiplicityElementChange(multiplicityElementChange);
+ if (result == null)
+ result = caseUMLDiff(multiplicityElementChange);
+ if (result == null)
+ result = caseDiff(multiplicityElementChange);
+ if (result == null)
+ result = defaultCase(theEObject);
+ return result;
+ }
default:
return defaultCase(theEObject);
}
@@ -475,6 +486,21 @@ public class UMLCompareSwitch<T> {
}
/**
+ * Returns the result of interpreting the object as an instance of '<em>Multiplicity Element Change</em>'.
+ * <!-- begin-user-doc -->
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ * <!-- end-user-doc -->
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of '<em>Multiplicity Element Change</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseMultiplicityElementChange(MultiplicityElementChange object) {
+ return null;
+ }
+
+ /**
* Returns the result of interpreting the object as an instance of '<em>Diff</em>'.
* <!-- begin-user-doc
* --> This implementation returns null; returning a non-null result will terminate the switch. <!--

Back to the top