atlanmod / Mogwai

Automatic translation from OCL to Gremlin
10 stars 6 forks source link

ModelDatastore#getParent should return an Iterable #29

Open gdaniel opened 7 years ago

gdaniel commented 7 years ago

Default mapping (not based on EMF) may contain multiple "parents" for a model element. The default implementation of getParent() should return an Iterable.

Note: the old method returning a single element can be kept because ATL semantic for getParent() doesn't allow multiple parents. However this is required for simple usage of the mapping