To create an EMF model, it is possible to use java interfaces with specific annotations :
| Annotations | Description |
|---|---|
| abstract=“true” | Creates a abstract class |
| containment=“true” | Express UML2 composition relationships (links with black diamonds). These objects references are saved with the object. |
| default=Value | Default value, can be a constant, enumeration. |
| changeable=“false” | A setter for this attribute will not be generated. |
Go to GMF Tutorial 1 to see a simple example.
I hope that this material will be helpful for you. If you want to support it, your help is welcome :
Discussion