[QVTO] mapping to EType [message #537750] |
Thu, 03 June 2010 10:35  |
Eclipse User |
|
|
|
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
|
|
|
Re: [QVTO] mapping to EType [message #537773 is a reply to message #537750] |
Thu, 03 June 2010 11:19   |
Eclipse User |
|
|
|
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
|
|
|
Re: [QVTO] mapping to EType [message #537850 is a reply to message #537750] |
Thu, 03 June 2010 16:22  |
Eclipse User |
|
|
|
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.04821 seconds