简体   繁体   中英

How to show that a class/interface is the interface of a package in ArgoUML

Suppose I have the following package represented in ArgoUML:

类图中的包。客户端只使用四个类/接口中的一个

How could I emphasize that the User interface is the only component of the package that is known by external clients? For now, I use a note, but I think there should be a way of doing it more explicitly.

Note: it should be done in ArgoUML.

In UML, this is achieved using visibility: set the visibility to Public for "User" and to Package for the others.

ArgoUML (0.32.2), however, is unable to display visibility for elements (but it can display the visibility of packages themselves). There is an option for visibility in Settings - Notations, but it seems to have no effect.

An alternative is to be selective in what you show in a particular diagram. Say your diagram describes the API; it would then only include "User" from this package, along with relevant public classes and interfaces from other packages.

Since you're up against a limitation of the tool, I would include a note in any case.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM