Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » M2T (model-to-text transformation) » acceleo expression(acceleo expression)
acceleo expression [message #1761383] Wed, 10 May 2017 12:24 Go to next message
Eclipse UserFriend
Hello,

[for cl : ClassName | cl.attributeName = knownVariable/]
[/for]

I want to use this expression but it's not correct. In fact, I want to restrict the elements to those who have an attribute equal to a variable

Can you give me another experssion

Thank you
Re: acceleo expression [message #1761386 is a reply to message #1761383] Wed, 10 May 2017 12:45 Go to previous messageGo to next message
Eclipse UserFriend
Hi

Very difficult without your model, but I might expect to see ...->select(cl | cl.attributeName = knownVariable). But I would also expect ClassName to be multi-valued.

Regards

Ed Willink
Re: acceleo expression [message #1761388 is a reply to message #1761386] Wed, 10 May 2017 13:12 Go to previous messageGo to next message
Eclipse UserFriend
thank you it works Very Happy

Is the language used for an acceleo project OCL ?

Thank you
Re: acceleo expression [message #1761397 is a reply to message #1761388] Wed, 10 May 2017 13:46 Go to previous messageGo to next message
Eclipse UserFriend
Hi

Sorry. RTFM.

Regards

Ed Willink
Re: acceleo expression [message #1766148 is a reply to message #1761397] Fri, 16 June 2017 13:18 Go to previous message
Eclipse UserFriend
Hi Elsa,

Yes, the language used by Acceleo under the hood is OCL. You can find the documentation on the wiki, especially about the operation reference.

Laurent Goubet
Obeo
Previous Topic:Acceleo Documentation
Next Topic:Operator and
Goto Forum:
  


Current Time: Sat Feb 08 07:51:41 GMT 2025

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

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

Back to the top