My Validation Constraint:
- Code: Select all
self.allParents()->includes(LibraryClass1)
There seem to be many problems:
- allParents() is not supported. I probably can replace this with
- Code: Select all
generalization.general->asSet()
- LibraryClass1 is not recognized, even though I imported the Library into the validation suite. I had to use the qualified name.
- This compiles
- Code: Select all
self.general->includes(Library1::LibraryClass1)
- This works
- Code: Select all
self.general.name->includes('LibraryClass1')
The next rule that I would like to check is, whether all Specializations of LibraryClass1 have the stereotype applied.