Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » M2M (model-to-model transformation) » [QVTo] How to use generics defined in EMF Model
[QVTo] How to use generics defined in EMF Model [message #554311] Sat, 21 August 2010 10:40 Go to next message
Simon harrer is currently offline Simon harrerFriend
Messages: 25
Registered: August 2010
Junior Member
Hello,

i use QVTo for my project. I have an ecore file that makes use of generics.


An Example:

class MessageExchange<T> {
attribute T message;
}

Then, i wanted to use QVTo for some model transformation. However, the attribute named message was only of type EJavaObject in QVTo.

Is it possible to work with Generics or do I have to rework my model?

Best regards,
Simon
Re: [QVTo] How to use generics defined in EMF Model [message #554321 is a reply to message #554311] Sat, 21 August 2010 15:22 Go to previous messageGo to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7655
Registered: July 2009
Senior Member
Hi

The lack of generics is a major failure of UML-alignment in the current
OMG OCL specification and consequently most/all OCL implementations.
There doesn't seem to be an explicit OMG Issue; I'll raise one.

The current rework of MDT/OCL is adding underlying support for generics
which should enable QVTo, Acceleo etc to exploit generics.

It won't be in MDT/OCL till Indigo, and probably not in MDT/OCL's
consumers until Indigo+1.

Regards

Ed Willink

On 21/08/2010 11:40, Simon harrer wrote:
> Hello,
>
> i use QVTo for my project. I have an ecore file that makes use of generics.
>
> An Example:
> class MessageExchange<T> {
> attribute T message;
> }
>
> Then, i wanted to use QVTo for some model transformation. However, the
> attribute named message was only of type EJavaObject in QVTo.
> Is it possible to work with Generics or do I have to rework my model?
>
> Best regards,
> Simon
Re: [QVTo] How to use generics defined in EMF Model [message #554322 is a reply to message #554311] Sat, 21 August 2010 15:34 Go to previous message
Simon harrer is currently offline Simon harrerFriend
Messages: 25
Registered: August 2010
Junior Member
Thanks for your fast answer.

OK, I will work without Generics for starters. Maybe switching to them later.
Previous Topic:[QVTo] Error when executing transformation from Java.
Next Topic:[QVTo] Invoking Transformation outside Eclipse - cannot find qvto file
Goto Forum:
  


Current Time: Thu Apr 18 03:36:45 GMT 2024

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

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

Back to the top