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

(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?

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: 13366
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 or send a mail to xtext at itemis dot de

Need professional support for Xtext, Xpand, EMF?
Go to:
Twitter : @chrdietrich
Blog :
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: Wed Feb 26 17:22:21 GMT 2020

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

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

Back to the top