Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Serializing/Deserializing ExtendedMetaData
Serializing/Deserializing ExtendedMetaData [message #507360] Wed, 13 January 2010 01:02 Go to next message
Derek Palma is currently offline Derek PalmaFriend
Messages: 141
Registered: July 2009
Senior Member
Hi,

I am creating Ecore models from XML schemas using XSDEcoreBuilder. I then
place the Ecores in a registry which is used to build models from XML files
which reference the schemas. I am trying to cache the Ecores so I don't have
to keep generating them every time an XSD is referenced (I have many XSDs).
However, I noticed the ExtendedMetadata in the Ecores seems to be required
to create models from the XML files (I believe the feature lookup fails
because there is a mapping from XML names to Ecore names).

Is there a way to serialize the ExtendedMetadata with the Ecore so next time
it is deserialized the ExtendedMetadata is present? What would be the best
approach to realize this objective?

thanks
Derek
Re: Serializing/Deserializing ExtendedMetaData [message #507408 is a reply to message #507360] Wed, 13 January 2010 12:02 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33136
Registered: July 2009
Senior Member
Derek,

Comments below.


Derek Palma wrote:
> Hi,
>
> I am creating Ecore models from XML schemas using XSDEcoreBuilder. I
> then place the Ecores in a registry which is used to build models from
> XML files which reference the schemas. I am trying to cache the Ecores
> so I don't have to keep generating them every time an XSD is
> referenced (I have many XSDs). However, I noticed the ExtendedMetadata
> in the Ecores seems to be required to create models from the XML files
> (I believe the feature lookup fails because there is a mapping from
> XML names to Ecore names).
>
> Is there a way to serialize the ExtendedMetadata with the Ecore so
> next time it is deserialized the ExtendedMetadata is present? What
> would be the best approach to realize this objective?
The extended meta data is driven by annotations in the Ecore model
itself so I'm not sure what you'd hope would be serialized. In fact,
I'm not sure I understand exactly the problem. You'd typically want to
keep reusing the same XSDEcoreBuilder instance if you want to keep
reusing the Ecores they generate.
>
> thanks
> Derek


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:Ecore created from XSD
Next Topic:Anybody intersted in an EMF version for CDT DOM AST ?
Goto Forum:
  


Current Time: Fri Apr 19 05:35:54 GMT 2024

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

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

Back to the top