Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » M2T (model-to-text transformation) » [Acceleo] allInstances operator not available?
[Acceleo] allInstances operator not available? [message #1810881] Wed, 21 August 2019 09:55 Go to next message
Nico Jansen is currently offline Nico JansenFriend
Messages: 10
Registered: August 2019
Junior Member
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 11:54 Go to previous messageGo to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7680
Registered: July 2009
Senior Member
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 12:10 Go to previous message
Nico Jansen is currently offline Nico JansenFriend
Messages: 10
Registered: August 2019
Junior Member
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: Fri Dec 06 19:16:41 GMT 2024

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

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

Back to the top