Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArthur Daussy2014-06-16 08:38:02 -0400
committerAxel RICHARD2014-06-26 07:22:39 -0400
commita0520cf513fcc389b4334a30fc8474cab5cf3188 (patch)
treee2ff2e3d7cbb3da2214627dc370a21c2f7d8bb2b /plugins/org.eclipse.emf.compare.uml2.tests
parenta303c52c8c72655a1992ba039728fffdf88d8a60 (diff)
downloadorg.eclipse.emf.compare-a0520cf513fcc389b4334a30fc8474cab5cf3188.tar.gz
org.eclipse.emf.compare-a0520cf513fcc389b4334a30fc8474cab5cf3188.tar.xz
org.eclipse.emf.compare-a0520cf513fcc389b4334a30fc8474cab5cf3188.zip
Regenerates EMF Compare static test profile.
Regenerates the test profil to add 2 stereotypes. Updates to UML 2.5. Updates to EMF 2.10. Change-Id: I89996f74abe751ba8db06e7565cfa4a33345fef9 Signed-off-by: Arthur Daussy <arthur.daussy@obeo.fr>
Diffstat (limited to 'plugins/org.eclipse.emf.compare.uml2.tests')
-rw-r--r--plugins/org.eclipse.emf.compare.uml2.tests/META-INF/MANIFEST.MF4
-rw-r--r--plugins/org.eclipse.emf.compare.uml2.tests/model/UML2CompareTestProfile.genmodel31
-rw-r--r--plugins/org.eclipse.emf.compare.uml2.tests/model/uml2.compare.testprofile.profile.uml137
-rw-r--r--plugins/org.eclipse.emf.compare.uml2.tests/model/uml2comparetestprofile.ecore30
-rw-r--r--plugins/org.eclipse.emf.compare.uml2.tests/profile/org/eclipse/emf/compare/uml2/profile/test/uml2comparetestprofile/ACliche.java6
-rw-r--r--plugins/org.eclipse.emf.compare.uml2.tests/profile/org/eclipse/emf/compare/uml2/profile/test/uml2comparetestprofile/ACliche2.java195
-rw-r--r--plugins/org.eclipse.emf.compare.uml2.tests/profile/org/eclipse/emf/compare/uml2/profile/test/uml2comparetestprofile/ACliche3.java59
-rw-r--r--plugins/org.eclipse.emf.compare.uml2.tests/profile/org/eclipse/emf/compare/uml2/profile/test/uml2comparetestprofile/UML2CompareTestProfileFactory.java18
-rw-r--r--plugins/org.eclipse.emf.compare.uml2.tests/profile/org/eclipse/emf/compare/uml2/profile/test/uml2comparetestprofile/UML2CompareTestProfilePackage.java261
-rw-r--r--plugins/org.eclipse.emf.compare.uml2.tests/profile/org/eclipse/emf/compare/uml2/profile/test/uml2comparetestprofile/impl/ACliche2Impl.java426
-rw-r--r--plugins/org.eclipse.emf.compare.uml2.tests/profile/org/eclipse/emf/compare/uml2/profile/test/uml2comparetestprofile/impl/ACliche3Impl.java168
-rw-r--r--plugins/org.eclipse.emf.compare.uml2.tests/profile/org/eclipse/emf/compare/uml2/profile/test/uml2comparetestprofile/impl/AClicheImpl.java32
-rw-r--r--plugins/org.eclipse.emf.compare.uml2.tests/profile/org/eclipse/emf/compare/uml2/profile/test/uml2comparetestprofile/impl/UML2CompareTestProfileFactoryImpl.java33
-rw-r--r--plugins/org.eclipse.emf.compare.uml2.tests/profile/org/eclipse/emf/compare/uml2/profile/test/uml2comparetestprofile/impl/UML2CompareTestProfilePackageImpl.java207
-rw-r--r--plugins/org.eclipse.emf.compare.uml2.tests/profile/org/eclipse/emf/compare/uml2/profile/test/uml2comparetestprofile/util/UML2CompareTestProfileAdapterFactory.java41
-rw-r--r--plugins/org.eclipse.emf.compare.uml2.tests/profile/org/eclipse/emf/compare/uml2/profile/test/uml2comparetestprofile/util/UML2CompareTestProfileSwitch.java120
16 files changed, 1611 insertions, 157 deletions
diff --git a/plugins/org.eclipse.emf.compare.uml2.tests/META-INF/MANIFEST.MF b/plugins/org.eclipse.emf.compare.uml2.tests/META-INF/MANIFEST.MF
index 568c14b66..017ca9f3d 100644
--- a/plugins/org.eclipse.emf.compare.uml2.tests/META-INF/MANIFEST.MF
+++ b/plugins/org.eclipse.emf.compare.uml2.tests/META-INF/MANIFEST.MF
@@ -12,7 +12,9 @@ Export-Package: org.eclipse.emf.compare.uml2.profile.test.uml2comparetestprofile
org.eclipse.emf.compare.uml2.profile.test.uml2comparetestprofile.util,
org.eclipse.emf.compare.uml2.tests
Require-Bundle: org.eclipse.core.runtime,
- org.eclipse.uml2.uml;bundle-version="5.0.0",
+ org.eclipse.emf.ecore;visibility:=reexport,
+ org.eclipse.uml2.uml;bundle-version="5.0.0";visibility:=reexport,
+ org.eclipse.uml2.types;visibility:=reexport,
org.eclipse.uml2.uml.resources;bundle-version="5.0.0",
org.junit,
org.eclipse.emf.compare,
diff --git a/plugins/org.eclipse.emf.compare.uml2.tests/model/UML2CompareTestProfile.genmodel b/plugins/org.eclipse.emf.compare.uml2.tests/model/UML2CompareTestProfile.genmodel
index 52492c05e..bbaa1cb54 100644
--- a/plugins/org.eclipse.emf.compare.uml2.tests/model/UML2CompareTestProfile.genmodel
+++ b/plugins/org.eclipse.emf.compare.uml2.tests/model/UML2CompareTestProfile.genmodel
@@ -1,10 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
-<genmodel:GenModel xmi:version="2.0"
- xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" xmlns:genmodel="http://www.eclipse.org/uml2/2.2.0/GenModel" modelDirectory="/org.eclipse.emf.compare.uml2.tests/profile"
- modelPluginID="org.eclipse.emf.compare.uml2.tests" modelName="UML2CompareTestProfile"
- nonNLSMarkers="true" importerID="org.eclipse.uml2.uml.ecore.importer" complianceLevel="5.0"
- copyrightFields="false" usedGenPackages="platform:/plugin/org.eclipse.emf.ecore/model/Ecore.genmodel#//ecore platform:/plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml">
+<genmodel:GenModel xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" xmlns:genmodel="http://www.eclipse.org/uml2/2.2.0/GenModel"
+ modelDirectory="/org.eclipse.emf.compare.uml2.tests/profile" modelPluginID="org.eclipse.emf.compare.uml2.tests"
+ modelName="UML2CompareTestProfile" nonNLSMarkers="true" importerID="org.eclipse.uml2.uml.ecore.importer"
+ complianceLevel="5.0" copyrightFields="false" usedGenPackages="platform:/plugin/org.eclipse.emf.ecore/model/Ecore.genmodel#//ecore platform:/plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml platform:/plugin/org.eclipse.uml2.types/model/Types.genmodel#//types">
<genAnnotations source="http://www.eclipse.org/emf/2002/GenModel/importer/org.eclipse.uml2.uml.ecore.importer">
<details key="ECORE_TAGGED_VALUES" value="PROCESS"/>
<details key="UNION_PROPERTIES" value="REPORT"/>
@@ -22,6 +21,12 @@
<details key="OPERATION_BODIES" value="IGNORE"/>
<details key="CAMEL_CASE_NAMES" value="IGNORE"/>
<details key="SUPER_CLASS_ORDER" value="PROCESS"/>
+ <details key="OPPOSITE_ROLE_NAMES" value="IGNORE"/>
+ <details key="PROPERTY_DEFAULT_EXPRESSIONS" value="IGNORE"/>
+ <details key="NON_API_INVARIANTS" value="IGNORE"/>
+ <details key="UNTYPED_PROPERTIES" value="REPORT"/>
+ <details key="INVOCATION_DELEGATES" value="IGNORE"/>
+ <details key="VALIDATION_DELEGATES" value="IGNORE"/>
</genAnnotations>
<foreignModel>uml2.compare.testprofile.profile.uml</foreignModel>
<genPackages xsi:type="genmodel:GenPackage" prefix="UML2CompareTestProfile" basePackage="org.eclipse.emf.compare.uml2.profile.test"
@@ -36,5 +41,19 @@
<genFeatures xsi:type="genmodel:GenFeature" notify="false" createChild="false"
propertySortChoices="true" ecoreFeature="ecore:EReference uml2comparetestprofile.ecore#//ACliche/base_Class"/>
</genClasses>
+ <genClasses xsi:type="genmodel:GenClass" ecoreClass="uml2comparetestprofile.ecore#//ACliche2">
+ <genFeatures xsi:type="genmodel:GenFeature" createChild="false" ecoreFeature="ecore:EAttribute uml2comparetestprofile.ecore#//ACliche2/singleValuedAttribute"/>
+ <genFeatures xsi:type="genmodel:GenFeature" createChild="false" ecoreFeature="ecore:EAttribute uml2comparetestprofile.ecore#//ACliche2/manyValuedAttribute"/>
+ <genFeatures xsi:type="genmodel:GenFeature" notify="false" createChild="false"
+ propertySortChoices="true" ecoreFeature="ecore:EReference uml2comparetestprofile.ecore#//ACliche2/singleValuedReference"/>
+ <genFeatures xsi:type="genmodel:GenFeature" notify="false" createChild="false"
+ propertySortChoices="true" ecoreFeature="ecore:EReference uml2comparetestprofile.ecore#//ACliche2/manyValuedReference"/>
+ <genFeatures xsi:type="genmodel:GenFeature" notify="false" createChild="false"
+ propertySortChoices="true" ecoreFeature="ecore:EReference uml2comparetestprofile.ecore#//ACliche2/base_Class"/>
+ </genClasses>
+ <genClasses xsi:type="genmodel:GenClass" ecoreClass="uml2comparetestprofile.ecore#//ACliche3">
+ <genFeatures xsi:type="genmodel:GenFeature" notify="false" createChild="false"
+ propertySortChoices="true" ecoreFeature="ecore:EReference uml2comparetestprofile.ecore#//ACliche3/base_Class"/>
+ </genClasses>
</genPackages>
</genmodel:GenModel>
diff --git a/plugins/org.eclipse.emf.compare.uml2.tests/model/uml2.compare.testprofile.profile.uml b/plugins/org.eclipse.emf.compare.uml2.tests/model/uml2.compare.testprofile.profile.uml
index 69f851483..e3594d930 100644
--- a/plugins/org.eclipse.emf.compare.uml2.tests/model/uml2.compare.testprofile.profile.uml
+++ b/plugins/org.eclipse.emf.compare.uml2.tests/model/uml2.compare.testprofile.profile.uml
@@ -1,95 +1,148 @@
<?xml version="1.0" encoding="UTF-8"?>
-<xmi:XMI xmi:version="2.1" xmlns:xmi="http://schema.omg.org/spec/XMI/2.1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:Ecore="http://www.eclipse.org/uml2/schemas/Ecore/5" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" xmlns:uml="http://www.eclipse.org/uml2/4.0.0/UML" xsi:schemaLocation="http://www.eclipse.org/uml2/schemas/Ecore/5 pathmap://UML_PROFILES/Ecore.profile.uml#_z1OFcHjqEdy8S4Cr8Rc_NA">
+<xmi:XMI xmi:version="20131001" xmlns:xmi="http://www.omg.org/spec/XMI/20131001" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:Ecore="http://www.eclipse.org/uml2/schemas/Ecore/5" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" xmlns:uml="http://www.eclipse.org/uml2/5.0.0/UML" xsi:schemaLocation="http://www.eclipse.org/uml2/schemas/Ecore/5 pathmap://UML_PROFILES/Ecore.profile.uml#_z1OFcHjqEdy8S4Cr8Rc_NA">
<uml:Profile xmi:id="_hZFTgIwkEeC_FYHMbTTxXw" name="UML2CompareTestProfile" metaclassReference="_gHJYQIwpEeC_FYHMbTTxXw">
- <eAnnotations xmi:id="_DL47UCjtEeKqNZFxtZ0S6g" source="http://www.eclipse.org/uml2/2.0.0/UML">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_DL47UCjtEeKqNZFxtZ0S6g" source="http://www.eclipse.org/uml2/2.0.0/UML">
+ <contents xmi:type="ecore:EPackage" xmi:id="_59tLoPU0EeOznPU7N6uHbQ" name="uml2comparetestprofile" nsURI="http://www.eclipse.org/emf/compare/uml2/1.0.0/testprofile" nsPrefix="testProfile">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_59tysPU0EeOznPU7N6uHbQ" source="http://www.eclipse.org/uml2/2.0.0/UML">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_59tysfU0EeOznPU7N6uHbQ" key="originalName" value="UML2CompareTestProfile"/>
+ </eAnnotations>
+ <eClassifiers xmi:type="ecore:EClass" xmi:id="_59tysvU0EeOznPU7N6uHbQ" name="ACliche">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_59tys_U0EeOznPU7N6uHbQ" source="http://www.eclipse.org/uml2/2.0.0/UML" references="_wQjhQIwoEeC_FYHMbTTxXw"/>
+ <eStructuralFeatures xmi:type="ecore:EAttribute" xmi:id="_59tytPU0EeOznPU7N6uHbQ" name="singleValuedAttribute" ordered="false">
+ <eType xmi:type="ecore:EDataType" href="http://www.eclipse.org/uml2/5.0.0/Types#//String"/>
+ </eStructuralFeatures>
+ <eStructuralFeatures xmi:type="ecore:EAttribute" xmi:id="_59tytvU0EeOznPU7N6uHbQ" name="manyValuedAttribute" upperBound="-1">
+ <eType xmi:type="ecore:EDataType" href="http://www.eclipse.org/uml2/5.0.0/Types#//String"/>
+ </eStructuralFeatures>
+ <eStructuralFeatures xmi:type="ecore:EReference" xmi:id="_59tyuPU0EeOznPU7N6uHbQ" name="singleValuedReference" ordered="false">
+ <eType xmi:type="ecore:EClass" href="http://www.eclipse.org/uml2/5.0.0/UML#//Class"/>
+ </eStructuralFeatures>
+ <eStructuralFeatures xmi:type="ecore:EReference" xmi:id="_59tyuvU0EeOznPU7N6uHbQ" name="manyValuedReference" upperBound="-1">
+ <eType xmi:type="ecore:EClass" href="http://www.eclipse.org/uml2/5.0.0/UML#//Class"/>
+ </eStructuralFeatures>
+ <eStructuralFeatures xmi:type="ecore:EReference" xmi:id="_59tyvPU0EeOznPU7N6uHbQ" name="base_Class" ordered="false" lowerBound="1">
+ <eType xmi:type="ecore:EClass" href="http://www.eclipse.org/uml2/5.0.0/UML#//Class"/>
+ </eStructuralFeatures>
+ </eClassifiers>
+ <eClassifiers xmi:type="ecore:EClass" xmi:id="_59tyvvU0EeOznPU7N6uHbQ" name="ACliche2">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_59tyv_U0EeOznPU7N6uHbQ" source="http://www.eclipse.org/uml2/2.0.0/UML" references="_x0pRAPCBEeKBcNH8cCNzUg"/>
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_59tywPU0EeOznPU7N6uHbQ" source="duplicates">
+ <contents xmi:type="ecore:EReference" xmi:id="_59tywfU0EeOznPU7N6uHbQ" name="base_Class" ordered="false" lowerBound="1">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_59tywvU0EeOznPU7N6uHbQ" source="redefines" references="_59tyzPU0EeOznPU7N6uHbQ"/>
+ <eType xmi:type="ecore:EClass" href="http://www.eclipse.org/uml2/5.0.0/UML#//Class"/>
+ </contents>
+ </eAnnotations>
+ <eStructuralFeatures xmi:type="ecore:EAttribute" xmi:id="_59tyxPU0EeOznPU7N6uHbQ" name="singleValuedAttribute" ordered="false">
+ <eType xmi:type="ecore:EDataType" href="http://www.eclipse.org/uml2/5.0.0/Types#//String"/>
+ </eStructuralFeatures>
+ <eStructuralFeatures xmi:type="ecore:EAttribute" xmi:id="_59tyxvU0EeOznPU7N6uHbQ" name="manyValuedAttribute" upperBound="-1">
+ <eType xmi:type="ecore:EDataType" href="http://www.eclipse.org/uml2/5.0.0/Types#//String"/>
+ </eStructuralFeatures>
+ <eStructuralFeatures xmi:type="ecore:EReference" xmi:id="_59tyyPU0EeOznPU7N6uHbQ" name="singleValuedReference" ordered="false">
+ <eType xmi:type="ecore:EClass" href="http://www.eclipse.org/uml2/5.0.0/UML#//Class"/>
+ </eStructuralFeatures>
+ <eStructuralFeatures xmi:type="ecore:EReference" xmi:id="_59tyyvU0EeOznPU7N6uHbQ" name="manyValuedReference" upperBound="-1">
+ <eType xmi:type="ecore:EClass" href="http://www.eclipse.org/uml2/5.0.0/UML#//Class"/>
+ </eStructuralFeatures>
+ <eStructuralFeatures xmi:type="ecore:EReference" xmi:id="_59tyzPU0EeOznPU7N6uHbQ" name="base_Class" ordered="false" lowerBound="1">
+ <eType xmi:type="ecore:EClass" href="http://www.eclipse.org/uml2/5.0.0/UML#//Class"/>
+ </eStructuralFeatures>
+ </eClassifiers>
+ <eClassifiers xmi:type="ecore:EClass" xmi:id="_59tyzvU0EeOznPU7N6uHbQ" name="ACliche3">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_59tyz_U0EeOznPU7N6uHbQ" source="http://www.eclipse.org/uml2/2.0.0/UML" references="_yS8fYPU0EeOznPU7N6uHbQ"/>
+ <eStructuralFeatures xmi:type="ecore:EReference" xmi:id="_59ty0PU0EeOznPU7N6uHbQ" name="base_Class" ordered="false" lowerBound="1">
+ <eType xmi:type="ecore:EClass" href="http://www.eclipse.org/uml2/5.0.0/UML#//Class"/>
+ </eStructuralFeatures>
+ </eClassifiers>
+ </contents>
<contents xmi:type="ecore:EPackage" xmi:id="_OuZDgPCCEeKBcNH8cCNzUg" name="uml2comparetestprofile" nsURI="http://www.eclipse.org/emf/compare/uml2/1.0.0/testprofile" nsPrefix="testProfile">
<eClassifiers xmi:type="ecore:EClass" xmi:id="_OuZDgfCCEeKBcNH8cCNzUg" name="ACliche">
- <eAnnotations xmi:id="_OuZDgvCCEeKBcNH8cCNzUg" source="http://www.eclipse.org/uml2/2.0.0/UML" references="_wQjhQIwoEeC_FYHMbTTxXw"/>
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_OuZDgvCCEeKBcNH8cCNzUg" source="http://www.eclipse.org/uml2/2.0.0/UML" references="_wQjhQIwoEeC_FYHMbTTxXw"/>
<eStructuralFeatures xmi:type="ecore:EAttribute" xmi:id="_OuZDg_CCEeKBcNH8cCNzUg" name="singleValuedAttribute" ordered="false">
- <eType xmi:type="ecore:EDataType" href="http://www.eclipse.org/uml2/4.0.0/Types#//String"/>
+ <eType xmi:type="ecore:EDataType" href="http://www.eclipse.org/uml2/5.0.0/Types#//String"/>
</eStructuralFeatures>
<eStructuralFeatures xmi:type="ecore:EAttribute" xmi:id="_OuZDhfCCEeKBcNH8cCNzUg" name="manyValuedAttribute" upperBound="-1">
- <eType xmi:type="ecore:EDataType" href="http://www.eclipse.org/uml2/4.0.0/Types#//String"/>
+ <eType xmi:type="ecore:EDataType" href="http://www.eclipse.org/uml2/5.0.0/Types#//String"/>
</eStructuralFeatures>
<eStructuralFeatures xmi:type="ecore:EReference" xmi:id="_OuZDh_CCEeKBcNH8cCNzUg" name="singleValuedReference" ordered="false">
- <eType xmi:type="ecore:EClass" href="http://www.eclipse.org/uml2/4.0.0/UML#//Class"/>
+ <eType xmi:type="ecore:EClass" href="http://www.eclipse.org/uml2/5.0.0/UML#//Class"/>
</eStructuralFeatures>
<eStructuralFeatures xmi:type="ecore:EReference" xmi:id="_OuZDifCCEeKBcNH8cCNzUg" name="manyValuedReference" upperBound="-1">
- <eType xmi:type="ecore:EClass" href="http://www.eclipse.org/uml2/4.0.0/UML#//Class"/>
+ <eType xmi:type="ecore:EClass" href="http://www.eclipse.org/uml2/5.0.0/UML#//Class"/>
</eStructuralFeatures>
<eStructuralFeatures xmi:type="ecore:EReference" xmi:id="_OuZDi_CCEeKBcNH8cCNzUg" name="base_Class" ordered="false" lowerBound="1">
- <eType xmi:type="ecore:EClass" href="http://www.eclipse.org/uml2/4.0.0/UML#//Class"/>
+ <eType xmi:type="ecore:EClass" href="http://www.eclipse.org/uml2/5.0.0/UML#//Class"/>
</eStructuralFeatures>
</eClassifiers>
<eClassifiers xmi:type="ecore:EClass" xmi:id="_OuZDjfCCEeKBcNH8cCNzUg" name="ACliche2">
- <eAnnotations xmi:id="_OuZDjvCCEeKBcNH8cCNzUg" source="http://www.eclipse.org/uml2/2.0.0/UML" references="_x0pRAPCBEeKBcNH8cCNzUg"/>
- <eAnnotations xmi:id="_OuZDj_CCEeKBcNH8cCNzUg" source="duplicates">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_OuZDjvCCEeKBcNH8cCNzUg" source="http://www.eclipse.org/uml2/2.0.0/UML" references="_x0pRAPCBEeKBcNH8cCNzUg"/>
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_OuZDj_CCEeKBcNH8cCNzUg" source="duplicates">
<contents xmi:type="ecore:EReference" xmi:id="_OuZDkPCCEeKBcNH8cCNzUg" name="base_Class" ordered="false" lowerBound="1">
- <eAnnotations xmi:id="_OuZDkfCCEeKBcNH8cCNzUg" source="redefines" references="_OuZDm_CCEeKBcNH8cCNzUg"/>
- <eType xmi:type="ecore:EClass" href="http://www.eclipse.org/uml2/4.0.0/UML#//Class"/>
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_OuZDkfCCEeKBcNH8cCNzUg" source="redefines" references="_OuZDm_CCEeKBcNH8cCNzUg"/>
+ <eType xmi:type="ecore:EClass" href="http://www.eclipse.org/uml2/5.0.0/UML#//Class"/>
</contents>
</eAnnotations>
<eStructuralFeatures xmi:type="ecore:EAttribute" xmi:id="_OuZDk_CCEeKBcNH8cCNzUg" name="singleValuedAttribute" ordered="false">
- <eType xmi:type="ecore:EDataType" href="http://www.eclipse.org/uml2/4.0.0/Types#//String"/>
+ <eType xmi:type="ecore:EDataType" href="http://www.eclipse.org/uml2/5.0.0/Types#//String"/>
</eStructuralFeatures>
<eStructuralFeatures xmi:type="ecore:EAttribute" xmi:id="_OuZDlfCCEeKBcNH8cCNzUg" name="manyValuedAttribute" upperBound="-1">
- <eType xmi:type="ecore:EDataType" href="http://www.eclipse.org/uml2/4.0.0/Types#//String"/>
+ <eType xmi:type="ecore:EDataType" href="http://www.eclipse.org/uml2/5.0.0/Types#//String"/>
</eStructuralFeatures>
<eStructuralFeatures xmi:type="ecore:EReference" xmi:id="_OuZDl_CCEeKBcNH8cCNzUg" name="singleValuedReference" ordered="false">
- <eType xmi:type="ecore:EClass" href="http://www.eclipse.org/uml2/4.0.0/UML#//Class"/>
+ <eType xmi:type="ecore:EClass" href="http://www.eclipse.org/uml2/5.0.0/UML#//Class"/>
</eStructuralFeatures>
<eStructuralFeatures xmi:type="ecore:EReference" xmi:id="_OuZDmfCCEeKBcNH8cCNzUg" name="manyValuedReference" upperBound="-1">
- <eType xmi:type="ecore:EClass" href="http://www.eclipse.org/uml2/4.0.0/UML#//Class"/>
+ <eType xmi:type="ecore:EClass" href="http://www.eclipse.org/uml2/5.0.0/UML#//Class"/>
</eStructuralFeatures>
<eStructuralFeatures xmi:type="ecore:EReference" xmi:id="_OuZDm_CCEeKBcNH8cCNzUg" name="base_Class" ordered="false" lowerBound="1">
- <eType xmi:type="ecore:EClass" href="http://www.eclipse.org/uml2/4.0.0/UML#//Class"/>
+ <eType xmi:type="ecore:EClass" href="http://www.eclipse.org/uml2/5.0.0/UML#//Class"/>
</eStructuralFeatures>
</eClassifiers>
</contents>
<contents xmi:type="ecore:EPackage" xmi:id="_DL_B8CjtEeKqNZFxtZ0S6g" name="uml2comparetestprofile" nsURI="http://www.eclipse.org/emf/compare/uml2/1.0.0/testprofile" nsPrefix="testProfile">
<eClassifiers xmi:type="ecore:EClass" xmi:id="_DL_B8SjtEeKqNZFxtZ0S6g" name="ACliche">
- <eAnnotations xmi:id="_DL_B8ijtEeKqNZFxtZ0S6g" source="http://www.eclipse.org/uml2/2.0.0/UML" references="_wQjhQIwoEeC_FYHMbTTxXw"/>
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_DL_B8ijtEeKqNZFxtZ0S6g" source="http://www.eclipse.org/uml2/2.0.0/UML" references="_wQjhQIwoEeC_FYHMbTTxXw"/>
<eStructuralFeatures xmi:type="ecore:EAttribute" xmi:id="_DL_B8yjtEeKqNZFxtZ0S6g" name="singleValuedAttribute" ordered="false">
- <eType xmi:type="ecore:EDataType" href="http://www.eclipse.org/uml2/4.0.0/Types#//String"/>
+ <eType xmi:type="ecore:EDataType" href="http://www.eclipse.org/uml2/5.0.0/Types#//String"/>
</eStructuralFeatures>
<eStructuralFeatures xmi:type="ecore:EAttribute" xmi:id="_DL_B9SjtEeKqNZFxtZ0S6g" name="manyValuedAttribute" upperBound="-1">
- <eType xmi:type="ecore:EDataType" href="http://www.eclipse.org/uml2/4.0.0/Types#//String"/>
+ <eType xmi:type="ecore:EDataType" href="http://www.eclipse.org/uml2/5.0.0/Types#//String"/>
</eStructuralFeatures>
<eStructuralFeatures xmi:type="ecore:EReference" xmi:id="_DL_B9yjtEeKqNZFxtZ0S6g" name="singleValuedReference" ordered="false">
- <eType xmi:type="ecore:EClass" href="http://www.eclipse.org/uml2/4.0.0/UML#//Class"/>
+ <eType xmi:type="ecore:EClass" href="http://www.eclipse.org/uml2/5.0.0/UML#//Class"/>
</eStructuralFeatures>
<eStructuralFeatures xmi:type="ecore:EReference" xmi:id="_DL_B-SjtEeKqNZFxtZ0S6g" name="manyValuedReference" upperBound="-1">
- <eType xmi:type="ecore:EClass" href="http://www.eclipse.org/uml2/4.0.0/UML#//Class"/>
+ <eType xmi:type="ecore:EClass" href="http://www.eclipse.org/uml2/5.0.0/UML#//Class"/>
</eStructuralFeatures>
<eStructuralFeatures xmi:type="ecore:EReference" xmi:id="_DL_B-yjtEeKqNZFxtZ0S6g" name="base_Class" ordered="false" lowerBound="1">
- <eType xmi:type="ecore:EClass" href="http://www.eclipse.org/uml2/4.0.0/UML#//Class"/>
+ <eType xmi:type="ecore:EClass" href="http://www.eclipse.org/uml2/5.0.0/UML#//Class"/>
</eStructuralFeatures>
</eClassifiers>
</contents>
</eAnnotations>
- <elementImport xmi:id="_gHJYQIwpEeC_FYHMbTTxXw">
+ <elementImport xmi:type="uml:ElementImport" xmi:id="_gHJYQIwpEeC_FYHMbTTxXw">
<importedElement xmi:type="uml:Class" href="pathmap://UML_METAMODELS/UML.metamodel.uml#Class"/>
</elementImport>
<packagedElement xmi:type="uml:Stereotype" xmi:id="_wQjhQIwoEeC_FYHMbTTxXw" name="ACliche">
- <ownedAttribute xmi:id="_2BXCQIwoEeC_FYHMbTTxXw" name="singleValuedAttribute">
+ <ownedAttribute xmi:type="uml:Property" xmi:id="_2BXCQIwoEeC_FYHMbTTxXw" name="singleValuedAttribute">
<type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#String"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="_5andEIwoEeC_FYHMbTTxXw"/>
</ownedAttribute>
- <ownedAttribute xmi:id="_2x68gIwoEeC_FYHMbTTxXw" name="manyValuedAttribute" isOrdered="true">
+ <ownedAttribute xmi:type="uml:Property" xmi:id="_2x68gIwoEeC_FYHMbTTxXw" name="manyValuedAttribute" isOrdered="true">
<type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#String"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="_HHFNEIwpEeC_FYHMbTTxXw"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_HelHEIwpEeC_FYHMbTTxXw" value="*"/>
</ownedAttribute>
- <ownedAttribute xmi:id="_VpE24IwpEeC_FYHMbTTxXw" name="singleValuedReference">
+ <ownedAttribute xmi:type="uml:Property" xmi:id="_VpE24IwpEeC_FYHMbTTxXw" name="singleValuedReference">
<type xmi:type="uml:Class" href="pathmap://UML_METAMODELS/UML.metamodel.uml#Class"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="_VpE24YwpEeC_FYHMbTTxXw"/>
</ownedAttribute>
- <ownedAttribute xmi:id="_VpGFAIwpEeC_FYHMbTTxXw" name="manyValuedReference" isOrdered="true">
+ <ownedAttribute xmi:type="uml:Property" xmi:id="_VpGFAIwpEeC_FYHMbTTxXw" name="manyValuedReference" isOrdered="true">
<type xmi:type="uml:Class" href="pathmap://UML_METAMODELS/UML.metamodel.uml#Class"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="_VpGFAowpEeC_FYHMbTTxXw"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_VpGFAYwpEeC_FYHMbTTxXw" value="*"/>
</ownedAttribute>
- <ownedAttribute xmi:id="_hQCS8owpEeC_FYHMbTTxXw" name="base_Class" association="_hQCS8IwpEeC_FYHMbTTxXw">
+ <ownedAttribute xmi:type="uml:Property" xmi:id="_hQCS8owpEeC_FYHMbTTxXw" name="base_Class" association="_hQCS8IwpEeC_FYHMbTTxXw">
<type xmi:type="uml:Class" href="pathmap://UML_METAMODELS/UML.metamodel.uml#Class"/>
</ownedAttribute>
</packagedElement>
@@ -97,39 +150,47 @@
<ownedEnd xmi:type="uml:ExtensionEnd" xmi:id="_hQCS8YwpEeC_FYHMbTTxXw" name="extension_ACliche" type="_wQjhQIwoEeC_FYHMbTTxXw" aggregation="composite" association="_hQCS8IwpEeC_FYHMbTTxXw"/>
</packagedElement>
<packagedElement xmi:type="uml:Stereotype" xmi:id="_x0pRAPCBEeKBcNH8cCNzUg" name="ACliche2">
- <ownedAttribute xmi:id="_x0pRAfCBEeKBcNH8cCNzUg" name="singleValuedAttribute">
+ <ownedAttribute xmi:type="uml:Property" xmi:id="_x0pRAfCBEeKBcNH8cCNzUg" name="singleValuedAttribute">
<type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#String"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="_x0pRAvCBEeKBcNH8cCNzUg"/>
</ownedAttribute>
- <ownedAttribute xmi:id="_x0pRA_CBEeKBcNH8cCNzUg" name="manyValuedAttribute" isOrdered="true">
+ <ownedAttribute xmi:type="uml:Property" xmi:id="_x0pRA_CBEeKBcNH8cCNzUg" name="manyValuedAttribute" isOrdered="true">
<type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#String"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="_x0pRBPCBEeKBcNH8cCNzUg"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_x0pRBfCBEeKBcNH8cCNzUg" value="*"/>
</ownedAttribute>
- <ownedAttribute xmi:id="_x0pRBvCBEeKBcNH8cCNzUg" name="singleValuedReference">
+ <ownedAttribute xmi:type="uml:Property" xmi:id="_x0pRBvCBEeKBcNH8cCNzUg" name="singleValuedReference">
<type xmi:type="uml:Class" href="pathmap://UML_METAMODELS/UML.metamodel.uml#Class"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="_x0pRB_CBEeKBcNH8cCNzUg"/>
</ownedAttribute>
- <ownedAttribute xmi:id="_x0pRCPCBEeKBcNH8cCNzUg" name="manyValuedReference" isOrdered="true">
+ <ownedAttribute xmi:type="uml:Property" xmi:id="_x0pRCPCBEeKBcNH8cCNzUg" name="manyValuedReference" isOrdered="true">
<type xmi:type="uml:Class" href="pathmap://UML_METAMODELS/UML.metamodel.uml#Class"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="_x0pRCfCBEeKBcNH8cCNzUg"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_x0pRCvCBEeKBcNH8cCNzUg" value="*"/>
</ownedAttribute>
- <ownedAttribute xmi:id="_x0pRC_CBEeKBcNH8cCNzUg" name="base_Class">
+ <ownedAttribute xmi:type="uml:Property" xmi:id="_x0pRC_CBEeKBcNH8cCNzUg" name="base_Class">
<type xmi:type="uml:Class" href="pathmap://UML_METAMODELS/UML.metamodel.uml#Class"/>
</ownedAttribute>
- <ownedAttribute xmi:id="_J3SKoPCCEeKBcNH8cCNzUg" name="base_Class" association="_J3OgQPCCEeKBcNH8cCNzUg">
+ <ownedAttribute xmi:type="uml:Property" xmi:id="_J3SKoPCCEeKBcNH8cCNzUg" name="base_Class" association="_J3OgQPCCEeKBcNH8cCNzUg">
<type xmi:type="uml:Class" href="pathmap://UML_METAMODELS/UML.metamodel.uml#Class"/>
</ownedAttribute>
</packagedElement>
<packagedElement xmi:type="uml:Extension" xmi:id="_J3OgQPCCEeKBcNH8cCNzUg" name="Class_ACliche2" memberEnd="_J3RjkPCCEeKBcNH8cCNzUg _J3SKoPCCEeKBcNH8cCNzUg">
<ownedEnd xmi:type="uml:ExtensionEnd" xmi:id="_J3RjkPCCEeKBcNH8cCNzUg" name="extension_ACliche2" type="_x0pRAPCBEeKBcNH8cCNzUg" aggregation="composite" association="_J3OgQPCCEeKBcNH8cCNzUg"/>
</packagedElement>
- <profileApplication xmi:id="_zXVhcIwnEeC_FYHMbTTxXw">
- <eAnnotations xmi:id="_zXXWoIwnEeC_FYHMbTTxXw" source="http://www.eclipse.org/uml2/2.0.0/UML">
+ <packagedElement xmi:type="uml:Stereotype" xmi:id="_yS8fYPU0EeOznPU7N6uHbQ" name="ACliche3">
+ <ownedAttribute xmi:type="uml:Property" xmi:id="_32HNAPU0EeOznPU7N6uHbQ" name="base_Class" association="_32IbIPU0EeOznPU7N6uHbQ">
+ <type xmi:type="uml:Class" href="pathmap://UML_METAMODELS/UML.metamodel.uml#Class"/>
+ </ownedAttribute>
+ </packagedElement>
+ <packagedElement xmi:type="uml:Extension" xmi:id="_32IbIPU0EeOznPU7N6uHbQ" name="E_ACliche3_Class1" memberEnd="_32IbIfU0EeOznPU7N6uHbQ _32HNAPU0EeOznPU7N6uHbQ">
+ <ownedEnd xmi:type="uml:ExtensionEnd" xmi:id="_32IbIfU0EeOznPU7N6uHbQ" name="extension_ACliche3" type="_yS8fYPU0EeOznPU7N6uHbQ" aggregation="composite" association="_32IbIPU0EeOznPU7N6uHbQ"/>
+ </packagedElement>
+ <profileApplication xmi:type="uml:ProfileApplication" xmi:id="_zXVhcIwnEeC_FYHMbTTxXw">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_zXXWoIwnEeC_FYHMbTTxXw" source="http://www.eclipse.org/uml2/2.0.0/UML">
<references xmi:type="ecore:EPackage" href="pathmap://UML_PROFILES/Ecore.profile.uml#_z1OFcHjqEdy8S4Cr8Rc_NA"/>
</eAnnotations>
- <appliedProfile href="pathmap://UML_PROFILES/Ecore.profile.uml#_0"/>
+ <appliedProfile xmi:type="uml:Profile" href="pathmap://UML_PROFILES/Ecore.profile.uml#_0"/>
</profileApplication>
</uml:Profile>
<Ecore:EPackage xmi:id="_1Dh9gIwnEeC_FYHMbTTxXw" base_Package="_hZFTgIwkEeC_FYHMbTTxXw" packageName="uml2comparetestprofile" nsPrefix="testProfile" nsURI="http://www.eclipse.org/emf/compare/uml2/1.0.0/testprofile" basePackage="org.eclipse.emf.compare.uml2.profile.test" prefix="UML2CompareTestProfile"/>
diff --git a/plugins/org.eclipse.emf.compare.uml2.tests/model/uml2comparetestprofile.ecore b/plugins/org.eclipse.emf.compare.uml2.tests/model/uml2comparetestprofile.ecore
index dcde71008..43f64bb53 100644
--- a/plugins/org.eclipse.emf.compare.uml2.tests/model/uml2comparetestprofile.ecore
+++ b/plugins/org.eclipse.emf.compare.uml2.tests/model/uml2comparetestprofile.ecore
@@ -1,13 +1,15 @@
<?xml version="1.0" encoding="UTF-8"?>
-<ecore:EPackage xmi:version="2.0"
- xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" name="uml2comparetestprofile"
- nsURI="http://www.eclipse.org/emf/compare/uml2/1.0.0/testprofile" nsPrefix="testProfile">
+<ecore:EPackage xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" name="uml2comparetestprofile" nsURI="http://www.eclipse.org/emf/compare/uml2/1.0.0/testprofile"
+ nsPrefix="testProfile">
+ <eAnnotations source="http://www.eclipse.org/uml2/2.0.0/UML">
+ <details key="originalName" value="UML2CompareTestProfile"/>
+ </eAnnotations>
<eClassifiers xsi:type="ecore:EClass" name="ACliche">
<eStructuralFeatures xsi:type="ecore:EAttribute" name="singleValuedAttribute"
- ordered="false" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
+ ordered="false" eType="ecore:EDataType platform:/plugin/org.eclipse.uml2.types/model/Types.ecore#//String"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="manyValuedAttribute" upperBound="-1"
- eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
+ eType="ecore:EDataType platform:/plugin/org.eclipse.uml2.types/model/Types.ecore#//String"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="singleValuedReference"
ordered="false" eType="ecore:EClass platform:/plugin/org.eclipse.uml2.uml/model/UML.ecore#//Class"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="manyValuedReference" upperBound="-1"
@@ -15,4 +17,20 @@
<eStructuralFeatures xsi:type="ecore:EReference" name="base_Class" ordered="false"
lowerBound="1" eType="ecore:EClass platform:/plugin/org.eclipse.uml2.uml/model/UML.ecore#//Class"/>
</eClassifiers>
+ <eClassifiers xsi:type="ecore:EClass" name="ACliche2">
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="singleValuedAttribute"
+ ordered="false" eType="ecore:EDataType platform:/plugin/org.eclipse.uml2.types/model/Types.ecore#//String"/>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="manyValuedAttribute" upperBound="-1"
+ eType="ecore:EDataType platform:/plugin/org.eclipse.uml2.types/model/Types.ecore#//String"/>
+ <eStructuralFeatures xsi:type="ecore:EReference" name="singleValuedReference"
+ ordered="false" eType="ecore:EClass platform:/plugin/org.eclipse.uml2.uml/model/UML.ecore#//Class"/>
+ <eStructuralFeatures xsi:type="ecore:EReference" name="manyValuedReference" upperBound="-1"
+ eType="ecore:EClass platform:/plugin/org.eclipse.uml2.uml/model/UML.ecore#//Class"/>
+ <eStructuralFeatures xsi:type="ecore:EReference" name="base_Class" ordered="false"
+ lowerBound="1" eType="ecore:EClass platform:/plugin/org.eclipse.uml2.uml/model/UML.ecore#//Class"/>
+ </eClassifiers>
+ <eClassifiers xsi:type="ecore:EClass" name="ACliche3">
+ <eStructuralFeatures xsi:type="ecore:EReference" name="base_Class" ordered="false"
+ lowerBound="1" eType="ecore:EClass platform:/plugin/org.eclipse.uml2.uml/model/UML.ecore#//Class"/>
+ </eClassifiers>
</ecore:EPackage>
diff --git a/plugins/org.eclipse.emf.compare.uml2.tests/profile/org/eclipse/emf/compare/uml2/profile/test/uml2comparetestprofile/ACliche.java b/plugins/org.eclipse.emf.compare.uml2.tests/profile/org/eclipse/emf/compare/uml2/profile/test/uml2comparetestprofile/ACliche.java
index edcb2e427..eb176feea 100644
--- a/plugins/org.eclipse.emf.compare.uml2.tests/profile/org/eclipse/emf/compare/uml2/profile/test/uml2comparetestprofile/ACliche.java
+++ b/plugins/org.eclipse.emf.compare.uml2.tests/profile/org/eclipse/emf/compare/uml2/profile/test/uml2comparetestprofile/ACliche.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2011, 2012 Obeo.
+ * Copyright (c) 2011, 2014 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
@@ -51,7 +51,7 @@ public interface ACliche extends EObject {
* @return the value of the '<em>Single Valued Attribute</em>' attribute.
* @see #setSingleValuedAttribute(String)
* @see org.eclipse.emf.compare.uml2.profile.test.uml2comparetestprofile.UML2CompareTestProfilePackage#getACliche_SingleValuedAttribute()
- * @model ordered="false"
+ * @model dataType="org.eclipse.uml2.types.String" ordered="false"
* @generated
*/
String getSingleValuedAttribute();
@@ -79,7 +79,7 @@ public interface ACliche extends EObject {
*
* @return the value of the '<em>Many Valued Attribute</em>' attribute list.
* @see org.eclipse.emf.compare.uml2.profile.test.uml2comparetestprofile.UML2CompareTestProfilePackage#getACliche_ManyValuedAttribute()
- * @model
+ * @model dataType="org.eclipse.uml2.types.String"
* @generated
*/
EList<String> getManyValuedAttribute();
diff --git a/plugins/org.eclipse.emf.compare.uml2.tests/profile/org/eclipse/emf/compare/uml2/profile/test/uml2comparetestprofile/ACliche2.java b/plugins/org.eclipse.emf.compare.uml2.tests/profile/org/eclipse/emf/compare/uml2/profile/test/uml2comparetestprofile/ACliche2.java
new file mode 100644
index 000000000..310cd8c20
--- /dev/null
+++ b/plugins/org.eclipse.emf.compare.uml2.tests/profile/org/eclipse/emf/compare/uml2/profile/test/uml2comparetestprofile/ACliche2.java
@@ -0,0 +1,195 @@
+/*******************************************************************************
+ * Copyright (c) 2014 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.profile.test.uml2comparetestprofile;
+
+import org.eclipse.emf.common.util.EList;
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EObject;
+
+/**
+ * <!-- begin-user-doc --> A representation of the model object '<em><b>ACliche2</b></em>'. <!-- end-user-doc
+ * -->
+ * <p>
+ * The following features are supported:
+ * <ul>
+ * <li>
+ * {@link org.eclipse.emf.compare.uml2.profile.test.uml2comparetestprofile.ACliche2#getSingleValuedAttribute
+ * <em>Single Valued Attribute</em>}</li>
+ * <li>
+ * {@link org.eclipse.emf.compare.uml2.profile.test.uml2comparetestprofile.ACliche2#getManyValuedAttribute
+ * <em>Many Valued Attribute</em>}</li>
+ * <li>
+ * {@link org.eclipse.emf.compare.uml2.profile.test.uml2comparetestprofile.ACliche2#getSingleValuedReference
+ * <em>Single Valued Reference</em>}</li>
+ * <li>
+ * {@link org.eclipse.emf.compare.uml2.profile.test.uml2comparetestprofile.ACliche2#getManyValuedReference
+ * <em>Many Valued Reference</em>}</li>
+ * <li>{@link org.eclipse.emf.compare.uml2.profile.test.uml2comparetestprofile.ACliche2#getBase_Class <em>Base
+ * Class</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @see org.eclipse.emf.compare.uml2.profile.test.uml2comparetestprofile.UML2CompareTestProfilePackage#getACliche2()
+ * @model
+ * @generated
+ */
+public interface ACliche2 extends EObject {
+ /**
+ * Returns the value of the '<em><b>Single Valued Attribute</b></em>' attribute. <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Single Valued Attribute</em>' attribute isn't clear, there really should be
+ * more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ *
+ * @return the value of the '<em>Single Valued Attribute</em>' attribute.
+ * @see #setSingleValuedAttribute(String)
+ * @see org.eclipse.emf.compare.uml2.profile.test.uml2comparetestprofile.UML2CompareTestProfilePackage#getACliche2_SingleValuedAttribute()
+ * @model dataType="org.eclipse.uml2.types.String" ordered="false"
+ * @generated
+ */
+ String getSingleValuedAttribute();
+
+ /**
+ * Sets the value of the '
+ * {@link org.eclipse.emf.compare.uml2.profile.test.uml2comparetestprofile.ACliche2#getSingleValuedAttribute
+ * <em>Single Valued Attribute</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value
+ * the new value of the '<em>Single Valued Attribute</em>' attribute.
+ * @see #getSingleValuedAttribute()
+ * @generated
+ */
+ void setSingleValuedAttribute(String value);
+
+ /**
+ * Returns the value of the '<em><b>Many Valued Attribute</b></em>' attribute list. The list contents are
+ * of type {@link java.lang.String}. <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Many Valued Attribute</em>' attribute list isn't clear, there really should
+ * be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ *
+ * @return the value of the '<em>Many Valued Attribute</em>' attribute list.
+ * @see org.eclipse.emf.compare.uml2.profile.test.uml2comparetestprofile.UML2CompareTestProfilePackage#getACliche2_ManyValuedAttribute()
+ * @model dataType="org.eclipse.uml2.types.String"
+ * @generated
+ */
+ EList<String> getManyValuedAttribute();
+
+ /**
+ * Returns the value of the '<em><b>Single Valued Reference</b></em>' reference. <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Single Valued Reference</em>' reference isn't clear, there really should be
+ * more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ *
+ * @return the value of the '<em>Single Valued Reference</em>' reference.
+ * @see #setSingleValuedReference(org.eclipse.uml2.uml.Class)
+ * @see org.eclipse.emf.compare.uml2.profile.test.uml2comparetestprofile.UML2CompareTestProfilePackage#getACliche2_SingleValuedReference()
+ * @model ordered="false"
+ * @generated
+ */
+ org.eclipse.uml2.uml.Class getSingleValuedReference();
+
+ /**
+ * Sets the value of the '
+ * {@link org.eclipse.emf.compare.uml2.profile.test.uml2comparetestprofile.ACliche2#getSingleValuedReference
+ * <em>Single Valued Reference</em>}' reference. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value
+ * the new value of the '<em>Single Valued Reference</em>' reference.
+ * @see #getSingleValuedReference()
+ * @generated
+ */
+ void setSingleValuedReference(org.eclipse.uml2.uml.Class value);
+
+ /**
+ * Returns the value of the '<em><b>Many Valued Reference</b></em>' reference list. The list contents are
+ * of type {@link org.eclipse.uml2.uml.Class}. <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Many Valued Reference</em>' reference list isn't clear, there really should
+ * be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ *
+ * @return the value of the '<em>Many Valued Reference</em>' reference list.
+ * @see org.eclipse.emf.compare.uml2.profile.test.uml2comparetestprofile.UML2CompareTestProfilePackage#getACliche2_ManyValuedReference()
+ * @model
+ * @generated
+ */
+ EList<org.eclipse.uml2.uml.Class> getManyValuedReference();
+
+ /**
+ * Retrieves the first {@link org.eclipse.uml2.uml.Class} with the specified '<em><b>Name</b></em>' from
+ * the '<em><b>Many Valued Reference</b></em>' reference list. <!-- begin-user-doc --> <!-- end-user-doc
+ * -->
+ *
+ * @param name
+ * The '<em><b>Name</b></em>' of the {@link org.eclipse.uml2.uml.Class} to retrieve, or
+ * <code>null</code>.
+ * @return The first {@link org.eclipse.uml2.uml.Class} with the specified '<em><b>Name</b></em>', or
+ * <code>null</code>.
+ * @see #getManyValuedReference()
+ * @generated
+ */
+ org.eclipse.uml2.uml.Class getManyValuedReference(String name);
+
+ /**
+ * Retrieves the first {@link org.eclipse.uml2.uml.Class} with the specified '<em><b>Name</b></em>' from
+ * the '<em><b>Many Valued Reference</b></em>' reference list. <!-- begin-user-doc --> <!-- end-user-doc
+ * -->
+ *
+ * @param name
+ * The '<em><b>Name</b></em>' of the {@link org.eclipse.uml2.uml.Class} to retrieve, or
+ * <code>null</code>.
+ * @param ignoreCase
+ * Whether to ignore case in {@link java.lang.String} comparisons.
+ * @param eClass
+ * The Ecore class of the {@link org.eclipse.uml2.uml.Class} to retrieve, or <code>null</code>.
+ * @return The first {@link org.eclipse.uml2.uml.Class} with the specified '<em><b>Name</b></em>', or
+ * <code>null</code>.
+ * @see #getManyValuedReference()
+ * @generated
+ */
+ org.eclipse.uml2.uml.Class getManyValuedReference(String name, boolean ignoreCase, EClass eClass);
+
+ /**
+ * Returns the value of the '<em><b>Base Class</b></em>' reference. <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Base Class</em>' reference isn't clear, there really should be more of a
+ * description here...
+ * </p>
+ * <!-- end-user-doc -->
+ *
+ * @return the value of the '<em>Base Class</em>' reference.
+ * @see #setBase_Class(org.eclipse.uml2.uml.Class)
+ * @see org.eclipse.emf.compare.uml2.profile.test.uml2comparetestprofile.UML2CompareTestProfilePackage#getACliche2_Base_Class()
+ * @model required="true" ordered="false"
+ * @generated
+ */
+ org.eclipse.uml2.uml.Class getBase_Class();
+
+ /**
+ * Sets the value of the '
+ * {@link org.eclipse.emf.compare.uml2.profile.test.uml2comparetestprofile.ACliche2#getBase_Class
+ * <em>Base Class</em>}' reference. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value
+ * the new value of the '<em>Base Class</em>' reference.
+ * @see #getBase_Class()
+ * @generated
+ */
+ void setBase_Class(org.eclipse.uml2.uml.Class value);
+
+} // ACliche2
diff --git a/plugins/org.eclipse.emf.compare.uml2.tests/profile/org/eclipse/emf/compare/uml2/profile/test/uml2comparetestprofile/ACliche3.java b/plugins/org.eclipse.emf.compare.uml2.tests/profile/org/eclipse/emf/compare/uml2/profile/test/uml2comparetestprofile/ACliche3.java
new file mode 100644
index 000000000..8e9b7f0ec
--- /dev/null
+++ b/plugins/org.eclipse.emf.compare.uml2.tests/profile/org/eclipse/emf/compare/uml2/profile/test/uml2comparetestprofile/ACliche3.java
@@ -0,0 +1,59 @@
+/*******************************************************************************
+ * Copyright (c) 2011, 2014 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.profile.test.uml2comparetestprofile;
+
+import org.eclipse.emf.ecore.EObject;
+
+/**
+ * <!-- begin-user-doc --> A representation of the model object '<em><b>ACliche3</b></em>'. <!-- end-user-doc
+ * -->
+ * <p>
+ * The following features are supported:
+ * <ul>
+ * <li>{@link org.eclipse.emf.compare.uml2.profile.test.uml2comparetestprofile.ACliche3#getBase_Class <em>Base
+ * Class</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @see org.eclipse.emf.compare.uml2.profile.test.uml2comparetestprofile.UML2CompareTestProfilePackage#getACliche3()
+ * @model
+ * @generated
+ */
+public interface ACliche3 extends EObject {
+ /**
+ * Returns the value of the '<em><b>Base Class</b></em>' reference. <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Base Class</em>' reference isn't clear, there really should be more of a
+ * description here...
+ * </p>
+ * <!-- end-user-doc -->
+ *
+ * @return the value of the '<em>Base Class</em>' reference.
+ * @see #setBase_Class(org.eclipse.uml2.uml.Class)
+ * @see org.eclipse.emf.compare.uml2.profile.test.uml2comparetestprofile.UML2CompareTestProfilePackage#getACliche3_Base_Class()
+ * @model required="true" ordered="false"
+ * @generated
+ */
+ org.eclipse.uml2.uml.Class getBase_Class();
+
+ /**
+ * Sets the value of the '
+ * {@link org.eclipse.emf.compare.uml2.profile.test.uml2comparetestprofile.ACliche3#getBase_Class
+ * <em>Base Class</em>}' reference. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value
+ * the new value of the '<em>Base Class</em>' reference.
+ * @see #getBase_Class()
+ * @generated
+ */
+ void setBase_Class(org.eclipse.uml2.uml.Class value);
+
+} // ACliche3
diff --git a/plugins/org.eclipse.emf.compare.uml2.tests/profile/org/eclipse/emf/compare/uml2/profile/test/uml2comparetestprofile/UML2CompareTestProfileFactory.java b/plugins/org.eclipse.emf.compare.uml2.tests/profile/org/eclipse/emf/compare/uml2/profile/test/uml2comparetestprofile/UML2CompareTestProfileFactory.java
index 0e1ba0e46..2bc5c05b4 100644
--- a/plugins/org.eclipse.emf.compare.uml2.tests/profile/org/eclipse/emf/compare/uml2/profile/test/uml2comparetestprofile/UML2CompareTestProfileFactory.java
+++ b/plugins/org.eclipse.emf.compare.uml2.tests/profile/org/eclipse/emf/compare/uml2/profile/test/uml2comparetestprofile/UML2CompareTestProfileFactory.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2011, 2012 Obeo.
+ * Copyright (c) 2011, 2014 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
@@ -37,6 +37,22 @@ public interface UML2CompareTestProfileFactory extends EFactory {
ACliche createACliche();
/**
+ * Returns a new object of class '<em>ACliche2</em>'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return a new object of class '<em>ACliche2</em>'.
+ * @generated
+ */
+ ACliche2 createACliche2();
+
+ /**
+ * Returns a new object of class '<em>ACliche3</em>'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return a new object of class '<em>ACliche3</em>'.
+ * @generated
+ */
+ ACliche3 createACliche3();
+
+ /**
* 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.tests/profile/org/eclipse/emf/compare/uml2/profile/test/uml2comparetestprofile/UML2CompareTestProfilePackage.java b/plugins/org.eclipse.emf.compare.uml2.tests/profile/org/eclipse/emf/compare/uml2/profile/test/uml2comparetestprofile/UML2CompareTestProfilePackage.java
index 85d9e5862..bf5b271df 100644
--- a/plugins/org.eclipse.emf.compare.uml2.tests/profile/org/eclipse/emf/compare/uml2/profile/test/uml2comparetestprofile/UML2CompareTestProfilePackage.java
+++ b/plugins/org.eclipse.emf.compare.uml2.tests/profile/org/eclipse/emf/compare/uml2/profile/test/uml2comparetestprofile/UML2CompareTestProfilePackage.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2011, 2012 Obeo.
+ * Copyright (c) 2011, 2014 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
@@ -28,6 +28,7 @@ import org.eclipse.emf.ecore.EReference;
*
* @see org.eclipse.emf.compare.uml2.profile.test.uml2comparetestprofile.UML2CompareTestProfileFactory
* @model kind="package"
+ * annotation="http://www.eclipse.org/uml2/2.0.0/UML originalName='UML2CompareTestProfile'"
* @generated
*/
public interface UML2CompareTestProfilePackage extends EPackage {
@@ -126,6 +127,100 @@ public interface UML2CompareTestProfilePackage extends EPackage {
int ACLICHE_FEATURE_COUNT = 5;
/**
+ * The meta object id for the '
+ * {@link org.eclipse.emf.compare.uml2.profile.test.uml2comparetestprofile.impl.ACliche2Impl
+ * <em>ACliche2</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see org.eclipse.emf.compare.uml2.profile.test.uml2comparetestprofile.impl.ACliche2Impl
+ * @see org.eclipse.emf.compare.uml2.profile.test.uml2comparetestprofile.impl.UML2CompareTestProfilePackageImpl#getACliche2()
+ * @generated
+ */
+ int ACLICHE2 = 1;
+
+ /**
+ * The feature id for the '<em><b>Single Valued Attribute</b></em>' attribute. <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int ACLICHE2__SINGLE_VALUED_ATTRIBUTE = 0;
+
+ /**
+ * The feature id for the '<em><b>Many Valued Attribute</b></em>' attribute list. <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int ACLICHE2__MANY_VALUED_ATTRIBUTE = 1;
+
+ /**
+ * The feature id for the '<em><b>Single Valued Reference</b></em>' reference. <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int ACLICHE2__SINGLE_VALUED_REFERENCE = 2;
+
+ /**
+ * The feature id for the '<em><b>Many Valued Reference</b></em>' reference list. <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int ACLICHE2__MANY_VALUED_REFERENCE = 3;
+
+ /**
+ * The feature id for the '<em><b>Base Class</b></em>' reference. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int ACLICHE2__BASE_CLASS = 4;
+
+ /**
+ * The number of structural features of the '<em>ACliche2</em>' class. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int ACLICHE2_FEATURE_COUNT = 5;
+
+ /**
+ * The meta object id for the '
+ * {@link org.eclipse.emf.compare.uml2.profile.test.uml2comparetestprofile.impl.ACliche3Impl
+ * <em>ACliche3</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see org.eclipse.emf.compare.uml2.profile.test.uml2comparetestprofile.impl.ACliche3Impl
+ * @see org.eclipse.emf.compare.uml2.profile.test.uml2comparetestprofile.impl.UML2CompareTestProfilePackageImpl#getACliche3()
+ * @generated
+ */
+ int ACLICHE3 = 2;
+
+ /**
+ * The feature id for the '<em><b>Base Class</b></em>' reference. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int ACLICHE3__BASE_CLASS = 0;
+
+ /**
+ * The number of structural features of the '<em>ACliche3</em>' class. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int ACLICHE3_FEATURE_COUNT = 1;
+
+ /**
* Returns the meta object for class '
* {@link org.eclipse.emf.compare.uml2.profile.test.uml2comparetestprofile.ACliche <em>ACliche</em>}'.
* <!-- begin-user-doc --> <!-- end-user-doc -->
@@ -197,6 +292,100 @@ public interface UML2CompareTestProfilePackage extends EPackage {
EReference getACliche_Base_Class();
/**
+ * Returns the meta object for class '
+ * {@link org.eclipse.emf.compare.uml2.profile.test.uml2comparetestprofile.ACliche2 <em>ACliche2</em>}'.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for class '<em>ACliche2</em>'.
+ * @see org.eclipse.emf.compare.uml2.profile.test.uml2comparetestprofile.ACliche2
+ * @generated
+ */
+ EClass getACliche2();
+
+ /**
+ * Returns the meta object for the attribute '
+ * {@link org.eclipse.emf.compare.uml2.profile.test.uml2comparetestprofile.ACliche2#getSingleValuedAttribute
+ * <em>Single Valued Attribute</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the attribute '<em>Single Valued Attribute</em>'.
+ * @see org.eclipse.emf.compare.uml2.profile.test.uml2comparetestprofile.ACliche2#getSingleValuedAttribute()
+ * @see #getACliche2()
+ * @generated
+ */
+ EAttribute getACliche2_SingleValuedAttribute();
+
+ /**
+ * Returns the meta object for the attribute list '
+ * {@link org.eclipse.emf.compare.uml2.profile.test.uml2comparetestprofile.ACliche2#getManyValuedAttribute
+ * <em>Many Valued Attribute</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the attribute list '<em>Many Valued Attribute</em>'.
+ * @see org.eclipse.emf.compare.uml2.profile.test.uml2comparetestprofile.ACliche2#getManyValuedAttribute()
+ * @see #getACliche2()
+ * @generated
+ */
+ EAttribute getACliche2_ManyValuedAttribute();
+
+ /**
+ * Returns the meta object for the reference '
+ * {@link org.eclipse.emf.compare.uml2.profile.test.uml2comparetestprofile.ACliche2#getSingleValuedReference
+ * <em>Single Valued Reference</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the reference '<em>Single Valued Reference</em>'.
+ * @see org.eclipse.emf.compare.uml2.profile.test.uml2comparetestprofile.ACliche2#getSingleValuedReference()
+ * @see #getACliche2()
+ * @generated
+ */
+ EReference getACliche2_SingleValuedReference();
+
+ /**
+ * Returns the meta object for the reference list '
+ * {@link org.eclipse.emf.compare.uml2.profile.test.uml2comparetestprofile.ACliche2#getManyValuedReference
+ * <em>Many Valued Reference</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the reference list '<em>Many Valued Reference</em>'.
+ * @see org.eclipse.emf.compare.uml2.profile.test.uml2comparetestprofile.ACliche2#getManyValuedReference()
+ * @see #getACliche2()
+ * @generated
+ */
+ EReference getACliche2_ManyValuedReference();
+
+ /**
+ * Returns the meta object for the reference '
+ * {@link org.eclipse.emf.compare.uml2.profile.test.uml2comparetestprofile.ACliche2#getBase_Class
+ * <em>Base Class</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the reference '<em>Base Class</em>'.
+ * @see org.eclipse.emf.compare.uml2.profile.test.uml2comparetestprofile.ACliche2#getBase_Class()
+ * @see #getACliche2()
+ * @generated
+ */
+ EReference getACliche2_Base_Class();
+
+ /**
+ * Returns the meta object for class '
+ * {@link org.eclipse.emf.compare.uml2.profile.test.uml2comparetestprofile.ACliche3 <em>ACliche3</em>}'.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for class '<em>ACliche3</em>'.
+ * @see org.eclipse.emf.compare.uml2.profile.test.uml2comparetestprofile.ACliche3
+ * @generated
+ */
+ EClass getACliche3();
+
+ /**
+ * Returns the meta object for the reference '
+ * {@link org.eclipse.emf.compare.uml2.profile.test.uml2comparetestprofile.ACliche3#getBase_Class
+ * <em>Base Class</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the reference '<em>Base Class</em>'.
+ * @see org.eclipse.emf.compare.uml2.profile.test.uml2comparetestprofile.ACliche3#getBase_Class()
+ * @see #getACliche3()
+ * @generated
+ */
+ EReference getACliche3_Base_Class();
+
+ /**
* Returns the factory that creates the instances of the model. <!-- begin-user-doc --> <!-- end-user-doc
* -->
*
@@ -269,6 +458,76 @@ public interface UML2CompareTestProfilePackage extends EPackage {
*/
EReference ACLICHE__BASE_CLASS = eINSTANCE.getACliche_Base_Class();
+ /**
+ * The meta object literal for the '
+ * {@link org.eclipse.emf.compare.uml2.profile.test.uml2comparetestprofile.impl.ACliche2Impl
+ * <em>ACliche2</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see org.eclipse.emf.compare.uml2.profile.test.uml2comparetestprofile.impl.ACliche2Impl
+ * @see org.eclipse.emf.compare.uml2.profile.test.uml2comparetestprofile.impl.UML2CompareTestProfilePackageImpl#getACliche2()
+ * @generated
+ */
+ EClass ACLICHE2 = eINSTANCE.getACliche2();
+
+ /**
+ * The meta object literal for the '<em><b>Single Valued Attribute</b></em>' attribute feature. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ EAttribute ACLICHE2__SINGLE_VALUED_ATTRIBUTE = eINSTANCE.getACliche2_SingleValuedAttribute();
+
+ /**
+ * The meta object literal for the '<em><b>Many Valued Attribute</b></em>' attribute list feature.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ EAttribute ACLICHE2__MANY_VALUED_ATTRIBUTE = eINSTANCE.getACliche2_ManyValuedAttribute();
+
+ /**
+ * The meta object literal for the '<em><b>Single Valued Reference</b></em>' reference feature. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ EReference ACLICHE2__SINGLE_VALUED_REFERENCE = eINSTANCE.getACliche2_SingleValuedReference();
+
+ /**
+ * The meta object literal for the '<em><b>Many Valued Reference</b></em>' reference list feature.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ EReference ACLICHE2__MANY_VALUED_REFERENCE = eINSTANCE.getACliche2_ManyValuedReference();
+
+ /**
+ * The meta object literal for the '<em><b>Base Class</b></em>' reference feature. <!-- begin-user-doc
+ * --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ EReference ACLICHE2__BASE_CLASS = eINSTANCE.getACliche2_Base_Class();
+
+ /**
+ * The meta object literal for the '
+ * {@link org.eclipse.emf.compare.uml2.profile.test.uml2comparetestprofile.impl.ACliche3Impl
+ * <em>ACliche3</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see org.eclipse.emf.compare.uml2.profile.test.uml2comparetestprofile.impl.ACliche3Impl
+ * @see org.eclipse.emf.compare.uml2.profile.test.uml2comparetestprofile.impl.UML2CompareTestProfilePackageImpl#getACliche3()
+ * @generated
+ */
+ EClass ACLICHE3 = eINSTANCE.getACliche3();
+
+ /**
+ * The meta object literal for the '<em><b>Base Class</b></em>' reference feature. <!-- begin-user-doc
+ * --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ EReference ACLICHE3__BASE_CLASS = eINSTANCE.getACliche3_Base_Class();
+
}
} // UML2CompareTestProfilePackage
diff --git a/plugins/org.eclipse.emf.compare.uml2.tests/profile/org/eclipse/emf/compare/uml2/profile/test/uml2comparetestprofile/impl/ACliche2Impl.java b/plugins/org.eclipse.emf.compare.uml2.tests/profile/org/eclipse/emf/compare/uml2/profile/test/uml2comparetestprofile/impl/ACliche2Impl.java
new file mode 100644
index 000000000..159baa11e
--- /dev/null
+++ b/plugins/org.eclipse.emf.compare.uml2.tests/profile/org/eclipse/emf/compare/uml2/profile/test/uml2comparetestprofile/impl/ACliche2Impl.java
@@ -0,0 +1,426 @@
+/*******************************************************************************
+ * Copyright (c) 2014 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.profile.test.uml2comparetestprofile.impl;
+
+import java.util.Collection;
+
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.common.util.EList;
+import org.eclipse.emf.compare.uml2.profile.test.uml2comparetestprofile.ACliche2;
+import org.eclipse.emf.compare.uml2.profile.test.uml2comparetestprofile.UML2CompareTestProfilePackage;
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.InternalEObject;
+import org.eclipse.emf.ecore.impl.ENotificationImpl;
+import org.eclipse.emf.ecore.impl.EObjectImpl;
+import org.eclipse.emf.ecore.util.EDataTypeUniqueEList;
+import org.eclipse.emf.ecore.util.EObjectResolvingEList;
+
+/**
+ * <!-- begin-user-doc --> An implementation of the model object '<em><b>ACliche2</b></em>'. <!-- end-user-doc
+ * -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ * <li>
+ * {@link org.eclipse.emf.compare.uml2.profile.test.uml2comparetestprofile.impl.ACliche2Impl#getSingleValuedAttribute
+ * <em>Single Valued Attribute</em>}</li>
+ * <li>
+ * {@link org.eclipse.emf.compare.uml2.profile.test.uml2comparetestprofile.impl.ACliche2Impl#getManyValuedAttribute
+ * <em>Many Valued Attribute</em>}</li>
+ * <li>
+ * {@link org.eclipse.emf.compare.uml2.profile.test.uml2comparetestprofile.impl.ACliche2Impl#getSingleValuedReference
+ * <em>Single Valued Reference</em>}</li>
+ * <li>
+ * {@link org.eclipse.emf.compare.uml2.profile.test.uml2comparetestprofile.impl.ACliche2Impl#getManyValuedReference
+ * <em>Many Valued Reference</em>}</li>
+ * <li>
+ * {@link org.eclipse.emf.compare.uml2.profile.test.uml2comparetestprofile.impl.ACliche2Impl#getBase_Class
+ * <em>Base Class</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class ACliche2Impl extends EObjectImpl implements ACliche2 {
+ /**
+ * The default value of the '{@link #getSingleValuedAttribute() <em>Single Valued Attribute</em>}'
+ * attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #getSingleValuedAttribute()
+ * @generated
+ * @ordered
+ */
+ protected static final String SINGLE_VALUED_ATTRIBUTE_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getSingleValuedAttribute() <em>Single Valued Attribute</em>}'
+ * attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #getSingleValuedAttribute()
+ * @generated
+ * @ordered
+ */
+ protected String singleValuedAttribute = SINGLE_VALUED_ATTRIBUTE_EDEFAULT;
+
+ /**
+ * The cached value of the '{@link #getManyValuedAttribute() <em>Many Valued Attribute</em>}' attribute
+ * list. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #getManyValuedAttribute()
+ * @generated
+ * @ordered
+ */
+ protected EList<String> manyValuedAttribute;
+
+ /**
+ * The cached value of the '{@link #getSingleValuedReference() <em>Single Valued Reference</em>}'
+ * reference. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #getSingleValuedReference()
+ * @generated
+ * @ordered
+ */
+ protected org.eclipse.uml2.uml.Class singleValuedReference;
+
+ /**
+ * The cached value of the '{@link #getManyValuedReference() <em>Many Valued Reference</em>}' reference
+ * list. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #getManyValuedReference()
+ * @generated
+ * @ordered
+ */
+ protected EList<org.eclipse.uml2.uml.Class> manyValuedReference;
+
+ /**
+ * The cached value of the '{@link #getBase_Class() <em>Base Class</em>}' reference. <!-- begin-user-doc
+ * --> <!-- end-user-doc -->
+ *
+ * @see #getBase_Class()
+ * @generated
+ * @ordered
+ */
+ protected org.eclipse.uml2.uml.Class base_Class;
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected ACliche2Impl() {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass() {
+ return UML2CompareTestProfilePackage.Literals.ACLICHE2;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public String getSingleValuedAttribute() {
+ return singleValuedAttribute;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setSingleValuedAttribute(String newSingleValuedAttribute) {
+ String oldSingleValuedAttribute = singleValuedAttribute;
+ singleValuedAttribute = newSingleValuedAttribute;
+ if (eNotificationRequired()) {
+ eNotify(new ENotificationImpl(this, Notification.SET,
+ UML2CompareTestProfilePackage.ACLICHE2__SINGLE_VALUED_ATTRIBUTE,
+ oldSingleValuedAttribute, singleValuedAttribute));
+ }
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EList<String> getManyValuedAttribute() {
+ if (manyValuedAttribute == null) {
+ manyValuedAttribute = new EDataTypeUniqueEList<String>(String.class, this,
+ UML2CompareTestProfilePackage.ACLICHE2__MANY_VALUED_ATTRIBUTE);
+ }
+ return manyValuedAttribute;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public org.eclipse.uml2.uml.Class getSingleValuedReference() {
+ if (singleValuedReference != null && singleValuedReference.eIsProxy()) {
+ InternalEObject oldSingleValuedReference = (InternalEObject)singleValuedReference;
+ singleValuedReference = (org.eclipse.uml2.uml.Class)eResolveProxy(oldSingleValuedReference);
+ if (singleValuedReference != oldSingleValuedReference) {
+ if (eNotificationRequired()) {
+ eNotify(new ENotificationImpl(this, Notification.RESOLVE,
+ UML2CompareTestProfilePackage.ACLICHE2__SINGLE_VALUED_REFERENCE,
+ oldSingleValuedReference, singleValuedReference));
+ }
+ }
+ }
+ return singleValuedReference;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public org.eclipse.uml2.uml.Class basicGetSingleValuedReference() {
+ return singleValuedReference;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setSingleValuedReference(org.eclipse.uml2.uml.Class newSingleValuedReference) {
+ org.eclipse.uml2.uml.Class oldSingleValuedReference = singleValuedReference;
+ singleValuedReference = newSingleValuedReference;
+ if (eNotificationRequired()) {
+ eNotify(new ENotificationImpl(this, Notification.SET,
+ UML2CompareTestProfilePackage.ACLICHE2__SINGLE_VALUED_REFERENCE,
+ oldSingleValuedReference, singleValuedReference));
+ }
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EList<org.eclipse.uml2.uml.Class> getManyValuedReference() {
+ if (manyValuedReference == null) {
+ manyValuedReference = new EObjectResolvingEList<org.eclipse.uml2.uml.Class>(
+ org.eclipse.uml2.uml.Class.class, this,
+ UML2CompareTestProfilePackage.ACLICHE2__MANY_VALUED_REFERENCE);
+ }
+ return manyValuedReference;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public org.eclipse.uml2.uml.Class getManyValuedReference(String name) {
+ return getManyValuedReference(name, false, null);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public org.eclipse.uml2.uml.Class getManyValuedReference(String name, boolean ignoreCase, EClass eClass) {
+ manyValuedReferenceLoop: for (org.eclipse.uml2.uml.Class manyValuedReference : getManyValuedReference()) {
+ if (eClass != null && !eClass.isInstance(manyValuedReference)) {
+ continue manyValuedReferenceLoop;
+ }
+ if (name != null
+ && !(ignoreCase ? name.equalsIgnoreCase(manyValuedReference.getName()) : name
+ .equals(manyValuedReference.getName()))) {
+ continue manyValuedReferenceLoop;
+ }
+ return manyValuedReference;
+ }
+ return null;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public org.eclipse.uml2.uml.Class getBase_Class() {
+ if (base_Class != null && base_Class.eIsProxy()) {
+ InternalEObject oldBase_Class = (InternalEObject)base_Class;
+ base_Class = (org.eclipse.uml2.uml.Class)eResolveProxy(oldBase_Class);
+ if (base_Class != oldBase_Class) {
+ if (eNotificationRequired()) {
+ eNotify(new ENotificationImpl(this, Notification.RESOLVE,
+ UML2CompareTestProfilePackage.ACLICHE2__BASE_CLASS, oldBase_Class, base_Class));
+ }
+ }
+ }
+ return base_Class;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public org.eclipse.uml2.uml.Class basicGetBase_Class() {
+ return base_Class;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setBase_Class(org.eclipse.uml2.uml.Class newBase_Class) {
+ org.eclipse.uml2.uml.Class oldBase_Class = base_Class;
+ base_Class = newBase_Class;
+ if (eNotificationRequired()) {
+ eNotify(new ENotificationImpl(this, Notification.SET,
+ UML2CompareTestProfilePackage.ACLICHE2__BASE_CLASS, oldBase_Class, base_Class));
+ }
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public Object eGet(int featureID, boolean resolve, boolean coreType) {
+ switch (featureID) {
+ case UML2CompareTestProfilePackage.ACLICHE2__SINGLE_VALUED_ATTRIBUTE:
+ return getSingleValuedAttribute();
+ case UML2CompareTestProfilePackage.ACLICHE2__MANY_VALUED_ATTRIBUTE:
+ return getManyValuedAttribute();
+ case UML2CompareTestProfilePackage.ACLICHE2__SINGLE_VALUED_REFERENCE:
+ if (resolve) {
+ return getSingleValuedReference();
+ }
+ return basicGetSingleValuedReference();
+ case UML2CompareTestProfilePackage.ACLICHE2__MANY_VALUED_REFERENCE:
+ return getManyValuedReference();
+ case UML2CompareTestProfilePackage.ACLICHE2__BASE_CLASS:
+ if (resolve) {
+ return getBase_Class();
+ }
+ return basicGetBase_Class();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @SuppressWarnings("unchecked")
+ @Override
+ public void eSet(int featureID, Object newValue) {
+ switch (featureID) {
+ case UML2CompareTestProfilePackage.ACLICHE2__SINGLE_VALUED_ATTRIBUTE:
+ setSingleValuedAttribute((String)newValue);
+ return;
+ case UML2CompareTestProfilePackage.ACLICHE2__MANY_VALUED_ATTRIBUTE:
+ getManyValuedAttribute().clear();
+ getManyValuedAttribute().addAll((Collection<? extends String>)newValue);
+ return;
+ case UML2CompareTestProfilePackage.ACLICHE2__SINGLE_VALUED_REFERENCE:
+ setSingleValuedReference((org.eclipse.uml2.uml.Class)newValue);
+ return;
+ case UML2CompareTestProfilePackage.ACLICHE2__MANY_VALUED_REFERENCE:
+ getManyValuedReference().clear();
+ getManyValuedReference().addAll((Collection<? extends org.eclipse.uml2.uml.Class>)newValue);
+ return;
+ case UML2CompareTestProfilePackage.ACLICHE2__BASE_CLASS:
+ setBase_Class((org.eclipse.uml2.uml.Class)newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID) {
+ switch (featureID) {
+ case UML2CompareTestProfilePackage.ACLICHE2__SINGLE_VALUED_ATTRIBUTE:
+ setSingleValuedAttribute(SINGLE_VALUED_ATTRIBUTE_EDEFAULT);
+ return;
+ case UML2CompareTestProfilePackage.ACLICHE2__MANY_VALUED_ATTRIBUTE:
+ getManyValuedAttribute().clear();
+ return;
+ case UML2CompareTestProfilePackage.ACLICHE2__SINGLE_VALUED_REFERENCE:
+ setSingleValuedReference((org.eclipse.uml2.uml.Class)null);
+ return;
+ case UML2CompareTestProfilePackage.ACLICHE2__MANY_VALUED_REFERENCE:
+ getManyValuedReference().clear();
+ return;
+ case UML2CompareTestProfilePackage.ACLICHE2__BASE_CLASS:
+ setBase_Class((org.eclipse.uml2.uml.Class)null);
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID) {
+ switch (featureID) {
+ case UML2CompareTestProfilePackage.ACLICHE2__SINGLE_VALUED_ATTRIBUTE:
+ return SINGLE_VALUED_ATTRIBUTE_EDEFAULT == null ? singleValuedAttribute != null
+ : !SINGLE_VALUED_ATTRIBUTE_EDEFAULT.equals(singleValuedAttribute);
+ case UML2CompareTestProfilePackage.ACLICHE2__MANY_VALUED_ATTRIBUTE:
+ return manyValuedAttribute != null && !manyValuedAttribute.isEmpty();
+ case UML2CompareTestProfilePackage.ACLICHE2__SINGLE_VALUED_REFERENCE:
+ return singleValuedReference != null;
+ case UML2CompareTestProfilePackage.ACLICHE2__MANY_VALUED_REFERENCE:
+ return manyValuedReference != null && !manyValuedReference.isEmpty();
+ case UML2CompareTestProfilePackage.ACLICHE2__BASE_CLASS:
+ return base_Class != null;
+ }
+ return super.eIsSet(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public String toString() {
+ if (eIsProxy()) {
+ return super.toString();
+ }
+
+ StringBuffer result = new StringBuffer(super.toString());
+ result.append(" (singleValuedAttribute: "); //$NON-NLS-1$
+ result.append(singleValuedAttribute);
+ result.append(", manyValuedAttribute: "); //$NON-NLS-1$
+ result.append(manyValuedAttribute);
+ result.append(')');
+ return result.toString();
+ }
+
+} // ACliche2Impl
diff --git a/plugins/org.eclipse.emf.compare.uml2.tests/profile/org/eclipse/emf/compare/uml2/profile/test/uml2comparetestprofile/impl/ACliche3Impl.java b/plugins/org.eclipse.emf.compare.uml2.tests/profile/org/eclipse/emf/compare/uml2/profile/test/uml2comparetestprofile/impl/ACliche3Impl.java
new file mode 100644
index 000000000..07c13cc48
--- /dev/null
+++ b/plugins/org.eclipse.emf.compare.uml2.tests/profile/org/eclipse/emf/compare/uml2/profile/test/uml2comparetestprofile/impl/ACliche3Impl.java
@@ -0,0 +1,168 @@
+/*******************************************************************************
+ * Copyright (c) 2011, 2014 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.profile.test.uml2comparetestprofile.impl;
+
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.compare.uml2.profile.test.uml2comparetestprofile.ACliche3;
+import org.eclipse.emf.compare.uml2.profile.test.uml2comparetestprofile.UML2CompareTestProfilePackage;
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.InternalEObject;
+import org.eclipse.emf.ecore.impl.ENotificationImpl;
+import org.eclipse.emf.ecore.impl.EObjectImpl;
+
+/**
+ * <!-- begin-user-doc --> An implementation of the model object '<em><b>ACliche3</b></em>'. <!-- end-user-doc
+ * -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ * <li>
+ * {@link org.eclipse.emf.compare.uml2.profile.test.uml2comparetestprofile.impl.ACliche3Impl#getBase_Class
+ * <em>Base Class</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class ACliche3Impl extends EObjectImpl implements ACliche3 {
+ /**
+ * The cached value of the '{@link #getBase_Class() <em>Base Class</em>}' reference. <!-- begin-user-doc
+ * --> <!-- end-user-doc -->
+ *
+ * @see #getBase_Class()
+ * @generated
+ * @ordered
+ */
+ protected org.eclipse.uml2.uml.Class base_Class;
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected ACliche3Impl() {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass() {
+ return UML2CompareTestProfilePackage.Literals.ACLICHE3;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public org.eclipse.uml2.uml.Class getBase_Class() {
+ if (base_Class != null && base_Class.eIsProxy()) {
+ InternalEObject oldBase_Class = (InternalEObject)base_Class;
+ base_Class = (org.eclipse.uml2.uml.Class)eResolveProxy(oldBase_Class);
+ if (base_Class != oldBase_Class) {
+ if (eNotificationRequired()) {
+ eNotify(new ENotificationImpl(this, Notification.RESOLVE,
+ UML2CompareTestProfilePackage.ACLICHE3__BASE_CLASS, oldBase_Class, base_Class));
+ }
+ }
+ }
+ return base_Class;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public org.eclipse.uml2.uml.Class basicGetBase_Class() {
+ return base_Class;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setBase_Class(org.eclipse.uml2.uml.Class newBase_Class) {
+ org.eclipse.uml2.uml.Class oldBase_Class = base_Class;
+ base_Class = newBase_Class;
+ if (eNotificationRequired()) {
+ eNotify(new ENotificationImpl(this, Notification.SET,
+ UML2CompareTestProfilePackage.ACLICHE3__BASE_CLASS, oldBase_Class, base_Class));
+ }
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public Object eGet(int featureID, boolean resolve, boolean coreType) {
+ switch (featureID) {
+ case UML2CompareTestProfilePackage.ACLICHE3__BASE_CLASS:
+ if (resolve) {
+ return getBase_Class();
+ }
+ return basicGetBase_Class();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public void eSet(int featureID, Object newValue) {
+ switch (featureID) {
+ case UML2CompareTestProfilePackage.ACLICHE3__BASE_CLASS:
+ setBase_Class((org.eclipse.uml2.uml.Class)newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID) {
+ switch (featureID) {
+ case UML2CompareTestProfilePackage.ACLICHE3__BASE_CLASS:
+ setBase_Class((org.eclipse.uml2.uml.Class)null);
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID) {
+ switch (featureID) {
+ case UML2CompareTestProfilePackage.ACLICHE3__BASE_CLASS:
+ return base_Class != null;
+ }
+ return super.eIsSet(featureID);
+ }
+
+} // ACliche3Impl
diff --git a/plugins/org.eclipse.emf.compare.uml2.tests/profile/org/eclipse/emf/compare/uml2/profile/test/uml2comparetestprofile/impl/AClicheImpl.java b/plugins/org.eclipse.emf.compare.uml2.tests/profile/org/eclipse/emf/compare/uml2/profile/test/uml2comparetestprofile/impl/AClicheImpl.java
index d772bcfdb..203d8dee6 100644
--- a/plugins/org.eclipse.emf.compare.uml2.tests/profile/org/eclipse/emf/compare/uml2/profile/test/uml2comparetestprofile/impl/AClicheImpl.java
+++ b/plugins/org.eclipse.emf.compare.uml2.tests/profile/org/eclipse/emf/compare/uml2/profile/test/uml2comparetestprofile/impl/AClicheImpl.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2011, 2012 Obeo.
+ * Copyright (c) 2011, 2014 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
@@ -145,11 +145,10 @@ public class AClicheImpl extends EObjectImpl implements ACliche {
public void setSingleValuedAttribute(String newSingleValuedAttribute) {
String oldSingleValuedAttribute = singleValuedAttribute;
singleValuedAttribute = newSingleValuedAttribute;
- if (eNotificationRequired()) {
+ if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET,
UML2CompareTestProfilePackage.ACLICHE__SINGLE_VALUED_ATTRIBUTE, oldSingleValuedAttribute,
singleValuedAttribute));
- }
}
/**
@@ -175,11 +174,10 @@ public class AClicheImpl extends EObjectImpl implements ACliche {
InternalEObject oldSingleValuedReference = (InternalEObject)singleValuedReference;
singleValuedReference = (org.eclipse.uml2.uml.Class)eResolveProxy(oldSingleValuedReference);
if (singleValuedReference != oldSingleValuedReference) {
- if (eNotificationRequired()) {
+ if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.RESOLVE,
UML2CompareTestProfilePackage.ACLICHE__SINGLE_VALUED_REFERENCE,
oldSingleValuedReference, singleValuedReference));
- }
}
}
return singleValuedReference;
@@ -202,11 +200,10 @@ public class AClicheImpl extends EObjectImpl implements ACliche {
public void setSingleValuedReference(org.eclipse.uml2.uml.Class newSingleValuedReference) {
org.eclipse.uml2.uml.Class oldSingleValuedReference = singleValuedReference;
singleValuedReference = newSingleValuedReference;
- if (eNotificationRequired()) {
+ if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET,
UML2CompareTestProfilePackage.ACLICHE__SINGLE_VALUED_REFERENCE, oldSingleValuedReference,
singleValuedReference));
- }
}
/**
@@ -239,14 +236,12 @@ public class AClicheImpl extends EObjectImpl implements ACliche {
*/
public org.eclipse.uml2.uml.Class getManyValuedReference(String name, boolean ignoreCase, EClass eClass) {
manyValuedReferenceLoop: for (org.eclipse.uml2.uml.Class manyValuedReference : getManyValuedReference()) {
- if (eClass != null && !eClass.isInstance(manyValuedReference)) {
+ if (eClass != null && !eClass.isInstance(manyValuedReference))
continue manyValuedReferenceLoop;
- }
if (name != null
&& !(ignoreCase ? name.equalsIgnoreCase(manyValuedReference.getName()) : name
- .equals(manyValuedReference.getName()))) {
+ .equals(manyValuedReference.getName())))
continue manyValuedReferenceLoop;
- }
return manyValuedReference;
}
return null;
@@ -262,10 +257,9 @@ public class AClicheImpl extends EObjectImpl implements ACliche {
InternalEObject oldBase_Class = (InternalEObject)base_Class;
base_Class = (org.eclipse.uml2.uml.Class)eResolveProxy(oldBase_Class);
if (base_Class != oldBase_Class) {
- if (eNotificationRequired()) {
+ if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.RESOLVE,
UML2CompareTestProfilePackage.ACLICHE__BASE_CLASS, oldBase_Class, base_Class));
- }
}
}
return base_Class;
@@ -288,10 +282,9 @@ public class AClicheImpl extends EObjectImpl implements ACliche {
public void setBase_Class(org.eclipse.uml2.uml.Class newBase_Class) {
org.eclipse.uml2.uml.Class oldBase_Class = base_Class;
base_Class = newBase_Class;
- if (eNotificationRequired()) {
+ if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET,
UML2CompareTestProfilePackage.ACLICHE__BASE_CLASS, oldBase_Class, base_Class));
- }
}
/**
@@ -307,16 +300,14 @@ public class AClicheImpl extends EObjectImpl implements ACliche {
case UML2CompareTestProfilePackage.ACLICHE__MANY_VALUED_ATTRIBUTE:
return getManyValuedAttribute();
case UML2CompareTestProfilePackage.ACLICHE__SINGLE_VALUED_REFERENCE:
- if (resolve) {
+ if (resolve)
return getSingleValuedReference();
- }
return basicGetSingleValuedReference();
case UML2CompareTestProfilePackage.ACLICHE__MANY_VALUED_REFERENCE:
return getManyValuedReference();
case UML2CompareTestProfilePackage.ACLICHE__BASE_CLASS:
- if (resolve) {
+ if (resolve)
return getBase_Class();
- }
return basicGetBase_Class();
}
return super.eGet(featureID, resolve, coreType);
@@ -409,9 +400,8 @@ public class AClicheImpl extends EObjectImpl implements ACliche {
*/
@Override
public String toString() {
- if (eIsProxy()) {
+ if (eIsProxy())
return super.toString();
- }
StringBuffer result = new StringBuffer(super.toString());
result.append(" (singleValuedAttribute: "); //$NON-NLS-1$
diff --git a/plugins/org.eclipse.emf.compare.uml2.tests/profile/org/eclipse/emf/compare/uml2/profile/test/uml2comparetestprofile/impl/UML2CompareTestProfileFactoryImpl.java b/plugins/org.eclipse.emf.compare.uml2.tests/profile/org/eclipse/emf/compare/uml2/profile/test/uml2comparetestprofile/impl/UML2CompareTestProfileFactoryImpl.java
index 93bc8682a..e8963f206 100644
--- a/plugins/org.eclipse.emf.compare.uml2.tests/profile/org/eclipse/emf/compare/uml2/profile/test/uml2comparetestprofile/impl/UML2CompareTestProfileFactoryImpl.java
+++ b/plugins/org.eclipse.emf.compare.uml2.tests/profile/org/eclipse/emf/compare/uml2/profile/test/uml2comparetestprofile/impl/UML2CompareTestProfileFactoryImpl.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2011, 2012 Obeo.
+ * Copyright (c) 2011, 2014 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
@@ -10,6 +10,7 @@
*******************************************************************************/
package org.eclipse.emf.compare.uml2.profile.test.uml2comparetestprofile.impl;
+import org.eclipse.emf.compare.uml2.profile.test.uml2comparetestprofile.*;
import org.eclipse.emf.compare.uml2.profile.test.uml2comparetestprofile.ACliche;
import org.eclipse.emf.compare.uml2.profile.test.uml2comparetestprofile.UML2CompareTestProfileFactory;
import org.eclipse.emf.compare.uml2.profile.test.uml2comparetestprofile.UML2CompareTestProfilePackage;
@@ -33,7 +34,7 @@ public class UML2CompareTestProfileFactoryImpl extends EFactoryImpl implements U
public static UML2CompareTestProfileFactory init() {
try {
UML2CompareTestProfileFactory theUML2CompareTestProfileFactory = (UML2CompareTestProfileFactory)EPackage.Registry.INSTANCE
- .getEFactory("http://www.eclipse.org/emf/compare/uml2/1.0.0/testprofile"); //$NON-NLS-1$
+ .getEFactory(UML2CompareTestProfilePackage.eNS_URI);
if (theUML2CompareTestProfileFactory != null) {
return theUML2CompareTestProfileFactory;
}
@@ -62,9 +63,13 @@ public class UML2CompareTestProfileFactoryImpl extends EFactoryImpl implements U
switch (eClass.getClassifierID()) {
case UML2CompareTestProfilePackage.ACLICHE:
return createACliche();
+ case UML2CompareTestProfilePackage.ACLICHE2:
+ return createACliche2();
+ case UML2CompareTestProfilePackage.ACLICHE3:
+ return createACliche3();
default:
- throw new IllegalArgumentException("The class '" + eClass.getName() //$NON-NLS-1$
- + "' is not a valid classifier"); //$NON-NLS-1$
+ throw new IllegalArgumentException(
+ "The class '" + eClass.getName() + "' is not a valid classifier"); //$NON-NLS-1$ //$NON-NLS-2$
}
}
@@ -83,6 +88,26 @@ public class UML2CompareTestProfileFactoryImpl extends EFactoryImpl implements U
*
* @generated
*/
+ public ACliche2 createACliche2() {
+ ACliche2Impl aCliche2 = new ACliche2Impl();
+ return aCliche2;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public ACliche3 createACliche3() {
+ ACliche3Impl aCliche3 = new ACliche3Impl();
+ return aCliche3;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
public UML2CompareTestProfilePackage getUML2CompareTestProfilePackage() {
return (UML2CompareTestProfilePackage)getEPackage();
}
diff --git a/plugins/org.eclipse.emf.compare.uml2.tests/profile/org/eclipse/emf/compare/uml2/profile/test/uml2comparetestprofile/impl/UML2CompareTestProfilePackageImpl.java b/plugins/org.eclipse.emf.compare.uml2.tests/profile/org/eclipse/emf/compare/uml2/profile/test/uml2comparetestprofile/impl/UML2CompareTestProfilePackageImpl.java
index 966ebb9c7..5118a9832 100644
--- a/plugins/org.eclipse.emf.compare.uml2.tests/profile/org/eclipse/emf/compare/uml2/profile/test/uml2comparetestprofile/impl/UML2CompareTestProfilePackageImpl.java
+++ b/plugins/org.eclipse.emf.compare.uml2.tests/profile/org/eclipse/emf/compare/uml2/profile/test/uml2comparetestprofile/impl/UML2CompareTestProfilePackageImpl.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2011, 2012 Obeo.
+ * Copyright (c) 2011, 2014 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
@@ -11,6 +11,8 @@
package org.eclipse.emf.compare.uml2.profile.test.uml2comparetestprofile.impl;
import org.eclipse.emf.compare.uml2.profile.test.uml2comparetestprofile.ACliche;
+import org.eclipse.emf.compare.uml2.profile.test.uml2comparetestprofile.ACliche2;
+import org.eclipse.emf.compare.uml2.profile.test.uml2comparetestprofile.ACliche3;
import org.eclipse.emf.compare.uml2.profile.test.uml2comparetestprofile.UML2CompareTestProfileFactory;
import org.eclipse.emf.compare.uml2.profile.test.uml2comparetestprofile.UML2CompareTestProfilePackage;
import org.eclipse.emf.ecore.EAttribute;
@@ -18,6 +20,7 @@ import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.EPackage;
import org.eclipse.emf.ecore.EReference;
import org.eclipse.emf.ecore.impl.EPackageImpl;
+import org.eclipse.uml2.types.TypesPackage;
import org.eclipse.uml2.uml.UMLPackage;
/**
@@ -34,6 +37,20 @@ public class UML2CompareTestProfilePackageImpl extends EPackageImpl implements U
private EClass aClicheEClass = null;
/**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ private EClass aCliche2EClass = null;
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ private EClass aCliche3EClass = 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>
@@ -71,10 +88,9 @@ public class UML2CompareTestProfilePackageImpl extends EPackageImpl implements U
* @generated
*/
public static UML2CompareTestProfilePackage init() {
- if (isInited) {
+ if (isInited)
return (UML2CompareTestProfilePackage)EPackage.Registry.INSTANCE
.getEPackage(UML2CompareTestProfilePackage.eNS_URI);
- }
// Obtain or create and register package
UML2CompareTestProfilePackageImpl theUML2CompareTestProfilePackage = (UML2CompareTestProfilePackageImpl)(EPackage.Registry.INSTANCE
@@ -160,6 +176,78 @@ public class UML2CompareTestProfilePackageImpl extends EPackageImpl implements U
*
* @generated
*/
+ public EClass getACliche2() {
+ return aCliche2EClass;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EAttribute getACliche2_SingleValuedAttribute() {
+ return (EAttribute)aCliche2EClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EAttribute getACliche2_ManyValuedAttribute() {
+ return (EAttribute)aCliche2EClass.getEStructuralFeatures().get(1);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EReference getACliche2_SingleValuedReference() {
+ return (EReference)aCliche2EClass.getEStructuralFeatures().get(2);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EReference getACliche2_ManyValuedReference() {
+ return (EReference)aCliche2EClass.getEStructuralFeatures().get(3);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EReference getACliche2_Base_Class() {
+ return (EReference)aCliche2EClass.getEStructuralFeatures().get(4);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EClass getACliche3() {
+ return aCliche3EClass;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EReference getACliche3_Base_Class() {
+ return (EReference)aCliche3EClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
public UML2CompareTestProfileFactory getUML2CompareTestProfileFactory() {
return (UML2CompareTestProfileFactory)getEFactoryInstance();
}
@@ -178,9 +266,8 @@ public class UML2CompareTestProfilePackageImpl extends EPackageImpl implements U
* @generated
*/
public void createPackageContents() {
- if (isCreated) {
+ if (isCreated)
return;
- }
isCreated = true;
// Create classes and their features
@@ -190,6 +277,16 @@ public class UML2CompareTestProfilePackageImpl extends EPackageImpl implements U
createEReference(aClicheEClass, ACLICHE__SINGLE_VALUED_REFERENCE);
createEReference(aClicheEClass, ACLICHE__MANY_VALUED_REFERENCE);
createEReference(aClicheEClass, ACLICHE__BASE_CLASS);
+
+ aCliche2EClass = createEClass(ACLICHE2);
+ createEAttribute(aCliche2EClass, ACLICHE2__SINGLE_VALUED_ATTRIBUTE);
+ createEAttribute(aCliche2EClass, ACLICHE2__MANY_VALUED_ATTRIBUTE);
+ createEReference(aCliche2EClass, ACLICHE2__SINGLE_VALUED_REFERENCE);
+ createEReference(aCliche2EClass, ACLICHE2__MANY_VALUED_REFERENCE);
+ createEReference(aCliche2EClass, ACLICHE2__BASE_CLASS);
+
+ aCliche3EClass = createEClass(ACLICHE3);
+ createEReference(aCliche3EClass, ACLICHE3__BASE_CLASS);
}
/**
@@ -206,9 +303,8 @@ public class UML2CompareTestProfilePackageImpl extends EPackageImpl implements U
* @generated
*/
public void initializePackageContents() {
- if (isInitialized) {
+ if (isInitialized)
return;
- }
isInitialized = true;
// Initialize package
@@ -217,6 +313,8 @@ public class UML2CompareTestProfilePackageImpl extends EPackageImpl implements U
setNsURI(eNS_URI);
// Obtain other dependent packages
+ TypesPackage theTypesPackage = (TypesPackage)EPackage.Registry.INSTANCE
+ .getEPackage(TypesPackage.eNS_URI);
UMLPackage theUMLPackage = (UMLPackage)EPackage.Registry.INSTANCE.getEPackage(UMLPackage.eNS_URI);
// Create type parameters
@@ -226,29 +324,84 @@ public class UML2CompareTestProfilePackageImpl extends EPackageImpl implements U
// Add supertypes to classes
// Initialize classes and features; add operations and parameters
- initEClass(aClicheEClass, ACliche.class, "ACliche", !IS_ABSTRACT, !IS_INTERFACE, //$NON-NLS-1$
- IS_GENERATED_INSTANCE_CLASS);
- initEAttribute(getACliche_SingleValuedAttribute(), ecorePackage.getEString(),
- "singleValuedAttribute", null, 0, 1, ACliche.class, !IS_TRANSIENT, !IS_VOLATILE, //$NON-NLS-1$
- IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
- initEAttribute(getACliche_ManyValuedAttribute(), ecorePackage.getEString(),
- "manyValuedAttribute", //$NON-NLS-1$
- null, 0, -1, ACliche.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE,
- !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getACliche_SingleValuedReference(), theUMLPackage.getClass_(), null,
- "singleValuedReference", null, 0, 1, ACliche.class, !IS_TRANSIENT, !IS_VOLATILE, //$NON-NLS-1$
- IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED,
- !IS_ORDERED);
- initEReference(getACliche_ManyValuedReference(), theUMLPackage.getClass_(), null,
- "manyValuedReference", null, 0, -1, ACliche.class, !IS_TRANSIENT, !IS_VOLATILE, //$NON-NLS-1$
- IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED,
- IS_ORDERED);
- initEReference(getACliche_Base_Class(), theUMLPackage.getClass_(), null, "base_Class", null, 1, 1, //$NON-NLS-1$
- ACliche.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES,
- !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
+ initEClass(aClicheEClass, ACliche.class,
+ "ACliche", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$
+ initEAttribute(
+ getACliche_SingleValuedAttribute(),
+ theTypesPackage.getString(),
+ "singleValuedAttribute", null, 0, 1, ACliche.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); //$NON-NLS-1$
+ initEAttribute(
+ getACliche_ManyValuedAttribute(),
+ theTypesPackage.getString(),
+ "manyValuedAttribute", null, 0, -1, ACliche.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$
+ initEReference(
+ getACliche_SingleValuedReference(),
+ theUMLPackage.getClass_(),
+ null,
+ "singleValuedReference", null, 0, 1, ACliche.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); //$NON-NLS-1$
+ initEReference(
+ getACliche_ManyValuedReference(),
+ theUMLPackage.getClass_(),
+ null,
+ "manyValuedReference", null, 0, -1, ACliche.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$
+ initEReference(
+ getACliche_Base_Class(),
+ theUMLPackage.getClass_(),
+ null,
+ "base_Class", null, 1, 1, ACliche.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); //$NON-NLS-1$
+
+ initEClass(aCliche2EClass, ACliche2.class,
+ "ACliche2", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$
+ initEAttribute(
+ getACliche2_SingleValuedAttribute(),
+ theTypesPackage.getString(),
+ "singleValuedAttribute", null, 0, 1, ACliche2.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); //$NON-NLS-1$
+ initEAttribute(
+ getACliche2_ManyValuedAttribute(),
+ theTypesPackage.getString(),
+ "manyValuedAttribute", null, 0, -1, ACliche2.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$
+ initEReference(
+ getACliche2_SingleValuedReference(),
+ theUMLPackage.getClass_(),
+ null,
+ "singleValuedReference", null, 0, 1, ACliche2.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); //$NON-NLS-1$
+ initEReference(
+ getACliche2_ManyValuedReference(),
+ theUMLPackage.getClass_(),
+ null,
+ "manyValuedReference", null, 0, -1, ACliche2.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$
+ initEReference(
+ getACliche2_Base_Class(),
+ theUMLPackage.getClass_(),
+ null,
+ "base_Class", null, 1, 1, ACliche2.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); //$NON-NLS-1$
+
+ initEClass(aCliche3EClass, ACliche3.class,
+ "ACliche3", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$
+ initEReference(
+ getACliche3_Base_Class(),
+ theUMLPackage.getClass_(),
+ null,
+ "base_Class", null, 1, 1, ACliche3.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); //$NON-NLS-1$
// Create resource
createResource(eNS_URI);
+
+ // Create annotations
+ // http://www.eclipse.org/uml2/2.0.0/UML
+ createUMLAnnotations();
+ }
+
+ /**
+ * Initializes the annotations for <b>http://www.eclipse.org/uml2/2.0.0/UML</b>. <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected void createUMLAnnotations() {
+ String source = "http://www.eclipse.org/uml2/2.0.0/UML"; //$NON-NLS-1$
+ addAnnotation(this, source, new String[] {"originalName", "UML2CompareTestProfile" //$NON-NLS-1$ //$NON-NLS-2$
+ });
}
} // UML2CompareTestProfilePackageImpl
diff --git a/plugins/org.eclipse.emf.compare.uml2.tests/profile/org/eclipse/emf/compare/uml2/profile/test/uml2comparetestprofile/util/UML2CompareTestProfileAdapterFactory.java b/plugins/org.eclipse.emf.compare.uml2.tests/profile/org/eclipse/emf/compare/uml2/profile/test/uml2comparetestprofile/util/UML2CompareTestProfileAdapterFactory.java
index d894f2d45..5db335f2f 100644
--- a/plugins/org.eclipse.emf.compare.uml2.tests/profile/org/eclipse/emf/compare/uml2/profile/test/uml2comparetestprofile/util/UML2CompareTestProfileAdapterFactory.java
+++ b/plugins/org.eclipse.emf.compare.uml2.tests/profile/org/eclipse/emf/compare/uml2/profile/test/uml2comparetestprofile/util/UML2CompareTestProfileAdapterFactory.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2011, 2012 Obeo.
+ * Copyright (c) 2011, 2014 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
@@ -13,6 +13,7 @@ package org.eclipse.emf.compare.uml2.profile.test.uml2comparetestprofile.util;
import org.eclipse.emf.common.notify.Adapter;
import org.eclipse.emf.common.notify.Notifier;
import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl;
+import org.eclipse.emf.compare.uml2.profile.test.uml2comparetestprofile.*;
import org.eclipse.emf.compare.uml2.profile.test.uml2comparetestprofile.ACliche;
import org.eclipse.emf.compare.uml2.profile.test.uml2comparetestprofile.UML2CompareTestProfilePackage;
import org.eclipse.emf.ecore.EObject;
@@ -75,6 +76,16 @@ public class UML2CompareTestProfileAdapterFactory extends AdapterFactoryImpl {
}
@Override
+ public Adapter caseACliche2(ACliche2 object) {
+ return createACliche2Adapter();
+ }
+
+ @Override
+ public Adapter caseACliche3(ACliche3 object) {
+ return createACliche3Adapter();
+ }
+
+ @Override
public Adapter defaultCase(EObject object) {
return createEObjectAdapter();
}
@@ -108,6 +119,34 @@ public class UML2CompareTestProfileAdapterFactory extends AdapterFactoryImpl {
}
/**
+ * Creates a new adapter for an object of class '
+ * {@link org.eclipse.emf.compare.uml2.profile.test.uml2comparetestprofile.ACliche2 <em>ACliche2</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.profile.test.uml2comparetestprofile.ACliche2
+ * @generated
+ */
+ public Adapter createACliche2Adapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '
+ * {@link org.eclipse.emf.compare.uml2.profile.test.uml2comparetestprofile.ACliche3 <em>ACliche3</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.profile.test.uml2comparetestprofile.ACliche3
+ * @generated
+ */
+ public Adapter createACliche3Adapter() {
+ return null;
+ }
+
+ /**
* Creates a new adapter for the default case. <!-- begin-user-doc --> This default implementation returns
* null. <!-- end-user-doc -->
*
diff --git a/plugins/org.eclipse.emf.compare.uml2.tests/profile/org/eclipse/emf/compare/uml2/profile/test/uml2comparetestprofile/util/UML2CompareTestProfileSwitch.java b/plugins/org.eclipse.emf.compare.uml2.tests/profile/org/eclipse/emf/compare/uml2/profile/test/uml2comparetestprofile/util/UML2CompareTestProfileSwitch.java
index 5edeed3bc..daf10ba5b 100644
--- a/plugins/org.eclipse.emf.compare.uml2.tests/profile/org/eclipse/emf/compare/uml2/profile/test/uml2comparetestprofile/util/UML2CompareTestProfileSwitch.java
+++ b/plugins/org.eclipse.emf.compare.uml2.tests/profile/org/eclipse/emf/compare/uml2/profile/test/uml2comparetestprofile/util/UML2CompareTestProfileSwitch.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2011, 2012 Obeo.
+ * Copyright (c) 2011, 2014 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
@@ -10,33 +10,33 @@
*******************************************************************************/
package org.eclipse.emf.compare.uml2.profile.test.uml2comparetestprofile.util;
-import java.util.List;
-
import org.eclipse.emf.compare.uml2.profile.test.uml2comparetestprofile.ACliche;
+import org.eclipse.emf.compare.uml2.profile.test.uml2comparetestprofile.ACliche2;
+import org.eclipse.emf.compare.uml2.profile.test.uml2comparetestprofile.ACliche3;
import org.eclipse.emf.compare.uml2.profile.test.uml2comparetestprofile.UML2CompareTestProfilePackage;
-import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.ecore.EPackage;
+import org.eclipse.emf.ecore.util.Switch;
/**
* <!-- begin-user-doc --> The <b>Switch</b> for the model's inheritance hierarchy. It supports the call
* {@link #doSwitch(EObject) doSwitch(object)} to invoke the <code>caseXXX</code> method for each class of the
* model, starting with the actual class of the object and proceeding up the inheritance hierarchy until a
* non-null result is returned, which is the result of the switch. <!-- end-user-doc -->
- *
* @see org.eclipse.emf.compare.uml2.profile.test.uml2comparetestprofile.UML2CompareTestProfilePackage
* @generated
*/
-public class UML2CompareTestProfileSwitch<T> {
+public class UML2CompareTestProfileSwitch<T> extends Switch<T> {
/**
- * The cached model package <!-- begin-user-doc --> <!-- end-user-doc -->
- *
+ * The cached model package
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
* @generated
*/
protected static UML2CompareTestProfilePackage modelPackage;
/**
- * Creates an instance of the switch. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
+ * Creates an instance of the switch.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
* @generated
*/
public UML2CompareTestProfileSwitch() {
@@ -46,61 +46,55 @@ public class UML2CompareTestProfileSwitch<T> {
}
/**
- * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields
- * that result. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @return the first non-null result returned by a <code>caseXXX</code> call.
- * @generated
- */
- public T doSwitch(EObject theEObject) {
- return doSwitch(theEObject.eClass(), theEObject);
- }
-
- /**
- * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields
- * that result. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @return the first non-null result returned by a <code>caseXXX</code> call.
+ * Checks whether this is a switch for the given package.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @parameter ePackage the package in question.
+ * @return whether this is a switch for the given package.
* @generated
*/
- protected T doSwitch(EClass theEClass, EObject theEObject) {
- if (theEClass.eContainer() == modelPackage) {
- return doSwitch(theEClass.getClassifierID(), theEObject);
- } else {
- List<EClass> eSuperTypes = theEClass.getESuperTypes();
- return eSuperTypes.isEmpty() ? defaultCase(theEObject) : doSwitch(eSuperTypes.get(0), theEObject);
- }
+ @Override
+ protected boolean isSwitchFor(EPackage ePackage) {
+ return ePackage == modelPackage;
}
/**
- * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields
- * that result. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
+ * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
* @return the first non-null result returned by a <code>caseXXX</code> call.
* @generated
*/
+ @Override
protected T doSwitch(int classifierID, EObject theEObject) {
switch (classifierID) {
case UML2CompareTestProfilePackage.ACLICHE: {
ACliche aCliche = (ACliche)theEObject;
T result = caseACliche(aCliche);
- if (result == null) {
- result = defaultCase(theEObject);
- }
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case UML2CompareTestProfilePackage.ACLICHE2: {
+ ACliche2 aCliche2 = (ACliche2)theEObject;
+ T result = caseACliche2(aCliche2);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case UML2CompareTestProfilePackage.ACLICHE3: {
+ ACliche3 aCliche3 = (ACliche3)theEObject;
+ T result = caseACliche3(aCliche3);
+ if (result == null) result = defaultCase(theEObject);
return result;
}
- default:
- return defaultCase(theEObject);
+ default: return defaultCase(theEObject);
}
}
/**
- * Returns the result of interpreting the object as an instance of '<em>ACliche</em>'. <!-- begin-user-doc
+ * Returns the result of interpreting the object as an instance of '<em>ACliche</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.
+ * @param object the target of the switch.
* @return the result of interpreting the object as an instance of '<em>ACliche</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
@@ -110,16 +104,46 @@ public class UML2CompareTestProfileSwitch<T> {
}
/**
- * Returns the result of interpreting the object as an instance of '<em>EObject</em>'. <!-- begin-user-doc
+ * Returns the result of interpreting the object as an instance of '<em>ACliche2</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>ACliche2</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseACliche2(ACliche2 object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>ACliche3</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>ACliche3</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseACliche3(ACliche3 object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>EObject</em>'.
+ * <!-- begin-user-doc
* --> This implementation returns null; returning a non-null result will terminate the switch, but this
* is the last case anyway. <!-- end-user-doc -->
- *
- * @param object
- * the target of the switch.
+ * @param object the target of the switch.
* @return the result of interpreting the object as an instance of '<em>EObject</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject)
* @generated
*/
+ @Override
public T defaultCase(EObject object) {
return null;
}

Back to the top