root/trunk/src/xml/simple-types.xml

Revision 1449, 11.3 kB (checked in by amandel, 3 years ago)

Start of a generic reader for text based log files.
Many open ends and several fields are not used yet.
Initial support for javadoc logfile #63

  • Property svn:mime-type set to text/xml
  • Property svn:eol-style set to native
Line 
1<?xml version="1.0" encoding="UTF-8"?>
2
3<simpleTypes>
4
5<!-- ===============================================================
6     TYPE-SAFE ENUMERATIONS
7     =============================================================== -->
8   <typeSafeEnumerations>
9      <enumeration
10         classname="RelationType"
11         package="org.jcoderz.phoenix.dependency">
12         <description>
13           Enumeration that describes the kind of dependency
14           that one type has with an other.
15         </description>
16         <value 
17           description="This class is derived from the other class">Derived</value>
18         <value 
19           description="This class implements from the other interface">Implements</value>
20         <value 
21           description="This class uses the other as generic type.">Generic Type</value>
22         <value
23            description="This class has a static member of the other type.">Static Member</value>
24         <value
25            description="Instances of this class have a outer class relation ship to the other type.">Outer Class</value>
26         <value
27            description="Instances of this class have a member of the other type.">Member</value>
28         <value
29            description="The other class is used as a argument in a static method of this class.">Static Argument</value>
30         <value
31            description="The other class is used as a argument in a method of this class.">Argument</value>
32         <value
33            description="The other class is used as field in a static method of this class.">Static Field</value>
34         <value
35            description="The other class is used as field in a method of this class.">Field</value>
36         <value
37            description="The other class is used in a unused import in this class.">Unused Import</value>
38      </enumeration>
39
40      <enumeration
41         classname="BusinessImpact"
42         package="org.jcoderz.commons">
43         <value>Critical</value>
44         <value>Major</value>
45         <value>Middle</value>
46         <value>Minor</value>
47         <value>None</value>
48         <value>Undefined</value>
49      </enumeration>
50
51      <enumeration
52         classname="Category"
53         package="org.jcoderz.commons">
54         <value>Audit</value>
55         <value>Business</value>
56         <value>Flow</value>
57         <value>Security</value>
58         <value>Technical</value>
59         <value>Undefined</value>
60      </enumeration>
61
62      <enumeration
63         classname="ReportInterval"
64         package="org.jcoderz.phoenix.report">
65         <value
66            description="Single builds">Build</value>
67         <value>Day</value>
68         <value>Week</value>
69         <value>Month</value>
70         <value
71            description="Select old findings, not listed before.">Old</value>
72      </enumeration>
73
74      <enumeration
75         classname="ReportLevel"
76         package="org.jcoderz.phoenix.report">
77         <value>prod</value>
78         <value>misc</value>
79         <value>test</value>
80      </enumeration>
81
82      <enumeration
83         classname="ReportFormat"
84         package="org.jcoderz.phoenix.report">
85         <value>sourceDirectory</value>
86         <value>jcoderz</value>
87         <value>checkstyle</value>
88         <value>jcoverage</value>
89         <value>findbugs</value>
90         <value>pmd</value>
91         <value>cpd</value>
92         <value>cobertura</value>
93         <value>emma</value>
94         <value>generic</value>
95      </enumeration>
96
97      <enumeration
98         classname="OutputFormat"
99         package="org.jcoderz.phoenix.report">
100         <value>xml</value>
101         <value>html</value>
102      </enumeration>
103
104      <!--enumeration  more methods!
105         classname="Severity"
106         package="org.jcoderz.phoenix.report">
107         <value>filtered</value>
108         <value>false-positive</value>
109         <value>ok</value>
110         <value>info</value>
111         <value>coverage</value>
112         <value>cpd</value>
113         <value>warning</value>
114         <value>error</value>
115      </enumeration-->
116
117      <enumeration
118         classname="HttpConnectionState"
119         package="org.jcoderz.commons.connector.http.transport">
120         <value>connection not established</value>
121         <value>connection established</value>
122         <value>connection executed</value>
123         <value>connection released</value>
124         <value>connection closed</value>
125      </enumeration>
126
127      <enumeration
128         classname="JiraState"
129         package="org.jcoderz.commons.types">
130         <value>Submitted</value>
131         <value>InfoRequested</value>
132         <value>Postponed</value>
133         <value>Assigned</value>
134         <value>Rejected</value>
135         <value>Opened</value>
136         <value>Resolved</value>
137         <value>Accepted</value>
138         <value>Closed</value>
139         <state name="start" type="start">
140            <transition target="Submitted" name="Submit"/>
141         </state>
142         <state name="Submitted">
143            <transition target="Postponed" name="Postpone"/>
144            <transition target="Assigned" name="Assign"/>
145            <transition target="Rejected" name="Reject"/>
146         </state>
147         <state name="InfoRequested">
148            <transition target="Closed" name="Close"/>
149            <transition target="Submitted" name="Resubmit"/>
150         </state>
151         <state name="Postponed">
152            <transition target="Assigned" name="Assign"/>
153         </state>
154         <state name="Assigned">
155            <transition target="Opened" name="Open"/>
156         </state>
157         <state name="Rejected">
158            <transition target="Closed" name="Close"/>
159         </state>
160         <state name="Opened">
161            <transition target="InfoRequested" name="Info Request"/>
162            <transition target="Postponed" name="Postpone"/>
163            <transition target="Assigned" name="Re-Assign"/>
164            <transition target="Rejected" name="Reject"/>
165            <transition target="Resolved" name="Resolve"/>
166         </state>
167         <state name="Resolved">
168            <transition target="Accepted" name="Accept"/>
169         </state>
170         <state name="Accepted">
171            <transition target="Closed" name="Close"/>
172         </state>
173         <state name="Closed"/>
174      </enumeration>
175
176
177   </typeSafeEnumerations>
178
179<!-- ===============================================================
180     RESTRICTED STRINGS
181     =============================================================== -->
182   <restrictedStrings>
183      <restrictedString
184         classname="Url"
185         package="org.jcoderz.commons.types"
186         min-length="1"
187         max-length="1024">
188       </restrictedString>
189       <restrictedString
190         classname="ConfigurationKey"
191         package="org.jcoderz.commons.config"
192         min-length="15"
193         max-length="255">
194      </restrictedString>
195      <restrictedString
196         classname="Origin"
197         package="org.jcoderz.phoenix.report"
198         min-length="1"
199         max-length="15"
200         regex="[A-Za-z0-9]*">
201         <constant 
202            name="PMD" value="PMD"
203            comment="PMD findings report http://pmd.sf.net/"/>"
204         <constant 
205            name="CPD" value="CPD"
206            comment="Copy &amp; Paste report http://pmd.sf.net/"/>"
207         <constant 
208            name="CHECKSTYLE" value="Checkstyle"
209            comment="Checkstyle findings report http://checkstyle.sf.net/"/>"
210         <constant 
211            name="FINDBUGS" value="Findbugs"
212            comment="Findbugs findings report http://findbugs.sf.net/"/>"
213         <constant 
214            name="COVERAGE" value="Coverage"
215            comment="Emma http://emma.sf.net or Cobertura http://cobertura.sf.net
216                     coverage report."/>"
217         <constant 
218            name="JAVA_DOC" value="JavaDoc"
219            comment="JavaDoc messages http://java.sun.com/j2se/javadoc/."/>"
220         <constant 
221            name="SYSTEM" value="System"
222            comment="jcoderz report merger system errors."/>"
223      </restrictedString>
224
225   </restrictedStrings>
226
227<!-- ===============================================================
228     RESTRICTED LONGS
229     =============================================================== -->
230   <restricted-longs>
231       <restrictedLong
232         classname="RestrictedLong"
233         package="org.jcoderz.commons.test"
234         min-value="15"
235         max-value="255">
236         <constants name="SPECIAL" comment="Very Special Value" value="15"/>
237      </restrictedLong>
238   </restricted-longs>
239   
240   
241<!-- ===============================================================
242     VALUE OBJECTS
243     =============================================================== -->
244   <valueObjects>
245      <valueObject
246         classname="Relation"
247         package="org.jcoderz.phoenix.dependency"
248         serializable="true"
249         final="true" >
250        <member name="type" type="RelationType">
251          <description>
252            The type of this relation.
253          </description>
254        </member>
255        <member name="source line" type="int">
256          <description>
257            The source line creating the relationship.
258          </description>
259        </member>
260        <member name="source symbol" type="String">
261          <description>
262            The symbol that creates the relation ship.
263          </description>
264        </member>
265        <member name="clazz" type="Clazz">
266          <description>
267            The class where this relation points to.
268          </description>
269        </member>
270        <member name="method" type="String">
271          <description>
272            The method where this relation points to. (might be null)
273          </description>
274        </member>
275        <member name="field" type="String">
276          <description>
277            The field where this relation points to. (might be null)
278          </description>
279        </member>
280        <member name="line" type="int">
281          <description>
282            The field where this relation points to. (might be null)
283          </description>
284        </member>
285      </valueObject>
286      <valueObject
287         classname="Clazz"
288         package="org.jcoderz.phoenix.dependency"
289         serializable="true">
290        <member name="qualified name" type="String" final="true">
291          <description>
292            The qualified name of this class.
293          </description>
294        </member>
295        <member name="source file name" 
296            type="String"
297            identity-independent="true">
298          <description>
299            Source file where this class is defined in.
300          </description>
301        </member>
302        <member name="package name" type="String" identity-independent="true">
303          <description>
304            Name of the package where this class belongs to.
305          </description>
306        </member>
307        <member name="relations" type="java.util.Map&lt;String,java.util.Set&lt;Relation&gt;&gt;"
308           initial-value="new java.util.HashMap&lt;String,java.util.Set&lt;Relation&gt;&gt;()"
309           final="true"
310           identity-independent="true">
311          <description>
312            The map of relations of this class key is the relation target.
313          </description>
314        </member>
315        <member name="lowlink" 
316            type="int"
317            identity-independent="true"
318            initial-value="-1">
319        </member>
320        <member name="index" 
321            type="int"
322            identity-independent="true"
323            initial-value="-1">
324        </member>
325      </valueObject>
326   </valueObjects>   
327</simpleTypes>
Note: See TracBrowser for help on using the browser.