| 1 | <?xml version="1.0"?> |
|---|
| 2 | <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"> |
|---|
| 3 | |
|---|
| 4 | <xsd:simpleType name="ClassType"> |
|---|
| 5 | <xsd:restriction base="xsd:string"> |
|---|
| 6 | <xsd:pattern value="[A-Za-z_][A-Za-z0-9_]*(.[A-Za-z_][A-Za-z0-9_]*)*"/> |
|---|
| 7 | </xsd:restriction> |
|---|
| 8 | </xsd:simpleType> |
|---|
| 9 | |
|---|
| 10 | <xsd:simpleType name="IdentifierType"> |
|---|
| 11 | <xsd:restriction base="xsd:string"> |
|---|
| 12 | <xsd:pattern value="[A-Za-z0-9_]*"/> |
|---|
| 13 | </xsd:restriction> |
|---|
| 14 | </xsd:simpleType> |
|---|
| 15 | |
|---|
| 16 | <xsd:complexType name="PluginType"> |
|---|
| 17 | <xsd:sequence> |
|---|
| 18 | <xsd:element name="ShortDescription" type="xsd:string"/> |
|---|
| 19 | <xsd:element name="Details" type="xsd:string"/> |
|---|
| 20 | </xsd:sequence> |
|---|
| 21 | </xsd:complexType> |
|---|
| 22 | |
|---|
| 23 | <xsd:complexType name="DetectorType"> |
|---|
| 24 | <xsd:sequence> |
|---|
| 25 | <xsd:element name="Details" type="xsd:string"/> |
|---|
| 26 | </xsd:sequence> |
|---|
| 27 | <xsd:attribute name="class" type="ClassType"/> |
|---|
| 28 | </xsd:complexType> |
|---|
| 29 | |
|---|
| 30 | <xsd:complexType name="BugCategoryType"> |
|---|
| 31 | <xsd:sequence> |
|---|
| 32 | <xsd:element name="Description" type="xsd:string"/> |
|---|
| 33 | <xsd:element name="Abbreviation" type="xsd:NMTOKEN"/> <!--typically a single capital letter--> |
|---|
| 34 | <xsd:element name="Details" type="xsd:string" minOccurs="0"/> |
|---|
| 35 | </xsd:sequence> |
|---|
| 36 | <xsd:attribute name="category" type="IdentifierType"/> |
|---|
| 37 | </xsd:complexType> |
|---|
| 38 | |
|---|
| 39 | <xsd:complexType name="BugPatternType"> |
|---|
| 40 | <xsd:sequence> |
|---|
| 41 | <xsd:element name="ShortDescription" type="xsd:string"/> |
|---|
| 42 | <xsd:element name="LongDescription" type="xsd:string"/> |
|---|
| 43 | <xsd:element name="Details" type="xsd:string"/> |
|---|
| 44 | </xsd:sequence> |
|---|
| 45 | <xsd:attribute name="type" type="IdentifierType"/> |
|---|
| 46 | <xsd:attribute name="deprecated" type="xsd:boolean" use="optional"/> |
|---|
| 47 | </xsd:complexType> |
|---|
| 48 | |
|---|
| 49 | <xsd:complexType name="BugCodeType" mixed="true"> |
|---|
| 50 | <xsd:attribute name="abbrev" type="xsd:ID"/> |
|---|
| 51 | </xsd:complexType> |
|---|
| 52 | |
|---|
| 53 | <xsd:complexType name="MessageCollectionType" mixed="true"> |
|---|
| 54 | <xsd:sequence> |
|---|
| 55 | <xsd:element name="Plugin" type="PluginType"/> |
|---|
| 56 | <xsd:element name="BugCategory" type="BugCategoryType" minOccurs="0" maxOccurs="unbounded"/> |
|---|
| 57 | <xsd:element name="Detector" type="DetectorType" minOccurs="1" maxOccurs="unbounded"/> |
|---|
| 58 | <xsd:element name="BugPattern" type="BugPatternType" minOccurs="1" maxOccurs="unbounded"/> |
|---|
| 59 | <xsd:element name="BugCode" type="BugCodeType" minOccurs="1" maxOccurs="unbounded"/> |
|---|
| 60 | </xsd:sequence> |
|---|
| 61 | </xsd:complexType> |
|---|
| 62 | |
|---|
| 63 | <xsd:element name="MessageCollection" type="MessageCollectionType"/> |
|---|
| 64 | |
|---|
| 65 | </xsd:schema> |
|---|