Skip to main content



      Home
Home » Modeling » Epsilon » EVL - Validation error for attribute "function"
EVL - Validation error for attribute "function" [message #1690909] Tue, 31 March 2015 17:14 Go to next message
Eclipse UserFriend
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 16:03] by Moderator

Re: EVL - Validation error for attribute "function" [message #1690917 is a reply to message #1690909] Tue, 31 March 2015 17:54 Go to previous messageGo to next message
Eclipse UserFriend
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 17:54] by Moderator

Re: EVL - Validation error for attribute "function" [message #1691032 is a reply to message #1690917] Wed, 01 April 2015 13:56 Go to previous message
Eclipse UserFriend
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: Fri Nov 07 09:26:28 EST 2025

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

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

Back to the top