Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » QVT-OML » Apply stereotypes(How to apply uml stereotypes in QVTo)
Apply stereotypes [message #869997] Sat, 05 May 2012 15:35 Go to next message
Tex Iano is currently offline Tex IanoFriend
Messages: 99
Registered: February 2012
Member
Hi,

I am wondering how to apply stereotypes in QVTo. I have this transformation:

mapping A::B::BToPackage() : UML::Package {
	name := 'Test';
	
	profileApplication->union(Set{ProfileApplication(??)});
	log(profileApplication->size().toString());
}


It transforms a B element into a package. Now I want to apply a stereotype to this package, of course first I have to apply the profile at all. But how? Smile

The profile is already registered (plug-in integrated). So I can access all elements of the profile in Qvt. But I don't get how to apply a profile....

Any ideas?

Thanks

Tex
Re: Apply stereotypes [message #870008 is a reply to message #869997] Sat, 05 May 2012 16:44 Go to previous messageGo to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7655
Registered: July 2009
Senior Member
Hi

Why would you want to apply a stereotype during a transformation?

Surely you transform between models that may conform to meta-models with
applied stereotypes?

Regards

Ed Willink


On 05/05/2012 16:35, Tex Iano wrote:
> Hi,
>
> I am wondering how to apply stereotypes in QVTo. I have this
> transformation:
>
>
> mapping A::B::BToPackage() : UML::Package {
> name := 'Test';
>
> profileApplication->union(Set{ProfileApplication(??)});
> log(profileApplication->size().toString());
> }
>
>
> It transforms a B element into a package. Now I want to apply a
> stereotype to this package, of course first I have to apply the
> profile at all. But how? :)
> The profile is already registered (plug-in integrated). So I can
> access all elements of the profile in Qvt. But I don't get how to
> apply a profile....
>
> Any ideas?
>
> Thanks
>
> Tex
Re: Apply stereotypes [message #870014 is a reply to message #870008] Sat, 05 May 2012 17:00 Go to previous message
Tex Iano is currently offline Tex IanoFriend
Messages: 99
Registered: February 2012
Member
Hi,

I transform between meta-model A and UML extended by a profile. Don't see any other way... I cannot create one metamodel containing both UML and the profile. So, I think the only way is to add the stereotypes during the transformation.

Regards,

Tex
Previous Topic:[QVTo tutorial] How can I debug (step into) script ?
Next Topic:Access localPart of QName
Goto Forum:
  


Current Time: Thu Apr 25 19:14:14 GMT 2024

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

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

Back to the top