ETL and UML Stereotypes [message #5846] |
Thu, 04 December 2008 13:36  |
Eclipse User |
|
|
|
Hello,
I am a newbie to ETL and I am interested in UML-based transformations.
So, is ETL being able to handle (apply/unapply) UML Profiles and UML
Stereotypes like ATL ?
If so, are the commands the same like ATL (applyProfile/applyStereotype)
Regards,
Thomas
|
|
|
|
|
Re: ETL and UML Stereotypes [message #5986 is a reply to message #5968] |
Fri, 05 December 2008 10:08  |
Eclipse User |
|
|
|
Glad this helped and thanks a lot for your encouraging words ;)
Cheers,
Dimitris
Thomas Winkler wrote:
> Dimitris,
>
> Thank you very much for your code example ! I think Epsilon can be the
> new star in the model-driven development.
>
> Cheers,
>
> Thomas
|
|
|
Re: ETL and UML Stereotypes [message #562758 is a reply to message #5846] |
Thu, 04 December 2008 16:36  |
Eclipse User |
|
|
|
Hi Thomas,
You can handle UML profiles in ETL by invoking the respective UML2
methods. The following EOL program creates a new UML model, a class and
a property and applies the profile presented in
http://www.eclipse.org/modeling/mdt/uml2/docs/articles/Intro duction_to_UML2_Profiles/article.html
to the model, and the EAttribute stereotype to the property.
var m : new UML!Model;
var c : new UML!Class;
var p : new UML!Property;
m.name := 'm1';
c.name := 'c1';
p.name := 'p1';
m.packagedElement.add(c);
c.ownedAttribute.add(p);
var prof := Profile!Profile.all.first();
m.applyProfile(prof);
var s := Profile!Stereotype.all.selectOne(s|s.name = 'EAttribute');
p.applyStereotype(s);
Cheers,
Dimitris
Thomas Winkler wrote:
> Hello,
>
> I am a newbie to ETL and I am interested in UML-based transformations.
>
> So, is ETL being able to handle (apply/unapply) UML Profiles and UML
> Stereotypes like ATL ?
>
> If so, are the commands the same like ATL (applyProfile/applyStereotype)
>
> Regards,
>
>
> Thomas
>
>
>
|
|
|
|
Re: ETL and UML Stereotypes [message #562921 is a reply to message #5968] |
Fri, 05 December 2008 10:08  |
Eclipse User |
|
|
|
Glad this helped and thanks a lot for your encouraging words ;)
Cheers,
Dimitris
Thomas Winkler wrote:
> Dimitris,
>
> Thank you very much for your code example ! I think Epsilon can be the
> new star in the model-driven development.
>
> Cheers,
>
> Thomas
|
|
|
Powered by
FUDForum. Page generated in 0.03283 seconds