Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community Forums[QVT-R] Problem with inheritance
https://www.eclipse.org/forums/index.php/mv/msg/172124/547550/#msg_547550
I'm new in the QVT-Relations, someone could say to me, how I can obtain the list of the subclasses of a class, please ?
In fact, I have to move a property (attribute) from the subclasses into the super-classe. Any idea how can I do it, please?
Thank you so much,
Regards,
Bler
]]>Bler 2010-07-18T18:00:44-00:00Re: [QVT-R] Problem with inheritance
https://www.eclipse.org/forums/index.php/mv/msg/172124/547564/#msg_547564
On 18/07/2010 19:00, Bler wrote:
> Hi there,
>
> I'm new in the QVT-Relations, someone could say to me, how I can obtain
> the list of the subclasses of a class, please ?
Since you say you're new, I suspect this isn't what you want to do. You
probably want to use some form of polymorphic match so that QVTr matches
do what you want automatically.
> In fact, I have to move a property (attribute) from the subclasses into
> the super-classe. Any idea how can I do it, please?
But if you really want to move UML elements around, you should be using
the UML meta-model so that you can traverse the general relationship to
taste.
And if you really want to operate reflectively you need to find some
tool that anticipates the OCL support for OclAny::oclType() to allow
reflection.
> Thank you so much,
NB. Eclipse M2M/QVTr provides model-checking editing only at present.