(Two XML Schemas Added)
|
(More Shawarma)
|
Line 207: | |||
</xsd:schema> </pre> | </xsd:schema> </pre> | ||
+ | == SCM Change Log Schema == | ||
+ | <pre><xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"> | ||
+ | <xsd:complexType name="ChangeLog"> | ||
+ | <xsd:sequence> | ||
+ | <xsd:element name="log-info" type="ChangeLogInfo" minOccurs="0" maxOccurs="1"/> | ||
+ | <xsd:element name="change-set" type="ChangeSet" minOccurs="0" maxOccurs="unbounded"/> | ||
+ | </xsd:sequence> | ||
+ | </xsd:complexType> | ||
+ | <xsd:complexType name="ChangeLogInfo"> | ||
+ | <xsd:sequence> | ||
+ | <xsd:element name="build-life" type="xsd:long" minOccurs="1" maxOccurs="1"/> | ||
+ | </xsd:sequence> | ||
+ | </xsd:complexType> | ||
+ | <xsd:complexType name="ChangeSet"> | ||
+ | <xsd:sequence> | ||
+ | <xsd:element name="repository-id" type="xsd:string" minOccurs="1" maxOccurs="1"/> | ||
+ | <xsd:element name="repository-type" type="xsd:string" minOccurs="1" maxOccurs="1"/> | ||
+ | <xsd:element name="anthill-id" type="xsd:long" minOccurs="0" maxOccurs="1"/> | ||
+ | <xsd:element name="id" type="xsd:string" minOccurs="0" maxOccurs="1"/> | ||
+ | <xsd:element name="user" type="xsd:string" minOccurs="1" maxOccurs="1"/> | ||
+ | <xsd:element name="module" type="xsd:string" minOccurs="0" maxOccurs="1"/> | ||
+ | <xsd:element name="branch" type="xsd:string" minOccurs="0" maxOccurs="1"/> | ||
+ | <xsd:element name="date" type="date_time" minOccurs="1" maxOccurs="1"/> | ||
+ | <xsd:element name="file-set" type="FileSet" minOccurs="1" maxOccurs="1"/> | ||
+ | <xsd:element name="properties" type="Properties" minOccurs="1" maxOccurs="1"/> | ||
+ | <xsd:element name="comment" type="xsd:string" minOccurs="0" maxOccurs="1"/> | ||
+ | </xsd:sequence> | ||
+ | </xsd:complexType> | ||
+ | <xsd:complexType name="FileSet"> | ||
+ | <xsd:sequence> | ||
+ | <xsd:element name="file" type="Change" minOccurs="1" maxOccurs="unbounded"/> | ||
+ | </xsd:sequence> | ||
+ | </xsd:complexType> | ||
+ | <xsd:complexType name="Change"> | ||
+ | <xsd:simpleContent> | ||
+ | <xsd:extension base="xsd:string"> | ||
+ | <xsd:attribute name="change-type" type="change_type"/> | ||
+ | <xsd:attribute name="revision-number" type="xsd:string"/> | ||
+ | </xsd:extension> | ||
+ | </xsd:simpleContent> | ||
+ | </xsd:complexType> | ||
+ | <xsd:complexType name="Properties"> | ||
+ | <xsd:sequence> | ||
+ | <xsd:element name="property" type="Property" minOccurs="0" maxOccurs="unbounded"/> | ||
+ | </xsd:sequence> | ||
+ | </xsd:complexType> | ||
+ | <xsd:complexType name="Property"> | ||
+ | <xsd:sequence> | ||
+ | <xsd:element name="name" type="xsd:string" minOccurs="1" maxOccurs="1"/> | ||
+ | <xsd:element name="value" type="xsd:string" minOccurs="1" maxOccurs="1"/> | ||
+ | </xsd:sequence> | ||
+ | </xsd:complexType> | ||
+ | <xsd:simpleType name="change_type"> | ||
+ | <xsd:restriction base="xsd:string"> | ||
+ | <xsd:enumeration value="A"/> | ||
+ | <xsd:enumeration value="M"/> | ||
+ | <xsd:enumeration value="D"/> | ||
+ | </xsd:restriction> | ||
+ | </xsd:simpleType> | ||
+ | <!--"yyyy-MM-dd HH:mm:ss Z" --> | ||
+ | <xsd:simpleType name="date_time"> | ||
+ | <xsd:restriction base="xsd:string"> | ||
+ | <xsd:pattern value="\d{4}-([0][1-9]|[1][0-2])-([0][1-9]|[2][0-9]|[3][0-1]) ([0-1][0-9]|[2][0-3]):[0-5][0-9]:[0-5][0-9].[0-9]+ .+"/> | ||
+ | </xsd:restriction> | ||
+ | </xsd:simpleType> | ||
+ | <xsd:element name="change-log" type="ChangeLog"/> | ||
+ | </xsd:schema> </pre> |