|
Re: [QVT-R] Problem with inheritance [message #547564 is a reply to message #547550] |
Sun, 18 July 2010 20:35 |
Ed Willink Messages: 7655 Registered: July 2009 |
Senior Member |
|
|
Hi
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.
Regards
Ed Willink
|
|
|
Powered by
FUDForum. Page generated in 0.02957 seconds