[EMF Forms] Issue with serialisation code in Generic Editor [message #1775997] |
Thu, 09 November 2017 00:01 |
Hallvard Traetteberg Messages: 673 Registered: July 2009 Location: Trondheim, Norway |
Senior Member |
|
|
I have a model A that includes elements from a model for open street map (OSM). The OSM model is based on an XML schema, uses an XMLResource and Extended meta data to support XML attribute names that differ from the feature. E.g. the GeoLocation class has attributes "latitude" and "longitude", but when serialized in an XMLResource the XML attributes "lat" and "lon" are used.
Model A uses the standard XMIResource and XMI serialisation, so when a GeoLocation is contained in such a resource it is serialized with "latitude" and "longitude" attributes. At least that is the behaviour of the Sample Reflective Ecore Editor. However, the Generic Editor serialises the same resource using "lat" and "lon" attributes for the GeoLocation, hence the model cannot be read by the Sample Reflective Ecore Editor, nor the Sirius diagram editor. In the debugger, I see that the defaultSaveOptions of the XMIResource includes EXTENDED_META_DATA=org.eclipse.emf.ecore.util.BasicExtendedMetaData@7249d9ce, which seems to indicate it is meant so support XML. But I don't understand how and why this option get there.
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.01975 seconds