UML 如何表示 JSON 文件
UML how to represent JSON file
快速提问:
我正在加载存储在我的存储库中的 JSON 文件。如果需要,我该如何表示 JSON 文件?
如果您需要该对象,只需将其显示为工件(第 654 页 UML 2.6):
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.
它显示为类似 class 的矩形,右上角带有 "file-like" 装饰器。第 655 页:
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.
如果您需要该结构,您宁愿将其显示为 class,其中包含单个属性。
快速提问: 我正在加载存储在我的存储库中的 JSON 文件。如果需要,我该如何表示 JSON 文件?
如果您需要该对象,只需将其显示为工件(第 654 页 UML 2.6):
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.
它显示为类似 class 的矩形,右上角带有 "file-like" 装饰器。第 655 页:
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.
如果您需要该结构,您宁愿将其显示为 class,其中包含单个属性。