EMF - ProtocolBuffer Serialization
Christian Kerl
Abstract
Integration of EMF and Google Protocol Buffers for efficient serialization of EMF models and exchange of EMF models in heterogenous programming environments (all languages support by Protocol Buffers).
Additional Information
This project comprises two relatively indepent parts for integrating Google Protocol Buffers and the Eclipse Modeling Framework.
The first part is about using Protocol Buffers for space and time efficient serialization of EMF/Ecore models. Therefore it would provide an implementation of the EMF Resource interface leveraging the dynamic capabilities of ProtocolBuffers (so no .proto file is required). This implementation could ideally be used as drop-in replacement for the existing XML/XMI Resource implementations. Its performance in terms of space and time should be compared to the existing provisional BinaryResourceImpl. This comparision might lead to improvements in both implementations and usage guidelines.
The second and more complex part would be the generation of Protocol Buffer description files (.proto) from Ecore models using model-to-text transformations. One of the challenges here is that Protocol Buffers don’t support inheritance. Besides the generation of the .proto files this part would also include a dynamic (or also generated) converter to transform Ecore model instances to their Protocol Buffer equivalents generated by the Protocol Buffer compiler (protoc). This would enable EMF to be used in heterogenous programming environments, because the data stored in EMF models can be exchanged between all the programming languages supported by Protocol Buffers.
Code samples
| File name | Size | Date submitted |
|---|
