Chapter 15. Persistence

EMF includes a powerful framework for model persistence. Out of the box, it supports XML serialization via a highly customizable resource implementation. Specialized versions are also provided to support the XML Metadata Interchange (XMI) 2.0 standard, which is used as the canonical representation of Ecore, and to serialize Ecore as Essential MOF (EMOF), facilitating interoperability with various modeling tools.

However, EMF does not require that persistence be XML-based or even stream based. The framework provides an API that is flexible enough to support any kind of storage, and even to persist objects across different kinds of storage, with references among them.

In Chapter 2, we introduced the persistence framework ...

Get EMF: Eclipse Modeling Framework Second Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.