| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112 |
- <?xml version="1.0" encoding="utf-8"?>
- <xs:schema id="codegen" elementFormDefault="qualified"
- xmlns:xs="http://www.w3.org/2001/XMLSchema">
- <xs:element name="config">
- <xs:complexType>
- <xs:sequence>
- <!--变量 -->
- <xs:element name="variables" maxOccurs="1">
- <xs:complexType>
- <xs:sequence>
- <xs:element name="variable" maxOccurs="unbounded">
- <xs:complexType>
- <xs:attributeGroup ref="variableAttr"></xs:attributeGroup>
- </xs:complexType>
- </xs:element>
- </xs:sequence>
- </xs:complexType>
- </xs:element>
- <xs:element name="bizDirs" maxOccurs="1">
- <xs:complexType>
- <xs:sequence>
- <xs:element name="dir" maxOccurs="unbounded"
- minOccurs="0">
- <xs:complexType>
- <xs:attributeGroup ref="dirAttr"></xs:attributeGroup>
- </xs:complexType>
- </xs:element>
- </xs:sequence>
- </xs:complexType>
- </xs:element>
- <xs:element name="appDirs" maxOccurs="1">
- <xs:complexType>
- <xs:sequence>
- <xs:element name="dir" maxOccurs="unbounded"
- minOccurs="0">
- <xs:complexType>
- <xs:attributeGroup ref="dirAttr"></xs:attributeGroup>
- </xs:complexType>
- </xs:element>
- </xs:sequence>
- </xs:complexType>
- </xs:element>
- <!--表变量 -->
- <xs:element name="table" minOccurs="0" maxOccurs="unbounded">
- <xs:complexType>
- <xs:sequence maxOccurs="unbounded" minOccurs="1">
- <!--表级别变量 -->
- <xs:element name="variable" minOccurs="0" maxOccurs="unbounded">
- <xs:complexType>
- <xs:attributeGroup ref="variableAttr"></xs:attributeGroup>
- </xs:complexType>
- </xs:element>
- <xs:element name="subtable" minOccurs="0" maxOccurs="unbounded">
- <xs:complexType>
- <xs:sequence maxOccurs="unbounded" minOccurs="1">
- <xs:element name="variable" minOccurs="0"
- maxOccurs="unbounded">
- <xs:complexType>
- <xs:attributeGroup ref="variableAttr"></xs:attributeGroup>
- </xs:complexType>
- </xs:element>
- </xs:sequence>
- <xs:attributeGroup ref="tableAttr"></xs:attributeGroup>
- </xs:complexType>
- </xs:element>
- </xs:sequence>
- <xs:attribute name="tableName" type="xs:string" use="required">
- <xs:annotation>
- <xs:documentation>数据库表名.</xs:documentation>
- </xs:annotation>
- </xs:attribute>
- </xs:complexType>
- </xs:element>
- </xs:sequence>
- </xs:complexType>
- </xs:element>
- <!--变量属性 -->
- <xs:attributeGroup name="variableAttr">
- <xs:attribute name="name" use="required" type="xs:string">
- </xs:attribute>
- <xs:attribute name="value" type="xs:string" use="required"></xs:attribute>
- <xs:attribute name="comment" type="xs:string"></xs:attribute>
- </xs:attributeGroup>
- <xs:attributeGroup name="dirAttr">
- <xs:attribute name="sys" type="xs:string">
- </xs:attribute>
- <xs:attribute name="modules" use="required" type="xs:string">
- </xs:attribute>
- <xs:attribute name="value" type="xs:string" use="required"></xs:attribute>
- </xs:attributeGroup>
- <xs:attributeGroup name="tableAttr">
- <xs:attribute name="tableName" type="xs:string" use="required">
- <xs:annotation>
- <xs:documentation>
- 表名
- </xs:documentation>
- </xs:annotation>
- </xs:attribute>
- <xs:attribute name="foreignKey" type="xs:string" use="required">
- <xs:annotation>
- <xs:documentation>
- 外键
- </xs:documentation>
- </xs:annotation>
- </xs:attribute>
- </xs:attributeGroup>
- </xs:schema>
|