How to show namespace in UML?

2019-04-07 02:07发布

How to show that certain types are in a specific namespace? Accordingly to UML 2.

标签: uml
4条回答
2楼-- · 2019-04-07 02:19

I'd say that the package construct is close enough to the idea of namespace. Use that.

查看更多
太酷不给撩
3楼-- · 2019-04-07 02:26

In UML we use package with <> stereotype for modeling namespace. See UML v.2.5. 7.4 Namespaces for details.

查看更多
干净又极端
4楼-- · 2019-04-07 02:29

As far as I know, there is no specific "namespace" notation in UML.

Just use a package around any components that belong in a specific namespace (and use the namespace as the package name).

查看更多
Rolldiameter
5楼-- · 2019-04-07 02:41

You can create the package and include those items in the package. Note that UML2 has the notion of package, that is also a namespace (and gets translated as such into programming languages).

查看更多
登录 后发表回答