Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » OCL » eAllContents() or closure of eContents() in OCL(How to use eAllContents() in OCL, or create closure of eContents())
eAllContents() or closure of eContents() in OCL [message #1828358] Mon, 08 June 2020 12:43 Go to next message
Philipp Kutter is currently offline Philipp KutterFriend
Messages: 306
Registered: July 2009
Senior Member
I need all EObjects from an object downward.

In ECore I can use eAllContents(), or program a closure over eContents()

How can I do that in OCL? I tried for an hour, and somehow do not succeed. I use classic OCL, but of course it is interesting how it is done in classic and pivot.

Regards, Philipp
Re: eAllContents() or closure of eContents() in OCL [message #1828372 is a reply to message #1828358] Mon, 08 June 2020 15:42 Go to previous message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7665
Registered: July 2009
Senior Member
Hi

If you are using the Pivot OCL you can do compute the closure of oclContents().

Regards

Ed Willink
Previous Topic:Reuse OCL - access Ecore metamodel entities in runtime
Next Topic:Noob To OCL needs Help with XMI
Goto Forum:
  


Current Time: Thu Jul 25 00:56:40 GMT 2024

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

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

Back to the top