|
Re: In-document non-containment references serialized as XML elements [message #431054 is a reply to message #431044] |
Thu, 25 June 2009 10:45 |
Ed Merks Messages: 33141 Registered: July 2009 |
Senior Member |
|
|
Alexey,
Comments below.
koloale wrote:
> Hello!
>
> I need to save multiplicity-many non-containment reference as child
> XML elements with some attribute that identifies the object in the
> same documents. It's like cross-document references but I need it for
> in-document references too. It needs because idrefs XML type is not
> very flexible and convenient to work with. Is it possible? May be I
> need to somehow tweak XMLResource?
I would suggest looking carefully at how the result of
Resource.getURIFragment(EObject) is computed and focus on specializing
that, i.e., find some nice way to encode the information about how to
locate the object as a URI fragment. Of course you'll need to
specialize Resource.getEObject to match it.
>
> Thank you, Alexey.
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
Powered by
FUDForum. Page generated in 0.02753 seconds