Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » MOFScript » Applying Stereotypes(How to apply Profiles and stereotypes)
Applying Stereotypes [message #760159] Thu, 01 December 2011 08:50
ramthor is currently offline ramthor
Messages: 1
Registered: December 2011
Junior Member
I am trying to create an UML model consisting of classes and applying stereotypes defined in a profile of mine to those classes. Basically I have
out umlout:"..link not allowed ... www.eclipse.org/uml2/3.0.0/UML" (umlout.Model)
as metamodel.
I am unsure how to declare my Profile to MOFScript. Should my profile be an in model?
For example: in myProfile:"..link not allowed ...www.eclipse.org/uml2/3.0.0/UML"
I tried to "applyProfile" this to umlout in various ways, but no luck
(Wrong types of input objects. Expected UML Model and Profile.)

How do I apply an Stereotype to an element of my umlout? To do this I first need a stereotype object.
The uml2 API has a method getApplicableStereotypes, which is not available in MOFScript.
I searched for m2t files but there are none available for my problem.
If you have an example that would be great (rbethorpe@googlemail.com)

Thanks, Robert
Previous Topic:MOFScript called from Java API can only transform UML2 3.0.0?
Next Topic:Problem running transformation in Java
Goto Forum:
  


Current Time: Fri Aug 29 01:31:49 EDT 2014

Powered by FUDForum. Page generated in 0.02251 seconds