Community
Participate
Working Groups
== Problem Description == In order to enable interoperability between systems and organization it is required to agree on a common meta model and a common (XML) representation that is used for exchange. Eclipse EMF allows definition of the meta model using Ecore and has implemented the XMI 2.x rules for mapping models to XML. Unfortunately XMI 2.x doesn't always fulfill the needs of specific domains and a more flexible mapping between models and XML is required. Thus a specialized serializer / deserializer needs to be implemented. == Proposed Solution == Provide generic serialization/deserialization that extends the EMF XML mappings. Various serialization strategies are configurable using annotations in the meta model. This allows for configuration of XML mappings as they are defined by OMG XMI 1.x, XMI 2.x, OMG ReqIF, EAST ADL as well as many mappings used by AUTOSAR. Since the implementation allows for configuration of persistence mappings on the granularity of individual EStructuralFeatures it is even possible to mix different mappings within a single XML file. I propose to contribute the following plugins and projects: org.eclipse.sphinx.emf.serialization Implementation of the configurable serialization and deserialization org.eclipse.sphinx.emf.serialization.doc.isv documentation of the persistence mapping rules implanted in org.eclipse.sphinx.emf.serialization org.eclipse.sphinx.tests.emf.serialization test cases for org.eclipse.sphinx.emf.serialization org.eclipse.sphinx.tests.emf.serialization.generators additional test cases that check consistency between the serializer/deserializer and the schema generator contributed via bug #425636 org.eclipse.sphinx.releng.emf.serialization.builds Master POM that builds and tests the serializer / desiarializer org.eclipse.sphinx.tools.emf.serialization.targetdefs Target definition that is used for building the serializer / deserializer
Created attachment 239178 [details] Overview, relationship between this serializer / deserializer for XML and the schema generator proposed in bug #425636
Created attachment 239832 [details] Source code of the XML Persistence Mapping Serialization attached zip contains: org.eclipse.sphinx.emf.serialization org.eclipse.sphinx.emf.serialization.doc.isv org.eclipse.sphinx.tests.emf.serialization org.eclipse.sphinx.tests.emf.serialization.generators (The releng and build projects that were mentioned in the description are not required since the contribution should be easily integratable with the existing sphinx maven/tycho build and target )
Revised the following plug-ins for coding conventions and formal things, imported them into the Sphinx codebase, and updated Team Project Set files: * org.eclipse.sphinx.emf.serialization.doc.isv * org.eclipse.sphinx.emf.serialization * org.eclipse.sphinx.tests.emf.serialization * org.eclipse.sphinx.tests.emf.serialization.generators
Closed stale issue before migration