Java Reference
In-Depth Information
archetypes and other DNC elements. Why begin with a general object-oriented
DSL? Well, we might decide to use this model as the basis for another DSL in the
future. Why not simply extend Ecore itself, you might ask? Well, it contains ele-
ments that we really don't need or want, leaving us with all those E -prefixed ele-
ments and their properties. Besides, it's straightforward to develop our own
object-oriented DSL. We can use the Java EMF Model (JEM) as a transforma-
tion target, giving us a chance to see what a model that extends Ecore is like.
Adventurous types can create a new org.eclipse.dsl.oocore DSL proj-
ect and create the oocore.ecore model, as we have done previously. Complete
the model using Figure 3-10 as a reference. Otherwise, simply copy the
oocore.ecore domain model from the solutions into your project. Finally, cre-
ate a new org.eclipse.dsl.dnc DSL project to hold our dnc.ecore model
that will extend our core model.
Figure 3-10
Object-oriented core domain model
Search WWH ::




Custom Search