Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Epsilon » EVL - Validation error for attribute "function"
EVL - Validation error for attribute "function" [message #1690909] Tue, 31 March 2015 21:14 Go to next message
Nikos Margaritis is currently offline Nikos MargaritisFriend
Messages: 65
Registered: September 2014
Member

Hello again, I am really sorry for making yet another question.

I have some elements in my model which hold an attribute called function.

However, it seems like "function" is a reserved word in the EVL validation scheme and I do get validation errors in the EVL file while calling
``self.function.name;``.

Multiple markers at this line
- mismatched input: 'function'
- no viable alternative at input 'function'


I can not change the name of the attribute function as it is very specific to the context of the editor.

Are there any workarounds to get the attributes of an element like elf.getAttribute(i) for retrieving attributes. Is this a bug of the EVL validator?


Best, Nikos

[Updated on: Wed, 01 April 2015 20:03]

Report message to a moderator

Re: EVL - Validation error for attribute "function" [message #1690917 is a reply to message #1690909] Tue, 31 March 2015 21:54 Go to previous messageGo to next message
Dimitris Kolovos is currently offline Dimitris KolovosFriend
Messages: 2163
Registered: July 2009
Location: York, UK
Senior Member

Hi Niko,

self.`function`.name should do the trick ("function" is indeed a reserved word in EOL/EVL).

Cheers,
Dimitris

[Updated on: Tue, 31 March 2015 21:54]

Report message to a moderator

Re: EVL - Validation error for attribute "function" [message #1691032 is a reply to message #1690917] Wed, 01 April 2015 17:56 Go to previous message
Nikos Margaritis is currently offline Nikos MargaritisFriend
Messages: 65
Registered: September 2014
Member

Thank you Dimitris Smile

This did it.

Nikos.
Previous Topic:EVL - Getting the name of the file in which the model is stored
Next Topic:[EVL] replace automated messages with mine
Goto Forum:
  


Current Time: Thu Apr 25 14:33:24 GMT 2024

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

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

Back to the top