Chapter 14. Exploiting Metadata

So far, we’ve talked a great deal about how EMF can produce an Ecore model from various different sources and how it can then generate code from that model. EMF is, however, not just a generator tool; it’s also a powerful runtime framework. In the remaining chapters of this book, we discuss the functionality provided by the runtime framework and how to effectively program with it. To begin, this chapter focuses on the use of EMF metadata at runtime.

Ecore is, itself, an EMF model. From it, an implementation has been generated, with an API like that generated from any other model. The Java package org.eclipse.emf.ecore contains interfaces corresponding to each of the classes modeled in Ecore, with generated getters ...

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.