]> git.argeo.org Git - gpl/argeo-slc.git/blob - test.xml
afc1762e8af454bdfc0a303c939a9bf6aea1305e
[gpl/argeo-slc.git] / test.xml
1 <?xml version="1.0"?>
2 <!--
3
4 Copyright (C) 2010 Mathieu Baudier <mbaudier@argeo.org>
5
6 Licensed under the Apache License, Version 2.0 (the "License");
7 you may not use this file except in compliance with the License.
8 You may obtain a copy of the License at
9
10 http://www.apache.org/licenses/LICENSE-2.0
11
12 Unless required by applicable law or agreed to in writing, software
13 distributed under the License is distributed on an "AS IS" BASIS,
14 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 See the License for the specific language governing permissions and
16 limitations under the License.
17
18 -->
19
20
21 <mapping>
22 <description>Test objects XML mapping</description>
23
24 <class name="org.argeo.slc.test.TestRunDescriptor" auto-complete="false">
25 <map-to ns-uri="http://argeo.org/projects/slc/schemas"
26 ns-prefix="slc" />
27 <field name="testRunUuid" />
28 <field name="slcExecutionUuid" />
29 <field name="slcExecutionStepUuid" />
30 <field name="testResultUuid" />
31 <field name="deployedSytemId" />
32 </class>
33
34 <class name="org.argeo.slc.core.test.tree.TreeTestResult"
35 auto-complete="false">
36 <map-to ns-uri="http://argeo.org/projects/slc/schemas"
37 ns-prefix="slc" />
38 <field name="uuid" type="string">
39 <bind-xml name="uuid" node="attribute" />
40 </field>
41 <field name="closeDate" />
42 <field name="attributes" collection="map">
43 <bind-xml name="attribute" location="attributes">
44 <class name="org.exolab.castor.mapping.MapItem">
45 <map-to ns-uri="http://argeo.org/projects/slc/schemas"
46 ns-prefix="slc" />
47 <field name="key" type="string">
48 <bind-xml name="name" node="attribute" />
49 </field>
50 <field name="value" type="string">
51 <bind-xml node="text" />
52 </field>
53 </class>
54 </bind-xml>
55 </field>
56 <field name="resultParts" collection="sortedmap">
57 <bind-xml name="result-part" location="result-parts">
58 <class name="org.exolab.castor.mapping.MapItem">
59 <map-to ns-uri="http://argeo.org/projects/slc/schemas"
60 ns-prefix="slc" />
61 <field name="key" type="org.argeo.slc.core.structure.tree.TreeSPath"
62 handler="org.argeo.slc.castor.structure.tree.TreeSPathFieldHandler">
63 <bind-xml name="path" node="attribute" />
64 </field>
65 <field name="value" type="org.argeo.slc.core.test.tree.PartSubList">
66 <bind-xml name="part-sub-list" />
67 </field>
68 </class>
69 </bind-xml>
70 </field>
71 <field name="elements" collection="sortedmap">
72 <bind-xml name="element" location="elements">
73 <class name="org.exolab.castor.mapping.MapItem">
74 <map-to ns-uri="http://argeo.org/projects/slc/schemas"
75 ns-prefix="slc" />
76 <field name="key" type="org.argeo.slc.core.structure.tree.TreeSPath"
77 handler="org.argeo.slc.castor.structure.tree.TreeSPathFieldHandler">
78 <bind-xml name="path" node="attribute" />
79 </field>
80 <field name="value" type="org.argeo.slc.core.structure.SimpleSElement">
81 <bind-xml auto-naming="deriveByClass" />
82 </field>
83 </class>
84 </bind-xml>
85 </field>
86 <field name="attachments" collection="arraylist"
87 type="org.argeo.slc.core.attachment.SimpleAttachment">
88 <bind-xml auto-naming="deriveByClass" location="attachments" />
89 </field>
90 </class>
91
92 <class name="org.argeo.slc.core.test.tree.PartSubList"
93 auto-complete="false">
94 <map-to ns-uri="http://argeo.org/projects/slc/schemas"
95 ns-prefix="slc" />
96 <field name="parts" collection="arraylist"
97 type="org.argeo.slc.core.test.SimpleResultPart">
98 <bind-xml auto-naming="deriveByClass" location="parts" />
99 </field>
100 </class>
101
102 <class name="org.argeo.slc.core.test.SimpleResultPart"
103 auto-complete="false">
104 <map-to ns-uri="http://argeo.org/projects/slc/schemas"
105 ns-prefix="slc" />
106 <field name="testRunUuid" type="string" />
107 <field name="message" type="string" />
108 <field name="status" type="string"
109 handler="org.argeo.slc.castor.test.tree.StatusFieldHandler" />
110 <field name="exceptionMessage" type="string" />
111 </class>
112
113 <class name="org.argeo.slc.core.test.tree.TreeTestResultCollection"
114 auto-complete="false">
115 <map-to ns-uri="http://argeo.org/projects/slc/schemas"
116 ns-prefix="slc" />
117 <field name="id" type="string">
118 <bind-xml name="id" node="attribute" />
119 </field>
120 <field name="results" collection="set"
121 type="org.argeo.slc.core.test.tree.TreeTestResult">
122 <bind-xml auto-naming="deriveByClass" location="results" />
123 </field>
124 </class>
125 </mapping>