|
Re: Iteration of non-containment references [message #425294 is a reply to message #425290] |
Fri, 21 November 2008 23:38 |
Ed Merks Messages: 33142 Registered: July 2009 |
Senior Member |
|
|
Jason,
Is LensColor the eOpposite of LensMaterial? Note that calling
eCrossReferences visits the non-containment references of the given EObject.
jason henriksen wrote:
> Hi All,
>
> I've got a model something like this
>
> Lens:
> IDREF -> LensMaterial
> IDREF -> LenOption
>
> LensMaterial:
> IDREF -> LensColor
>
>
> I've got a few thousand Lenses that I'm putting into an XML document.
> I only want to include the LenColor, LensMaterial and LensOption
> objects that are used by the selected list of Lens objects. I thought
> I could use EcoreUtil.getAllContents() to find a list of all the
> objects associated with a given Lens, but it seems that using a
> non-containment reference is preventing that from working.
>
> Is there any other method that will give me an Iterator of the objects
> associated to the Lens?
>
> Thanks for any suggestions,
>
> Jason Henriksen
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
Powered by
FUDForum. Page generated in 0.03477 seconds