Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » M2T (model-to-text transformation) » Model Loader for UML
Model Loader for UML [message #259743] Mon, 27 July 2009 21:26 Go to next message
Eclipse User
Originally posted by: dbhatta.us.ibm.com

Is there a separate Model Loader for UML (EMF types)? The challenge with
ECore is that Components become EClass on transformation.
Re: Model Loader for UML [message #359044 is a reply to message #259743] Tue, 28 July 2009 13:09 Go to previous message
Paul Elder is currently offline Paul Elder
Messages: 849
Registered: July 2009
Senior Member
DevB wrote:

> Is there a separate Model Loader for UML (EMF types)? The challenge with
> ECore is that Components become EClass on transformation.

Assuming you are using JET, UML models are loaded using the same model
loader as EMF models.

The EMF model loader loads a UML model using the UML2 APIs - the resulting
objects are 'real' org.eclipse.uml2.uml objects.

XPath expressions against UML objects work as if 'attribute' steps (i.e.
@someName) are calling the corresponding getSomeName() method, while
'child' steps (someOtherName) are calling List getSomeOtherName() methods.

In addition, if you have a child step such as $someVar/Class, this will be
interpreted as finding all Class instances contained by the object(s)
referred to by the variable $someVar.

Lastly, some new JET XPath functions (available in the 1.0 release) make
it easier for you to access stereotypes:

http://wiki.eclipse.org/M2T-JET/Whats_New_in_1.0_(Galileo)#XPath_function_for_accessing_UML2_Stereotypes

Paul
Previous Topic:[Acceleo] Unable to make a query with collection as return type
Next Topic:generate JET2 template programatically
Goto Forum:
  


Current Time: Fri Sep 19 05:54:25 GMT 2014

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

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