|Re: Serializing/Deserializing ExtendedMetaData [message #507408 is a reply to message #507360]
||Wed, 13 January 2010 12:02
| Ed Merks
Registered: July 2009
Derek Palma wrote:
> 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.
Professional Support: https://www.macromodeling.com/
Powered by FUDForum
. Page generated in 0.01429 seconds