|
Re: difference between "eContents" and "eAllContents" [message #1741963 is a reply to message #1741962] |
Fri, 29 July 2016 12:03 |
Ed Merks Messages: 33142 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/
|
|
|
Powered by
FUDForum. Page generated in 0.03007 seconds