svnno****@sourc*****
svnno****@sourc*****
2008年 11月 5日 (水) 01:39:25 JST
Revision: 2077 http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi?root=jiemamy&view=rev&rev=2077 Author: daisuke_m Date: 2008-11-05 01:39:25 +0900 (Wed, 05 Nov 2008) Log Message: ----------- xsdに、いくつかdocumentationを追加。 Modified Paths: -------------- zeus/trunk/org.jiemamy.spec.core/src/main/resources/jiemamy-core.xsd -------------- next part -------------- Modified: zeus/trunk/org.jiemamy.spec.core/src/main/resources/jiemamy-core.xsd =================================================================== --- zeus/trunk/org.jiemamy.spec.core/src/main/resources/jiemamy-core.xsd 2008-11-04 16:07:01 UTC (rev 2076) +++ zeus/trunk/org.jiemamy.spec.core/src/main/resources/jiemamy-core.xsd 2008-11-04 16:39:25 UTC (rev 2077) @@ -62,6 +62,9 @@ <xsd:element name="domain"> + <xsd:annotation> + <xsd:documentation>ドメインを表す。</xsd:documentation> + </xsd:annotation> <xsd:complexType> <xsd:sequence> <xsd:element ref="name" /> @@ -80,6 +83,9 @@ <xsd:element name="table"> + <xsd:annotation> + <xsd:documentation>テーブルを表す。</xsd:documentation> + </xsd:annotation> <xsd:complexType> <xsd:sequence> <xsd:element ref="name" /> @@ -122,6 +128,9 @@ </xsd:element> <xsd:element name="view"> + <xsd:annotation> + <xsd:documentation>ビューを表す。</xsd:documentation> + </xsd:annotation> <xsd:complexType> <xsd:sequence> <xsd:element ref="name" /> @@ -136,6 +145,9 @@ </xsd:element> <xsd:element name="sticky"> + <xsd:annotation> + <xsd:documentation>付箋を表す。</xsd:documentation> + </xsd:annotation> <xsd:complexType> <xsd:sequence> <xsd:element name="contents" type="xsd:string" /> @@ -146,6 +158,9 @@ <xsd:element name="column"> + <xsd:annotation> + <xsd:documentation>テーブルのカラムを表す。</xsd:documentation> + </xsd:annotation> <xsd:complexType> <xsd:sequence> <xsd:element ref="name" /> @@ -165,17 +180,34 @@ <xsd:element name="foreignKey"> + <xsd:annotation> + <xsd:documentation>外部キーを表す。</xsd:documentation> + </xsd:annotation> <xsd:complexType> <xsd:sequence> - <xsd:element ref="name" minOccurs="0" /> - <xsd:element ref="logicalName" minOccurs="0" /> + <xsd:element ref="name" minOccurs="0"> + <xsd:annotation> + <xsd:documentation>外部キー名を表す。</xsd:documentation> + </xsd:annotation> + </xsd:element> + <xsd:element ref="logicalName" minOccurs="0"> + <xsd:annotation> + <xsd:documentation>外部キー論理名を表す。</xsd:documentation> + </xsd:annotation> + </xsd:element> <!-- TODO 下記source/target/mappingsは、idの時はminOccurs=1, refの時はminOccurs=0にしたい。 --> <xsd:element name="source" minOccurs="0"> + <xsd:annotation> + <xsd:documentation>接続元ノードを表す。</xsd:documentation> + </xsd:annotation> <xsd:complexType> <xsd:attribute name="ref" type="uuidRefType" use="required" /> </xsd:complexType> </xsd:element> <xsd:element name="target" minOccurs="0"> + <xsd:annotation> + <xsd:documentation>接続先ノードを表す。</xsd:documentation> + </xsd:annotation> <xsd:complexType> <xsd:attribute name="ref" type="uuidRefType" use="required" /> </xsd:complexType> @@ -232,6 +264,9 @@ </xsd:element> <xsd:element name="dataType"> + <xsd:annotation> + <xsd:documentation>データ型を表す。</xsd:documentation> + </xsd:annotation> <xsd:complexType> <xsd:choice minOccurs="0" maxOccurs="unbounded"> <xsd:element name="adapter"> @@ -252,6 +287,9 @@ </xsd:element> <xsd:element name="constraints"> + <xsd:annotation> + <xsd:documentation>制約を表す。</xsd:documentation> + </xsd:annotation> <xsd:complexType> <xsd:sequence> <xsd:element name="constraint" minOccurs="0" maxOccurs="unbounded"> @@ -268,18 +306,40 @@ </xsd:element> - <xsd:element name="name" type="xsd:string" /> - <xsd:element name="logicalName" type="xsd:string" /> - <xsd:element name="beginScript" type="xsd:string" /> - <xsd:element name="endScript" type="xsd:string" /> - <xsd:element name="description" type="xsd:string" /> + <xsd:element name="name" type="xsd:string"> + <xsd:annotation> + <xsd:documentation>モデル名を表す。</xsd:documentation> + </xsd:annotation> + </xsd:element> + <xsd:element name="logicalName" type="xsd:string"> + <xsd:annotation> + <xsd:documentation>モデル論理名を表す。</xsd:documentation> + </xsd:annotation> + </xsd:element> + <xsd:element name="beginScript" type="xsd:string"> + <xsd:annotation> + <xsd:documentation>開始スクリプト(このモデルのSQL表現を出力する直前に追加されるSQL文)を表す。</xsd:documentation> + </xsd:annotation> + </xsd:element> + <xsd:element name="endScript" type="xsd:string"> + <xsd:annotation> + <xsd:documentation>終了スクリプト(このモデルのSQL表現を出力する直後に追加されるSQL文)を表す。</xsd:documentation> + </xsd:annotation> + </xsd:element> + <xsd:element name="description" type="xsd:string"> + <xsd:annotation> + <xsd:documentation>モデルに対する説明文を表す。</xsd:documentation> + </xsd:annotation> + </xsd:element> <xsd:element name="defaultValue" type="xsd:string" /> <xsd:element name="simpleIndex" type="xsd:boolean" /> <xsd:element name="freeString" type="xsd:string" /> <xsd:element name="insertDataSetModels" type="xsd:string" /> - <xsd:element name="diagramPresentations" type="xsd:string" /> <xsd:element name="options"> + <xsd:annotation> + <xsd:documentation>DB固有の付加情報を表す。</xsd:documentation> + </xsd:annotation> <xsd:complexType> <xsd:sequence> <xsd:any minOccurs="0" maxOccurs="unbounded" namespace="##other" processContents="lax"/>