|Re: Model Loader for UML [message #359044 is a reply to message #259743]
||Tue, 28 July 2009 09:09
| Paul Elder
Registered: July 2009
> 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:
Powered by FUDForum
. Page generated in 0.01476 seconds