Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community Forums[QVTo] Using model elements having as name a QVTo keyword
https://www.eclipse.org/forums/index.php/mv/msg/220599/696621/#msg_696621
I have an ecore meta model created from an xsd, which I cannot change. The problem is that I have an enumeration containing elements like "enum", "object" (QVTO keywords) and when referencing these in my transformation code I get errors like: "token "enum" is invalid". Is there any solution to handle this situation?]]>Eszter Hofmann2011-07-14T12:27:50-00:00Re: [QVTo] Using model elements having as name a QVTo keyword
https://www.eclipse.org/forums/index.php/mv/msg/220599/696710/#msg_696710
The old solution was to use an underscore prefix: _enum.
The old solution has an ambiguity for underscore prefixed names and so
OCL 2.3 introduced an underscore prefixed string in which standard
backslash sequences could also be used. so _'enum', but I doubt that
QVTo has implemented this.
Regards
Ed Willink
On 14/07/2011 13:27, Eszter Hofmann wrote:
> Hello,
> I have an ecore meta model created from an xsd, which I cannot change.
> The problem is that I have an enumeration containing elements like
> "enum", "object" (QVTO keywords) and when referencing these in my
> transformation code I get errors like: "token "enum" is invalid". Is
> there any solution to handle this situation?]]>Ed Willink2011-07-14T16:08:54-00:00Re: [QVTo] Using model elements having as name a QVTo keyword
https://www.eclipse.org/forums/index.php/mv/msg/220599/696987/#msg_696987
thanks for the quick answear! Both solutions are working!