Many programming languages offer a way to annotate types.
For instance, in .NET this can be achieved by deriving a custom attribute class from System.Attribute
and then annotating another type with this:
[AttributeUsage(AttributeTargets.Class, AllowMultiple = false)]
public sealed class SuperSpecialAttribute : Attribute { ... }
[SuperSpecial]
public class MyClass { ... }
My question is; how can I show that MyClass
has the attribute SuperSpecialAttribute
on a UML class diagram?