Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Sirius » aql(aql)
icon6.gif  aql [message #1759628] Fri, 14 April 2017 07:16 Go to next message
sarah sh is currently offline sarah shFriend
Messages: 32
Registered: March 2017
Member
hello,

I have the image of the metamodel. I want to get the size of books in the graphic but I didn't succeed

aql:self.eResource().getContents().eAllContents(library:Book)->size()

Thank you for helping

[Updated on: Fri, 14 April 2017 07:17]

Report message to a moderator

Re: aql [message #1759763 is a reply to message #1759628] Tue, 18 April 2017 09:15 Go to previous message
Maxime Porhel is currently offline Maxime PorhelFriend
Messages: 516
Registered: July 2009
Location: Nantes, France
Senior Member
Hi Sarah,

I see a first error in your expression: the type must be written as this: library::Book (you wrote only a single ':').
From where do you call your expression ? If you already are on a Library, you could just use aql:self.books -> size()

Note that you can find the AQL documentation here: https://www.eclipse.org/acceleo/documentation/

Regards,

Maxime
Previous Topic:[ANN] Sirius 4.1.4
Next Topic:Edges between Nodes inside a Container
Goto Forum:
  


Current Time: Thu Apr 25 15:02:19 GMT 2024

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

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

Back to the top