| 1 | <?xml version="1.0" encoding="UTF-8"?> |
|---|
| 2 | <!-- $Id$ --> |
|---|
| 3 | |
|---|
| 4 | <xsd:schema |
|---|
| 5 | xmlns:xsd="http://www.w3.org/2001/XMLSchema" |
|---|
| 6 | xmlns:jxb="http://java.sun.com/xml/ns/jaxb" |
|---|
| 7 | xmlns:xjc="http://java.sun.com/xml/ns/jaxb/xjc" |
|---|
| 8 | xmlns:report="http://www.jcoderz.org/phoenix/report" |
|---|
| 9 | targetNamespace="http://pmd.sf.net/ruleset/1.0.0" |
|---|
| 10 | xmlns="http://pmd.sf.net/ruleset/1.0.0" |
|---|
| 11 | elementFormDefault="qualified" |
|---|
| 12 | jxb:extensionBindingPrefixes="xjc" |
|---|
| 13 | jxb:version="1.0"> |
|---|
| 14 | |
|---|
| 15 | <xsd:import namespace="http://www.jcoderz.org/phoenix/report" |
|---|
| 16 | schemaLocation="report-types.xsd" /> |
|---|
| 17 | |
|---|
| 18 | |
|---|
| 19 | <!-- copied from JAXB sample schema --> |
|---|
| 20 | <xsd:annotation> |
|---|
| 21 | <xsd:appinfo> |
|---|
| 22 | |
|---|
| 23 | <jxb:globalBindings |
|---|
| 24 | fixedAttributeAsConstantProperty="true" |
|---|
| 25 | collectionType="java.util.ArrayList" |
|---|
| 26 | typesafeEnumBase="xsd:NCName" |
|---|
| 27 | choiceContentProperty="true" |
|---|
| 28 | typesafeEnumMemberName="generateError" |
|---|
| 29 | enableFailFastCheck="false" |
|---|
| 30 | generateIsSetMethod="true" |
|---|
| 31 | underscoreBinding="asCharInWord"> |
|---|
| 32 | <xjc:serializable uid="106"/> |
|---|
| 33 | </jxb:globalBindings> |
|---|
| 34 | <jxb:schemaBindings> |
|---|
| 35 | <jxb:package name="org.jcoderz.phoenix.pmd.ruleset.jaxb"/> |
|---|
| 36 | <!-- |
|---|
| 37 | <jxb:nameXmlTransform> |
|---|
| 38 | <jxb:elementName suffix="Element"/> |
|---|
| 39 | </jxb:nameXmlTransform> |
|---|
| 40 | --> |
|---|
| 41 | </jxb:schemaBindings> |
|---|
| 42 | </xsd:appinfo> |
|---|
| 43 | </xsd:annotation> |
|---|
| 44 | |
|---|
| 45 | <xsd:element name='properties'> |
|---|
| 46 | <xsd:complexType> |
|---|
| 47 | <xsd:sequence minOccurs="0" maxOccurs="unbounded"> |
|---|
| 48 | <xsd:element ref='property' /> |
|---|
| 49 | </xsd:sequence> |
|---|
| 50 | <!-- <xsd:attribute name='name' type='xsd:string'/> |
|---|
| 51 | <xsd:attribute name='value' type='xsd:string'/> --> |
|---|
| 52 | </xsd:complexType> |
|---|
| 53 | </xsd:element> |
|---|
| 54 | |
|---|
| 55 | <xsd:element name='property'> |
|---|
| 56 | <xsd:complexType> |
|---|
| 57 | <xsd:sequence> |
|---|
| 58 | <xsd:element name='description' type="xsd:string" minOccurs='0'> |
|---|
| 59 | <xsd:annotation> |
|---|
| 60 | <xsd:appinfo> |
|---|
| 61 | <jxb:property name="descriptionElement"/> |
|---|
| 62 | </xsd:appinfo> |
|---|
| 63 | </xsd:annotation> |
|---|
| 64 | </xsd:element> |
|---|
| 65 | <xsd:element name='value' type="xsd:string" minOccurs='0'> |
|---|
| 66 | <xsd:annotation> |
|---|
| 67 | <xsd:appinfo> |
|---|
| 68 | <jxb:property name="valueElement"/> |
|---|
| 69 | </xsd:appinfo> |
|---|
| 70 | </xsd:annotation> |
|---|
| 71 | </xsd:element> |
|---|
| 72 | </xsd:sequence> |
|---|
| 73 | <xsd:attribute name='name' type='xsd:NMTOKEN'/> |
|---|
| 74 | <xsd:attribute name='value' type='xsd:string' use='optional'/> |
|---|
| 75 | <xsd:attribute name='pluginname' type='xsd:NMTOKEN' use='optional'/> |
|---|
| 76 | <xsd:attribute name='description' type='xsd:string' use='optional'/> |
|---|
| 77 | </xsd:complexType> |
|---|
| 78 | </xsd:element> |
|---|
| 79 | |
|---|
| 80 | <xsd:element name='rule'> |
|---|
| 81 | <xsd:complexType> |
|---|
| 82 | <xsd:choice maxOccurs="unbounded"> |
|---|
| 83 | <xsd:element name='description' type="xsd:string"/> |
|---|
| 84 | <xsd:element name='example' type="xsd:string"/> |
|---|
| 85 | <xsd:element name='priority' type="xsd:int"/> |
|---|
| 86 | <xsd:element ref='properties'/> |
|---|
| 87 | </xsd:choice> |
|---|
| 88 | <xsd:attribute name='name' type='xsd:ID'/> |
|---|
| 89 | <xsd:attribute name='ref' type='xsd:string' use="optional"/> |
|---|
| 90 | <xsd:attribute name='message' type='xsd:string'/> |
|---|
| 91 | <xsd:attribute name='externalInfoUrl' type='xsd:string' use="optional"/> |
|---|
| 92 | <xsd:attribute name='class' type='xsd:NMTOKEN'> |
|---|
| 93 | <xsd:annotation> |
|---|
| 94 | <xsd:appinfo> |
|---|
| 95 | <jxb:property name="clazz"/> |
|---|
| 96 | </xsd:appinfo> |
|---|
| 97 | </xsd:annotation> |
|---|
| 98 | </xsd:attribute> |
|---|
| 99 | </xsd:complexType> |
|---|
| 100 | </xsd:element> |
|---|
| 101 | |
|---|
| 102 | <xsd:element name='ruleset'> |
|---|
| 103 | <xsd:complexType> |
|---|
| 104 | <xsd:sequence> |
|---|
| 105 | <xsd:element name='description' type="xsd:string" minOccurs="0"/> |
|---|
| 106 | <xsd:element ref='rule' maxOccurs='unbounded'/> |
|---|
| 107 | </xsd:sequence> |
|---|
| 108 | <xsd:attribute name='name' type='xsd:string'/> |
|---|
| 109 | </xsd:complexType> |
|---|
| 110 | </xsd:element> |
|---|
| 111 | |
|---|
| 112 | </xsd:schema> |
|---|