Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Xtext Grammar(Automatic Validations)
Xtext Grammar [message #1018076] Wed, 13 March 2013 05:03 Go to next message
rohit ahuja is currently offline rohit ahujaFriend
Messages: 27
Registered: February 2013
Junior Member
Hi All,

Suppose we have a simple model as below

Entry:
(element +=Element)+
;

Element:
name=ID address=String age=INT
;

Now is there any method which validates that all the element names are unique?
I know that we can write some validations manually in the validation section, but is there anything else which can automatically uniquify these names?

Thanks,
Rohit
Re: Xtext Grammar [message #1018108 is a reply to message #1018076] Wed, 13 March 2013 07:03 Go to previous message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14665
Registered: July 2009
Senior Member
Do you mean globally or locally. If locally enable names are unique
validator in the workflow. If globally you have to care yourself
(there are samples for that in the forum)

--
Need training, onsite consulting or any other kind of help for Xtext?
Go visit http://xtext.itemis.com or send a mail to xtext at itemis dot de


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Previous Topic:LL(*)-left refactoring and cross-reference
Next Topic:Any way to access the name of a reference in the ScopeProvider?
Goto Forum:
  


Current Time: Thu Apr 25 02:32:37 GMT 2024

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

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

Back to the top