1
General Board / Re: Apply custom stereotype to Class and Connector with different Tagged Values
« on: June 09, 2025, 09:50:06 am »As for why I'd want to do this: I, long ago along with a lot of the software world, moved away from putting the "type of the thing in the name of the thing" when it can otherwise be inferred from context - e.g. in code, I don't sayIf it helps, the profile is a Namespace. Two stereotypes with the same name are not distinguishable from each other. (Look for isDistinguishableFrom in the UML specification, which is not overridden by the Stereotype class)Code: [Select]int intValue = 1;
but insteadCode: [Select]int value = 1;
and it's the same here - it just feels clumsy.
I traced this back to the SysML 1.5 (and 1.7) specification but it doesn't say anything on the matter. It gives an example of applying the same stereotype to different metaclasses and applying the same properties (which is what EA does), but doesn't seem to explicitly include or exclude using the same-named stereotype on different metaclasses.
To compare it to your code example, if you needed an int value and a float value in the same namespace/scope you would need to rename one or both.