Skip to main content



      Home
Home » Modeling » Epsilon » ETL and UML Stereotypes
ETL and UML Stereotypes [message #5846] Thu, 04 December 2008 13:36 Go to next message
Eclipse UserFriend
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 #5864 is a reply to message #5846] Thu, 04 December 2008 16:36 Go to previous messageGo to next message
Eclipse UserFriend
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 #5968 is a reply to message #5864] Fri, 05 December 2008 10:06 Go to previous messageGo to next message
Eclipse UserFriend
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 #5986 is a reply to message #5968] Fri, 05 December 2008 10:08 Go to previous message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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 #562906 is a reply to message #5864] Fri, 05 December 2008 10:06 Go to previous message
Eclipse UserFriend
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 #562921 is a reply to message #5968] Fri, 05 December 2008 10:08 Go to previous message
Eclipse UserFriend
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
Previous Topic:Starter error
Next Topic:Error message displayed when using Ant, but not with launch configuration
Goto Forum:
  


Current Time: Sat May 10 22:37:20 EDT 2025

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

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

Back to the top