Skip to main content



      Home
Home » Modeling » EMF » Serializing/Deserializing ExtendedMetaData
Serializing/Deserializing ExtendedMetaData [message #507360] Tue, 12 January 2010 20:02 Go to next message
Eclipse UserFriend
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 07:02 Go to previous message
Eclipse UserFriend
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
Previous Topic:Ecore created from XSD
Next Topic:Anybody intersted in an EMF version for CDT DOM AST ?
Goto Forum:
  


Current Time: Tue Jul 08 16:24:38 EDT 2025

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

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

Back to the top