Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » M2M (model-to-model transformation) » [QVT-R] Problem with inheritance
[QVT-R] Problem with inheritance [message #547550] Sun, 18 July 2010 18:00 Go to next message
Bler  is currently offline Bler Friend
Messages: 26
Registered: June 2010
Junior Member
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 ?

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
Re: [QVT-R] Problem with inheritance [message #547564 is a reply to message #547550] Sun, 18 July 2010 20:35 Go to previous message
Ed Willink is currently offline Ed WillinkFriend
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
Previous Topic:[ATL] Problems with helper...
Next Topic:[ATL] Identify last Element
Goto Forum:
  


Current Time: Tue Apr 23 11:30:00 GMT 2024

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

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

Back to the top