著者
大野 邦夫 角山 正樹
出版者
情報処理学会
雑誌
研究報告デジタルドキュメント(DD) (ISSN:18840930)
巻号頁・発行日
vol.2010, no.1, pp.1-8, 2010-11-19

UML により得られるクラス図を XML 文書として実装する手法は、XMI、MDA などが知られているが、特定業界の特定分野に特化された形式でしか使用されていない。より単純で汎用的な手法を CLOS と LISP の S 式を用いて実現したので紹介する。属性を用いない場合、XML と S 式は共に木構造情報を管理するので対応付けることが可能である。CLOS のインスタンスに S 式のリストを用いこの手法を用いて XML に変換することにより、クラス図に対応する XML 文書を生成する方法を考案した。具体的な事例として、ジョブカードの各種様式をクラス図としてモデル化し、XML に変換し、さらに XSLT を用いて Web に表として出力させた場合を取り上げ、その有効性について述べる。Though UML Class Diagrams can be implemented to XML data or document through XMI and MDA, they are introduced to limited fields within certain industries. This paper describes a more general and simplermethod of crating and managing XML information from the UML class diagram. XML data without attribute can be expressed by symbolic equation of LISP language, because they both express the tree datamodel. Based on this analogy, object instance data created from hierarchical classes can be converted to XML data through the list data as CLOS instance variables. As an example, governmental Job Card formats are converted to XML from the UML class diagrams, and finally displayed as Web table data of HTML through XSLT.

言及状況

はてなブックマーク (1 users, 1 posts)

収集済み URL リスト