Skip to main content



      Home
Home » Modeling » M2T (model-to-text transformation) » [Acceleo] allInstances operator not available?
[Acceleo] allInstances operator not available? [message #1810881] Wed, 21 August 2019 05:55 Go to next message
Eclipse UserFriend
Hi,

I have a hard time using the allInstances() operator. In a Sirius editor I try to select all instances of a specific class via aql. The documentation of https://www.eclipse.org/acceleo/documentation/ indicates that something similimar to the following should be possible:

aql:basicfamily::Women.allInstances()

Unfortunately, this does not work. I have tried several variants of this but did not succeed. Is there something I am missing? I simply want to grep all instances of the class "Women", which are in my model.

Best regards and thank you in advance,
Nico
Re: [Acceleo] allInstances operator not available? [message #1810891 is a reply to message #1810881] Wed, 21 August 2019 07:54 Go to previous messageGo to next message
Eclipse UserFriend
Hi

Within Sirius you may use AQL which is an OCL-like language. In OCL basicfamily::Women::allInstances() could work, provided you are using the correct ResourceSet.

Within Acceleo, you use an extended Classic OCL which again could work provided you are using the correct ResourceSet.

For AQL you should ask on the Sirius newsgroup.

Regards

Ed Willink
Re: [Acceleo] allInstances operator not available? [message #1810892 is a reply to message #1810891] Wed, 21 August 2019 08:10 Go to previous message
Eclipse UserFriend
Hello Ed,

thank you for your answer. Sorry for posting in the wrong newsgroup. I thought those AQL topics are related to this one.

Best regards
Nico
Previous Topic:[Acceleo] Loop over empty OrderedSet creates empty lines
Next Topic:UML diagrams in XML + JET = Java?
Goto Forum:
  


Current Time: Mon Jun 23 11:05:08 EDT 2025

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

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

Back to the top