Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » difference between "eContents" and "eAllContents"
difference between "eContents" and "eAllContents" [message #1741962] Fri, 29 July 2016 11:06 Go to next message
aurel pestell is currently offline aurel pestellFriend
Messages: 90
Registered: October 2013
Location: Sweden
Member
Hi,

I looked at the documentation but still wondering how "EObject.eContents()" and "EObject.eAllContents()" compare.
I looked in a random EObject and "EObject.eContents()" return something when "EObject.eAllContents()" returns nothing.

Thanks.
Re: difference between "eContents" and "eAllContents" [message #1741963 is a reply to message #1741962] Fri, 29 July 2016 12:03 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 31900
Registered: July 2009
Senior Member
Comments below.


On 29.07.2016 13:06, aurel pestell wrote:
> Hi,
>
> I looked at the documentation but still wondering how
> "EObject.eContents()" and "EObject.eAllContents()" compare.
> I looked in a random EObject and "EObject.eContents()" return
> something when "EObject.eAllContents()" returns nothing.
Well, one returns a list and the other an iterator so I'm not sure you
how concluded "nothingness" in either case because in both cases a
non-null value is definite returned. The eAllContents is basically an
iterator over the containment tree, so it will most definitely return
all the objects that are in eContents, but in addition to that, each
subtree's eContents is visited recursively.
>
> Thanks.


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:[CDO] CDOBlob datatype
Next Topic:Is it possible to store generated EMF model directly to CDO?
Goto Forum:
  


Current Time: Wed Jun 16 02:59:49 GMT 2021

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

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

Back to the top