PlantUML和软件包注释
我试图弄清楚PlantUML是如何管理笔记的。下面您可以看到一个小示例,其中行为似乎有问题PlantUML和软件包注释,uml,plantuml,Uml,Plantuml,我试图弄清楚PlantUML是如何管理笔记的。下面您可以看到一个小示例,其中行为似乎有问题 @startuml package package{ 'note bottom : this seems to be the correct place, but brings an error artifact system note right : this links to the system as it should } note bottom: This shoul
@startuml
package package{
'note bottom : this seems to be the correct place, but brings an error
artifact system
note right : this links to the system as it should
}
note bottom: This should link to the \npackage, not the last element\nin the package list.
note "Link to the package" as test
test .- package
@enduml
此代码编译为下图:
如您所见,我想向元素包添加一个注释。根据维基,你可以使用
note bottom
将注释附着到上次定义的图元。当我在打开包后立即尝试此操作时,我得到了一个编译错误,因为没有可附加注释的内容。因此,我尝试在包裹关闭后直接添加便笺底部。在这种情况下,注释将附加到包内创建的最后一个元素
我知道我可以创建注释并将它们链接到上一个示例中所示的每个元素。但在这里,我不能使用右、左、上、下关键字来管理职位。有人知道这是一个bug还是我必须把我的笔记放在代码的其他地方吗?看起来你(和一些文档)缺少的,就像在文件包底部的注释中一样
@startuml
package package {
'note bottom : this seems to be the correct place, but brings an error
artifact system
note right : this links to the system as it should
}
note bottom of package: This should link to the \npackage, not the last element\nin the package list.
note "Link to the package" as test
test .- package
@enduml
谢谢你的意见。虽然这是工作,但它不是我要找的。正如您在我的示例(节点右侧:此链接到系统…
)和“注释和原型”下的wiki中所看到的,有一种方法可以将注释附加到最后定义的对象。我的问题是,被认为是“最后一个”的元素的行为似乎很奇怪。