|
Re: [QVTO] mapping to EType [message #537773 is a reply to message #537750] |
Thu, 03 June 2010 15:19 |
Ed Merks Messages: 33258 Registered: July 2009 |
Senior Member |
|
|
Christophe,
Things like XMLTypePackage.Literals.STRING would do the trick in Java.
I'm not sure about QVTo.
Christophe Bouhier wrote:
> Hi,
>
>
> When using QVTO, to generate an ecore, I run into this challenge
> to produce a valid value for an EAttribute.eType. It needs to be an
> EClassifier, which I would expect is a bunch of type literals I can
> simply assign. I am not able to locate these literals.
>
> In the end, the serialized eType value should something like this:
>
> "ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//String"
>
> I can generate it, but it would become a new type, instead of a
> reference to an existing Literal.
>
> What would be the solution for this?
>
> thank you,
>
> Christophe Bouhier
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
Re: [QVTO] mapping to EType [message #537850 is a reply to message #537750] |
Thu, 03 June 2010 20:22 |
Sergey Boyko Messages: 171 Registered: July 2009 |
Senior Member |
|
|
Hi Christophe ,
There were already similar threads. Please have a look at
http://dev.eclipse.org/newslists/news.eclipse.modeling.m2m/m sg03742.html
another approach for Ecore primitive types referencing
http://dev.eclipse.org/newslists/news.eclipse.modeling.m2m/m sg03752.html
ECore primitive types referencing with help of black-box
http://dev.eclipse.org/newslists/news.eclipse.modeling.m2m/m sg03939.html
for UML primitive types referencing
Regards,
Sergey
> Hi,
>
>
> When using QVTO, to generate an ecore, I run into this challenge
> to produce a valid value for an EAttribute.eType. It needs to be an
> EClassifier, which I would expect is a bunch of type literals I can
> simply assign. I am not able to locate these literals.
>
> In the end, the serialized eType value should something like this:
>
> "ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//String"
>
> I can generate it, but it would become a new type, instead of a
> reference to an existing Literal.
>
> What would be the solution for this?
>
> thank you,
>
> Christophe Bouhier
|
|
|
Powered by
FUDForum. Page generated in 0.02953 seconds