Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
尊敬的社区成员和 PlantUml 从业者,
我想要两个具有相同名称的类,例如:
我想在这两个类之间建立关系。是否可以在类图中为类创建别名,以便我可以区分这些类,从而将它们表示为两个不同的元素。
任何想法?
使用plantuml,您可以使用“as”为显示名称起别名。对于类图,它看起来像这样:
@startuml class "Test" as t1 class "Test" as t2 t1 -> t2 @enduml