On 19/11/2013 13:47, Felix Dorner wrote:
> Can I do this with EMF/OCL (Sorry for the stupid example :))?
> -children [0-*] : Animal
> Dog -> Animal
> Cat -> Animal
> I now would like to define a constraint on Dog, such that a dog's
> children may only be dogs and a Cat's chidren well.. you guess.
> The constraint would be defined on a different type than the feature
> that is being constraint.
> I also thought to use maybe this:
> http://ed-merks.blogspot.it/2013/01/emf-can-do-what.html which serves
> a similar purpose.