|
Re: Serializing/Deserializing ExtendedMetaData [message #507408 is a reply to message #507360] |
Wed, 13 January 2010 12:02 |
Ed Merks Messages: 33218 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/
|
|
|
Powered by
FUDForum. Page generated in 0.28227 seconds