Skip to main content



      Home
Home » Modeling » EMF » difference between "eContents" and "eAllContents"
difference between "eContents" and "eAllContents" [message #1741962] Fri, 29 July 2016 07:06 Go to next message
Eclipse UserFriend
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 08:03 Go to previous message
Eclipse UserFriend
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.
Previous Topic:[CDO] CDOBlob datatype
Next Topic:Is it possible to store generated EMF model directly to CDO?
Goto Forum:
  


Current Time: Mon Jul 07 12:52:03 EDT 2025

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

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

Back to the top