|The ScopeSET Support and Community Portal|
Eventually, this should obviously be implemented by extending the ACD metamodel for profile, for now, I've implemented it with a "QRL append" called from acd_code_gen.qrl (same approach as with OMOS), which creates the following additional NormalClasses:
The current SimDB implementation (templates\uml\qrl\simdb_uml2interface.qrl) only exports STs for UmlPort and UmlClass, but that could be extended easily.
TDL example to retrieve all stereotypes for a Class:
[loop (Instances->MClass as class WHERE hasStereotype([class], "meta_stereotype") AND hasStereotype([class], "meta_UmlClass"))]
all possible values for an enumeration class called "VarType":
[loop (Instances->MClass as VarType WHERE [VarType.name] == "VarType" AND hasStereotype([VarType], "enum_metaclass"))] [loop (VarType->MAttribute as type)]
(there is presently no ACD metamodel construct to tie an enum to a metaclass tagged value type)