Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 » Profiles diffs between 2.1 and 2.0
Profiles diffs between 2.1 and 2.0 [message #477285] Mon, 28 April 2008 13:54 Go to next message
Eclipse UserFriend
Originally posted by: flavio.p.duarte.gmail.com

I am using Eclipse UML asa communication language between two tools. The
UML model is using profiles and one tool uses UML2 2.0 while the other
uses UML2 2.1. The execution flow is tool using UML2 2.1 generates the
model that will be processed by the tool using 2.0. I have a sample file
generate with 2.0 which works. The files I generate using 2.1 API don't
work the way they are generated, I have to copy the second line from the
sample file as well as the profile lines, which means the model itself is
being correctly generated. Does anyone have a clue how I can fix this ?

thanks,
Flavio

2nd line UML2 2.0:
<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:MagicDrawProfile="http:///schemas/MagicDrawProfile/_dgW50Av2Ed25t6m0yl3sXA/0"
xmlns:PAprofile="http:///schemas/PAprofile/_dfxD8Av2Ed25t6m0yl3sXA/0"
xmlns:REprofile="http:///schemas/REprofile/_dfUYAAv2Ed25t6m0yl3sXA/0"
xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore"
xmlns:uml="http://www.eclipse.org/uml2/2.0.0/UML"
xsi:schemaLocation="http:///schemas/MagicDrawProfile/_dgW50Av2Ed25t6m0yl3sXA/0
UML_Standard_Profile.MagicDraw_Profile.profile.uml#_duNvuAv2 Ed25t6m0yl3sXA
http:///schemas/PAprofile/_dfxD8Av2Ed25t6m0yl3sXA/0
UML_Profile_for_Schedulabilty,_Performance_and_Time_Specific ation.Analysis_Models.PAprofile.profile.uml#_duNxcQv2Ed25t6m 0yl3sXA
http:///schemas/REprofile/_dfUYAAv2Ed25t6m0yl3sXA/0
UML_Profile_for_Schedulabilty,_Performance_and_Time_Specific ation.Analysis_Models.REprofile.profile.uml#_dteIwgv2Ed25t6m 0yl3sXA ">


2nd line UML2 2.1:
<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:MagicDrawProfile="http:///schemas/MagicDrawProfile/_DaJJ4BLQEd2mLOpMQjgnTQ/1"
xmlns:PAprofile="http:///schemas/PAprofile/_Df828BLQEd2mLOpMQjgnTQ/1"
xmlns:REprofile="http:///schemas/REprofile/_DedpMBLQEd2mLOpMQjgnTQ/1"
xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore"
xmlns:uml="http://www.eclipse.org/uml2/2.1.0/UML"
xsi:schemaLocation="http:///schemas/MagicDrawProfile/_DaJJ4BLQEd2mLOpMQjgnTQ/1
UML_Standard_Profile.MagicDraw_Profile.profile.uml#_DaJJ4RLQ Ed2mLOpMQjgnTQ
http:///schemas/PAprofile/_Df828BLQEd2mLOpMQjgnTQ/1
UML_Profile_for_Schedulabilty,_Performance_and_Time_Specific ation.Analysis_Models.PAprofile.profile.uml#_Df828RLQEd2mLOp MQjgnTQ
http:///schemas/REprofile/_DedpMBLQEd2mLOpMQjgnTQ/1
UML_Profile_for_Schedulabilty,_Performance_and_Time_Specific ation.Analysis_Models.REprofile.profile.uml#_DenaMBLQEd2mLOp MQjgnTQ ">



Profile lines UML2 2.0:
<profileApplication
xmi:id="_8f8028c_1072104765343_241365_4238profileApplicationData ">
<eAnnotations xmi:id="_dtxskQv2Ed25t6m0yl3sXA"
source="http://www.eclipse.org/uml2/2.0.0/UML">
<references xmi:type="ecore:EPackage"
href=" UML_Profile_for_Schedulabilty,_Performance_and_Time_Specific ation.Analysis_Models.PAprofile.profile.uml#_duNxcQv2Ed25t6m 0yl3sXA "/>
</eAnnotations>
<appliedProfile
href=" UML_Profile_for_Schedulabilty,_Performance_and_Time_Specific ation.Analysis_Models.PAprofile.profile.uml#_8f8028c_1072104 765343_241365_4238 "/>
</profileApplication>


Profile lines UML2 2.1:
<profileApplication xmi:id="_Dovm2RLQEd2mLOpMQjgnTQ">
<eAnnotations xmi:id="_Dovm2hLQEd2mLOpMQjgnTQ"
source="http://www.eclipse.org/uml2/2.0.0/UML">
<references xmi:type="ecore:EPackage"
href=" UML_Profile_for_Schedulabilty,_Performance_and_Time_Specific ation.Analysis_Models.PAprofile.profile.uml#_Df828RLQEd2mLOp MQjgnTQ "/>
</eAnnotations>
<appliedProfile
href=" UML_Profile_for_Schedulabilty,_Performance_and_Time_Specific ation.Analysis_Models.PAprofile.profile.uml#_8f8028c_1072104 765343_241365_4238 "/>
</profileApplication>
Re: Profiles diffs between 2.1 and 2.0 [message #477288 is a reply to message #477285] Tue, 29 April 2008 03:22 Go to previous message
james bruck is currently offline james bruckFriend
Messages: 1724
Registered: July 2009
Senior Member
Hi Flavio,

What do you mean exactly by "The files I generate using 2.1 API don't
work..."? What are the errors that you are seeing?
Generally speaking the UML2 API supports forward migration but not backward
migration. Naturally, the older version of the API will not know about the
newer content in profiles and changes in metamodel content.

Cheers,
- James.

"Flavio Duarte" <flavio.p.duarte@gmail.com> wrote in message
news:b61b6803fc88dc13e4b3065b4cd96b08$1@www.eclipse.org...
>I am using Eclipse UML asa communication language between two tools. The
>UML model is using profiles and one tool uses UML2 2.0 while the other uses
>UML2 2.1. The execution flow is tool using UML2 2.1 generates the model
>that will be processed by the tool using 2.0. I have a sample file generate
>with 2.0 which works. The files I generate using 2.1 API don't work the way
>they are generated, I have to copy the second line from the sample file as
>well as the profile lines, which means the model itself is being correctly
>generated. Does anyone have a clue how I can fix this ?
>
> thanks,
> Flavio
>
> 2nd line UML2 2.0:
> <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:MagicDrawProfile="http:///schemas/MagicDrawProfile/_dgW50Av2Ed25t6m0yl3sXA/0"
> xmlns:PAprofile="http:///schemas/PAprofile/_dfxD8Av2Ed25t6m0yl3sXA/0"
> xmlns:REprofile="http:///schemas/REprofile/_dfUYAAv2Ed25t6m0yl3sXA/0"
> xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore"
> xmlns:uml="http://www.eclipse.org/uml2/2.0.0/UML"
> xsi:schemaLocation="http:///schemas/MagicDrawProfile/_dgW50Av2Ed25t6m0yl3sXA/0
> UML_Standard_Profile.MagicDraw_Profile.profile.uml#_duNvuAv2 Ed25t6m0yl3sXA
> http:///schemas/PAprofile/_dfxD8Av2Ed25t6m0yl3sXA/0
> UML_Profile_for_Schedulabilty,_Performance_and_Time_Specific ation.Analysis_Models.PAprofile.profile.uml#_duNxcQv2Ed25t6m 0yl3sXA
> http:///schemas/REprofile/_dfUYAAv2Ed25t6m0yl3sXA/0
> UML_Profile_for_Schedulabilty,_Performance_and_Time_Specific ation.Analysis_Models.REprofile.profile.uml#_dteIwgv2Ed25t6m 0yl3sXA ">
>
>
> 2nd line UML2 2.1:
> <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:MagicDrawProfile="http:///schemas/MagicDrawProfile/_DaJJ4BLQEd2mLOpMQjgnTQ/1"
> xmlns:PAprofile="http:///schemas/PAprofile/_Df828BLQEd2mLOpMQjgnTQ/1"
> xmlns:REprofile="http:///schemas/REprofile/_DedpMBLQEd2mLOpMQjgnTQ/1"
> xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore"
> xmlns:uml="http://www.eclipse.org/uml2/2.1.0/UML"
> xsi:schemaLocation="http:///schemas/MagicDrawProfile/_DaJJ4BLQEd2mLOpMQjgnTQ/1
> UML_Standard_Profile.MagicDraw_Profile.profile.uml#_DaJJ4RLQ Ed2mLOpMQjgnTQ
> http:///schemas/PAprofile/_Df828BLQEd2mLOpMQjgnTQ/1
> UML_Profile_for_Schedulabilty,_Performance_and_Time_Specific ation.Analysis_Models.PAprofile.profile.uml#_Df828RLQEd2mLOp MQjgnTQ
> http:///schemas/REprofile/_DedpMBLQEd2mLOpMQjgnTQ/1
> UML_Profile_for_Schedulabilty,_Performance_and_Time_Specific ation.Analysis_Models.REprofile.profile.uml#_DenaMBLQEd2mLOp MQjgnTQ ">
>
>
>
> Profile lines UML2 2.0:
> <profileApplication
> xmi:id="_8f8028c_1072104765343_241365_4238profileApplicationData ">
> <eAnnotations xmi:id="_dtxskQv2Ed25t6m0yl3sXA"
> source="http://www.eclipse.org/uml2/2.0.0/UML">
> <references xmi:type="ecore:EPackage"
> href=" UML_Profile_for_Schedulabilty,_Performance_and_Time_Specific ation.Analysis_Models.PAprofile.profile.uml#_duNxcQv2Ed25t6m 0yl3sXA "/>
> </eAnnotations>
> <appliedProfile
> href=" UML_Profile_for_Schedulabilty,_Performance_and_Time_Specific ation.Analysis_Models.PAprofile.profile.uml#_8f8028c_1072104 765343_241365_4238 "/>
> </profileApplication>
>
>
> Profile lines UML2 2.1:
> <profileApplication xmi:id="_Dovm2RLQEd2mLOpMQjgnTQ">
> <eAnnotations xmi:id="_Dovm2hLQEd2mLOpMQjgnTQ"
> source="http://www.eclipse.org/uml2/2.0.0/UML">
> <references xmi:type="ecore:EPackage"
> href=" UML_Profile_for_Schedulabilty,_Performance_and_Time_Specific ation.Analysis_Models.PAprofile.profile.uml#_Df828RLQEd2mLOp MQjgnTQ "/>
> </eAnnotations>
> <appliedProfile
> href=" UML_Profile_for_Schedulabilty,_Performance_and_Time_Specific ation.Analysis_Models.PAprofile.profile.uml#_8f8028c_1072104 765343_241365_4238 "/>
> </profileApplication>
>
>
Re: Profiles diffs between 2.1 and 2.0 [message #626446 is a reply to message #477285] Tue, 29 April 2008 03:22 Go to previous message
james bruck is currently offline james bruckFriend
Messages: 1724
Registered: July 2009
Senior Member
Hi Flavio,

What do you mean exactly by "The files I generate using 2.1 API don't
work..."? What are the errors that you are seeing?
Generally speaking the UML2 API supports forward migration but not backward
migration. Naturally, the older version of the API will not know about the
newer content in profiles and changes in metamodel content.

Cheers,
- James.

"Flavio Duarte" <flavio.p.duarte@gmail.com> wrote in message
news:b61b6803fc88dc13e4b3065b4cd96b08$1@www.eclipse.org...
>I am using Eclipse UML asa communication language between two tools. The
>UML model is using profiles and one tool uses UML2 2.0 while the other uses
>UML2 2.1. The execution flow is tool using UML2 2.1 generates the model
>that will be processed by the tool using 2.0. I have a sample file generate
>with 2.0 which works. The files I generate using 2.1 API don't work the way
>they are generated, I have to copy the second line from the sample file as
>well as the profile lines, which means the model itself is being correctly
>generated. Does anyone have a clue how I can fix this ?
>
> thanks,
> Flavio
>
> 2nd line UML2 2.0:
> <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:MagicDrawProfile="http:///schemas/MagicDrawProfile/_dgW50Av2Ed25t6m0yl3sXA/0"
> xmlns:PAprofile="http:///schemas/PAprofile/_dfxD8Av2Ed25t6m0yl3sXA/0"
> xmlns:REprofile="http:///schemas/REprofile/_dfUYAAv2Ed25t6m0yl3sXA/0"
> xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore"
> xmlns:uml="http://www.eclipse.org/uml2/2.0.0/UML"
> xsi:schemaLocation="http:///schemas/MagicDrawProfile/_dgW50Av2Ed25t6m0yl3sXA/0
> UML_Standard_Profile.MagicDraw_Profile.profile.uml#_duNvuAv2 Ed25t6m0yl3sXA
> http:///schemas/PAprofile/_dfxD8Av2Ed25t6m0yl3sXA/0
> UML_Profile_for_Schedulabilty,_Performance_and_Time_Specific ation.Analysis_Models.PAprofile.profile.uml#_duNxcQv2Ed25t6m 0yl3sXA
> http:///schemas/REprofile/_dfUYAAv2Ed25t6m0yl3sXA/0
> UML_Profile_for_Schedulabilty,_Performance_and_Time_Specific ation.Analysis_Models.REprofile.profile.uml#_dteIwgv2Ed25t6m 0yl3sXA ">
>
>
> 2nd line UML2 2.1:
> <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:MagicDrawProfile="http:///schemas/MagicDrawProfile/_DaJJ4BLQEd2mLOpMQjgnTQ/1"
> xmlns:PAprofile="http:///schemas/PAprofile/_Df828BLQEd2mLOpMQjgnTQ/1"
> xmlns:REprofile="http:///schemas/REprofile/_DedpMBLQEd2mLOpMQjgnTQ/1"
> xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore"
> xmlns:uml="http://www.eclipse.org/uml2/2.1.0/UML"
> xsi:schemaLocation="http:///schemas/MagicDrawProfile/_DaJJ4BLQEd2mLOpMQjgnTQ/1
> UML_Standard_Profile.MagicDraw_Profile.profile.uml#_DaJJ4RLQ Ed2mLOpMQjgnTQ
> http:///schemas/PAprofile/_Df828BLQEd2mLOpMQjgnTQ/1
> UML_Profile_for_Schedulabilty,_Performance_and_Time_Specific ation.Analysis_Models.PAprofile.profile.uml#_Df828RLQEd2mLOp MQjgnTQ
> http:///schemas/REprofile/_DedpMBLQEd2mLOpMQjgnTQ/1
> UML_Profile_for_Schedulabilty,_Performance_and_Time_Specific ation.Analysis_Models.REprofile.profile.uml#_DenaMBLQEd2mLOp MQjgnTQ ">
>
>
>
> Profile lines UML2 2.0:
> <profileApplication
> xmi:id="_8f8028c_1072104765343_241365_4238profileApplicationData ">
> <eAnnotations xmi:id="_dtxskQv2Ed25t6m0yl3sXA"
> source="http://www.eclipse.org/uml2/2.0.0/UML">
> <references xmi:type="ecore:EPackage"
> href=" UML_Profile_for_Schedulabilty,_Performance_and_Time_Specific ation.Analysis_Models.PAprofile.profile.uml#_duNxcQv2Ed25t6m 0yl3sXA "/>
> </eAnnotations>
> <appliedProfile
> href=" UML_Profile_for_Schedulabilty,_Performance_and_Time_Specific ation.Analysis_Models.PAprofile.profile.uml#_8f8028c_1072104 765343_241365_4238 "/>
> </profileApplication>
>
>
> Profile lines UML2 2.1:
> <profileApplication xmi:id="_Dovm2RLQEd2mLOpMQjgnTQ">
> <eAnnotations xmi:id="_Dovm2hLQEd2mLOpMQjgnTQ"
> source="http://www.eclipse.org/uml2/2.0.0/UML">
> <references xmi:type="ecore:EPackage"
> href=" UML_Profile_for_Schedulabilty,_Performance_and_Time_Specific ation.Analysis_Models.PAprofile.profile.uml#_Df828RLQEd2mLOp MQjgnTQ "/>
> </eAnnotations>
> <appliedProfile
> href=" UML_Profile_for_Schedulabilty,_Performance_and_Time_Specific ation.Analysis_Models.PAprofile.profile.uml#_8f8028c_1072104 765343_241365_4238 "/>
> </profileApplication>
>
>
Previous Topic:Profiles diffs between 2.1 and 2.0
Next Topic:how to a put programmatically a dependency element in a package
Goto Forum:
  


Current Time: Fri Mar 29 00:39:39 GMT 2024

Powered by FUDForum. Page generated in 0.02691 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top