I'm new to Acceleo. I use IBM RSA (8.5.1). I created a custom UML Profile (with a few stereotypes extending default metaclasses, it's pretty usual). The UML profile is a .epx file. In addition, I created a simple model on which I applied my custom UML Profile, and "tagged" a few classes with my custom stereotypes.
My questions (sorry if it is trivial, but I didn't find a straight answer...):
Can I use my custom UML Profile as metamodel in Acceleo? Simply saying, instead of writing in my module file the following: [module main('http://www.eclipse.org/uml2/3.0.0/UML')] (this one works okay) can I write something like this: [module main('platform:/resource/MyProfileProject/MyProfile.epx')]? If I try this, I get an error message: "The metamodel couldn't be resolved". I tried to convert my UML Profile from .epx format to .xmi and to .uml. None of those work.
If this can be made working somehow, can I use my custom stereotypes as type qualifiers in Acceleo templates (in "for" cycles, etc.)?
Any help is appreciated. Thank you in advance. Marcell
I don't think you can.
As far as I know, you're supposed to use services to retrieve the profile data from your UML elements (stereotypes and so on), but the metamodel remains UML and this cannot be changed for Acceleo.
You can iterate over UML elements on lists of elements filtered according to their stereotype information though.