root/trunk/src/xml/schema/report.xsd

Revision 1454, 3.9 kB (checked in by amandel, 3 years ago)

Support for a 'global' finding that is not related to any source.

  • Property svn:mime-type set to text/xml
  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
Line 
1<?xml version="1.0" encoding="UTF-8"?>
2<!-- $Id$ -->
3
4<!-- XML schema for checkstyle 3.1 XMLLogger output -->
5<xsd:schema
6   xmlns:xsd="http://www.w3.org/2001/XMLSchema"
7   xmlns:jxb="http://java.sun.com/xml/ns/jaxb"
8   xmlns:xjc="http://java.sun.com/xml/ns/jaxb/xjc"
9   xmlns:report="http://www.jcoderz.org/phoenix/report"
10   jxb:extensionBindingPrefixes="xjc"
11   jxb:version="1.0">
12
13   <xsd:import namespace="http://www.jcoderz.org/phoenix/report"
14               schemaLocation="report-types.xsd" />
15
16
17   <!-- copied from JAXB sample schema -->
18   <xsd:annotation>
19      <xsd:appinfo>
20
21         <jxb:globalBindings
22            fixedAttributeAsConstantProperty="true"
23            collectionType="java.util.ArrayList"
24            typesafeEnumBase="xsd:NCName"
25            choiceContentProperty="true"
26            typesafeEnumMemberName="generateError"
27            enableFailFastCheck="false"
28            generateIsSetMethod="true"
29            underscoreBinding="asCharInWord">
30            <jxb:javaType name="org.jcoderz.commons.types.Date" 
31              xmlType="xsd:dateTime" 
32              printMethod="toString"   
33              parseMethod="org.jcoderz.commons.util.XsdUtil.fromDateTimeString"/>
34            <xjc:serializable uid="106"/>
35         </jxb:globalBindings>
36         <jxb:schemaBindings>
37            <jxb:package name="org.jcoderz.phoenix.report.jaxb"/>
38        <!--
39            <jxb:nameXmlTransform>
40               <jxb:elementName suffix="Element"/>
41            </jxb:nameXmlTransform>
42         -->
43         </jxb:schemaBindings>
44      </xsd:appinfo>
45   </xsd:annotation>
46
47 <xsd:element name='item'>
48  <xsd:complexType>
49   <xsd:attribute name='message' type='xsd:string' use='optional'/>
50   <xsd:attribute name='severity'
51      type='report:Severity' use='optional' default='info'/>
52   <!-- severity-reason should be used if a filter reduces the severity -->
53   <xsd:attribute name='severity-reason' type='xsd:string' use='optional'/>
54   <xsd:attribute name='origin' type='report:Origin' use='required'/>
55   <xsd:attribute name='finding-type' type='xsd:string' use='required'/>
56   <xsd:attribute name='counter' type='xsd:int' use='optional'/>
57   <xsd:attribute name='column' type='xsd:int' use='optional'/>
58   <xsd:attribute name='end-column' type='xsd:int' use='optional'/>
59   <xsd:attribute name='line' type='xsd:int' use='optional'/>
60   <xsd:attribute name='end-line' type='xsd:int' use='optional'/>
61   <xsd:attribute name='new' type='xsd:boolean' use='optional'/>
62   <xsd:attribute name='old' type='xsd:boolean' use='optional'/>
63   <xsd:attribute name='since' type='xsd:dateTime' use='optional'/>
64   <xsd:attribute name='global' type='xsd:boolean' use='optional'/>
65   <!-- The text that caused the finding used to highlight
66        the right source position. -->
67   <xsd:attribute name='source-text' type='xsd:string' use='optional'/>
68  </xsd:complexType>
69 </xsd:element>
70
71 <xsd:element name='file'>
72  <xsd:complexType>
73   <xsd:sequence minOccurs='0' maxOccurs='unbounded'>
74    <xsd:element ref='item'/>
75   </xsd:sequence>
76   <xsd:attribute name='name' type='xsd:string' use='optional'/>
77   <xsd:attribute name='loc' type='xsd:int' use='optional'/>
78   <xsd:attribute name='classname' type='xsd:string' use='optional'/>
79   <xsd:attribute name='package' type='xsd:string' use='optional'/>
80   <xsd:attribute name='src-dir' type='xsd:string' use='optional'/>
81   <!-- level denotes the type of source -->
82   <xsd:attribute name='level' use='required' type='report:ReportLevel'/>
83  </xsd:complexType>
84 </xsd:element>
85
86 <xsd:element name='report'>
87  <xsd:complexType>
88   <xsd:sequence minOccurs='0' maxOccurs='unbounded'>
89    <xsd:element ref='file'/>
90   </xsd:sequence>
91   <xsd:attribute name='name' type='xsd:string' use='optional'/>
92   <xsd:attribute name='project-home' type='xsd:string' use='optional'/>
93   <xsd:attribute name='cvs-base' type='xsd:string' use='optional'/>
94  </xsd:complexType>
95 </xsd:element>
96</xsd:schema>
Note: See TracBrowser for help on using the browser.