Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » In-document non-containment references serialized as XML elements
In-document non-containment references serialized as XML elements [message #431044] Thu, 25 June 2009 07:15 Go to next message
koloale is currently offline koloaleFriend
Messages: 41
Registered: July 2009
Member
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?

Thank you, Alexey.
Re: In-document non-containment references serialized as XML elements [message #431054 is a reply to message #431044] Thu, 25 June 2009 10:45 Go to previous message
Ed Merks is currently offline Ed MerksFriend
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/
Previous Topic:seems like an "unsettable"-related serialization issue
Next Topic:EMF in plugin
Goto Forum:
  


Current Time: Thu Apr 25 21:28:57 GMT 2024

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

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

Back to the top