How does one implement a pre condition based on a stereotype?
I have classes in my UML that have been set with stereotypes that came from a profile I created. But no matter what I cannot seem to access the stereotype name as a string. Presumably one can get a stereotype using a classes' qualified name. But I cannot get it to work.
returns a qualified name but
Ultimately, I'd like to do the following:
[template public generateElement(aClass : Class) ? (aClass.getAppliedStereotype([aClass.getQualifiedName()).name.matches('federate'))]