|
|
|
|
|
Re: Use of ecore2xml mappings [message #1799061 is a reply to message #1799041] |
Thu, 29 November 2018 13:17 |
Ed Merks Messages: 32985 Registered: July 2009 |
Senior Member |
|
|
If your goal is to influence the serialization/deserialization of the original (hand written) Ecore model, you might be best off to add extend metadata annotations to the first model to achieve your goal. As of EMF 2.15 there is specialized support for authoring the extended metadata annotations and you can look at the *.ecore produced from the *.xsd to see how it is annotated. The option org.eclipse.emf.ecore.xmi.XMLResource.OPTION_EXTENDED_META_DATA should be used as both a load and a save option (set in your resource factory) so that the annotations in the Ecore model are used during deserialization and serialization.
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
Powered by
FUDForum. Page generated in 0.01559 seconds