> 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: