Skip to content
Sebastian Riemschüssel edited this page Feb 26, 2016 · 3 revisions

The type and functionality of model annotations

This wiki page should explain and give an overview of the various types of model annotations used in the project. This should be a complete list of all annotations, their functionality combined with example use cases.

List of annotations

Xcore specific annotations

  • @Ecore
  • @Import
  • @GenModel

Model specific annotations

  • @XpressModel - This is an informative annotation wich holds all kinds of information about the model structure and typing and also about decisions made by the XcoreGenerator.
  • @P21 - This is a marker annotation for the parser. Attributes or references marked with these annotations are part of the exchange file. This is needed to ensure the correct mapping of exchange information in .p21 files to model entity classes.

@XpressModel

  • name -> possible values: Names of entities, enumerations, selects, proxies, attributes and references.
  • kind -> possible values: generated, mapped, new, proxy (select, enumeration)
  • datatypeRef -> possible values: double, int, boolean, Boolean, String, double[], int[]
  • select -> entity name of defining reference to select

Clone this wiki locally