如何在 UML 图中表示非 java 文件?

How to represent non-java file in UML diagram?

我使用 SceneBuilder 为我的应用生成 GUI,它会自动生成包含所有这些数据的 FXML 文件。如果有的话,我将如何在 UML class 图中表示它?

您只需将其表示为工件(UML 2.5 第 654 页):

19.3 Artifacts

19.3.1 Summary

An Artifact represents some (usually reifiable) item of information that is used or produced by a software development process or by operation of a system. Examples of Artifacts include model files, source files, scripts, executable files, database tables, development deliverables, word-processing documents, and mail messages.

...

19.3.4 Notation

An Artifact is presented using an ordinary Class rectangle with the keyword «artifact». Alternatively, it may be depicted by an icon (such as the document icon shown in Figure 19.9). Optionally, the underlining of the name of an artifact instance may be omitted, as the context is assumed to be known to users.

A Manifestation is notated in the same way as an Abstraction, that is, as a dashed line with an open arrow-head, labeled with the keyword «manifest».