Chapter 5. Ecore Modeling Concepts

When we create an Ecore model—whether directly or from annotated Java, UML, XML Schema, or some other source—we are defining the structure of a series of instances of that model. That is, we are specifying the types of objects that make up instances of that model, the data they contain, and the relationships between them. For example, the PrimerPO model of the previous chapter defined the structure for objects that represent purchase orders.

As we first discussed in Chapter 2, the Ecore metamodel defines the structure of the objects in an Ecore model. Modelers use the term “metamodel” for this kind of model, which, in a sense, defines a language that its instances use to describe other things.

Most of the modeling ...

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

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