Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Attribute of type XMLGregorianCalendar
Attribute of type XMLGregorianCalendar [message #884169] Sun, 10 June 2012 09:46 Go to next message
Andreas Graf is currently offline Andreas GrafFriend
Messages: 211
Registered: July 2009
Senior Member
Dear all,

in my Xtext grammar I am referring to an existing ecore-model (RMF's ReqIF10). One of the attributes has a type of XMLGregorianCalendar and I am wondering how to get that into the grammar. I have written a ValueConverter but I am having problems with the Xtext syntax.

I was trying something like

....
('change' lastChange=XDATE)?
....

terminal XDATE returns javax::xml::datatype::XMLCregorianCalendar:
STRING
;

But I have not found any way to specify something after "returns" that Xtext does not complain about.

Any help is appreciated,

Regards,

Andreas
Re: Attribute of type XMLGregorianCalendar [message #884171 is a reply to message #884169] Sun, 10 June 2012 09:52 Go to previous message
Andreas Graf is currently offline Andreas GrafFriend
Messages: 211
Registered: July 2009
Senior Member
Please ignore, I found how to fix this.
Previous Topic:Refactoring rename - new reference text
Next Topic:Create simple standalone application with generator
Goto Forum:
  


Current Time: Sun Oct 25 03:20:15 GMT 2020

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

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

Back to the top