]> git.argeo.org Git - gpl/argeo-slc.git/blob - msg.xml
269903113c351228a382108ecbef53a1bb17f106
[gpl/argeo-slc.git] / msg.xml
1 <?xml version="1.0"?>
2 <!--
3
4 Copyright (C) 2007-2012 Mathieu Baudier
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 <!-- Copyright (C) 2010 Mathieu Baudier <mbaudier@argeo.org> Licensed under
20 the Apache License, Version 2.0 (the "License"); you may not use this file
21 except in compliance with the License. You may obtain a copy of the License
22 at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable
23 law or agreed to in writing, software distributed under the License is distributed
24 on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
25 express or implied. See the License for the specific language governing permissions
26 and limitations under the License. -->
27
28
29 <mapping>
30 <description>Message objects XML mapping</description>
31
32 <!-- TODO: use XML entities to factorize patterns -->
33
34 <!-- BASIC -->
35 <class name="org.argeo.slc.msg.ExecutionAnswer">
36 <map-to ns-uri="http://argeo.org/projects/slc/schemas"
37 ns-prefix="slc" />
38 <field name="status" />
39 <field name="message" />
40 </class>
41
42 <class name="org.argeo.slc.msg.ReferenceList">
43 <map-to ns-uri="http://argeo.org/projects/slc/schemas"
44 ns-prefix="slc" />
45 <field name="references" collection="arraylist" type="string">
46 <bind-xml name="ref" />
47 </field>
48 </class>
49
50 <class name="org.argeo.slc.msg.ObjectList">
51 <map-to ns-uri="http://argeo.org/projects/slc/schemas"
52 ns-prefix="slc" />
53 <field name="objects" collection="arraylist" type="java.io.Serializable">
54 <bind-xml auto-naming="deriveByClass" />
55 </field>
56 </class>
57
58 <!-- BUILD -->
59 <class name="org.argeo.slc.msg.build.ModularDistributionDescriptor"
60 extends="org.argeo.slc.BasicNameVersion">
61 <map-to ns-uri="http://argeo.org/projects/slc/schemas"
62 ns-prefix="slc" />
63 <field name="modulesDescriptors" collection="map">
64 <bind-xml name="modulesDescriptor" location="modulesDescriptors">
65 <class name="org.exolab.castor.mapping.MapItem">
66 <map-to ns-uri="http://argeo.org/projects/slc/schemas"
67 ns-prefix="slc" />
68 <field name="key" type="string">
69 <bind-xml name="type" node="attribute" />
70 </field>
71 <field name="value" type="string">
72 <bind-xml name="url" node="attribute" />
73 </field>
74 </class>
75 </bind-xml>
76 </field>
77 </class>
78
79 <!-- TESTS -->
80 <class name="org.argeo.slc.msg.test.tree.CreateTreeTestResultRequest">
81 <map-to ns-uri="http://argeo.org/projects/slc/schemas"
82 ns-prefix="slc" />
83 <field name="treeTestResult" type="org.argeo.slc.core.test.tree.TreeTestResult" />
84 <field name="testRunDescriptor" />
85 </class>
86
87 <class name="org.argeo.slc.msg.test.tree.CloseTreeTestResultRequest">
88 <map-to ns-uri="http://argeo.org/projects/slc/schemas"
89 ns-prefix="slc" />
90 <field name="resultUuid" />
91 <field name="closeDate" />
92 </class>
93
94 <class name="org.argeo.slc.msg.test.tree.AddTreeTestResultAttachmentRequest">
95 <map-to ns-uri="http://argeo.org/projects/slc/schemas"
96 ns-prefix="slc" />
97 <field name="resultUuid" />
98 <field name="attachment" type="org.argeo.slc.core.attachment.SimpleAttachment">
99 <bind-xml auto-naming="deriveByClass" />
100 </field>
101 </class>
102
103 <class name="org.argeo.slc.msg.test.tree.ResultPartRequest">
104 <map-to ns-uri="http://argeo.org/projects/slc/schemas"
105 ns-prefix="slc" />
106 <field name="resultUuid" />
107 <field name="resultPart" type="org.argeo.slc.core.test.SimpleResultPart">
108 <bind-xml auto-naming="deriveByClass" />
109 </field>
110
111 <field name="relatedElements" collection="map">
112 <bind-xml name="element" location="related-elements">
113 <class name="org.exolab.castor.mapping.MapItem">
114 <map-to ns-uri="http://argeo.org/projects/slc/schemas"
115 ns-prefix="slc" />
116 <field name="key" type="org.argeo.slc.core.structure.tree.TreeSPath"
117 handler="org.argeo.slc.castor.structure.tree.TreeSPathFieldHandler">
118 <bind-xml name="path" node="attribute" />
119 </field>
120 <field name="value" type="org.argeo.slc.core.structure.SimpleSElement">
121 <bind-xml auto-naming="deriveByClass" />
122 </field>
123 </class>
124 </bind-xml>
125 </field>
126 <field name="path">
127 <bind-xml auto-naming="deriveByClass" />
128 </field>
129 <field name="testRunDescriptor" />
130 <field name="attributes" collection="hashtable">
131 <bind-xml name="attribute" location="attributes">
132 <class name="org.exolab.castor.mapping.MapItem">
133 <map-to ns-uri="http://argeo.org/projects/slc/schemas"
134 ns-prefix="slc" />
135 <field name="key" type="string">
136 <bind-xml name="name" node="attribute" />
137 </field>
138 <field name="value" type="string">
139 <bind-xml node="text" />
140 </field>
141 </class>
142 </bind-xml>
143 </field>
144 </class>
145
146 <class name="org.argeo.slc.core.test.tree.ResultAttributes">
147 <map-to ns-uri="http://argeo.org/projects/slc/schemas"
148 ns-prefix="slc" />
149 <field name="uuid" />
150 <field name="closeDate" />
151 <field name="attributes" collection="hashtable">
152 <bind-xml name="attribute" location="attributes">
153 <class name="org.exolab.castor.mapping.MapItem">
154 <map-to ns-uri="http://argeo.org/projects/slc/schemas"
155 ns-prefix="slc" />
156 <field name="key" type="string">
157 <bind-xml name="name" node="attribute" />
158 </field>
159 <field name="value" type="string">
160 <bind-xml node="text" />
161 </field>
162 </class>
163 </bind-xml>
164 </field>
165 <field name="attachments" collection="arraylist"
166 type="org.argeo.slc.core.attachment.SimpleAttachment">
167 <bind-xml auto-naming="deriveByClass" location="attachments" />
168 </field>
169 </class>
170
171
172 <!-- PROCESS -->
173 <class name="org.argeo.slc.msg.process.SlcExecutionStepsRequest">
174 <map-to ns-uri="http://argeo.org/projects/slc/schemas"
175 ns-prefix="slc" />
176 <field name="slcExecutionUuid" />
177 <field name="steps" collection="arraylist"
178 type="org.argeo.slc.process.SlcExecutionStep">
179 <bind-xml auto-naming="deriveByClass" location="steps" />
180 </field>
181 </class>
182
183 <class name="org.argeo.slc.msg.process.SlcExecutionStatusRequest">
184 <map-to ns-uri="http://argeo.org/projects/slc/schemas"
185 ns-prefix="slc" />
186 <field name="slcExecutionUuid" />
187 <field name="newStatus" />
188 </class>
189
190 <class name="org.argeo.slc.msg.process.SlcExecutionRequest">
191 <map-to ns-uri="http://argeo.org/projects/slc/schemas"
192 ns-prefix="slc" />
193 <field name="slcExecution" type="org.argeo.slc.process.SlcExecution" />
194 </class>
195
196 <!-- EVENTS -->
197
198 <class name="org.argeo.slc.msg.event.SlcEvent">
199 <map-to ns-uri="http://argeo.org/projects/slc/schemas"
200 ns-prefix="slc" />
201 <field name="headers" collection="map">
202 <bind-xml name="header" location="headers">
203 <class name="org.exolab.castor.mapping.MapItem">
204 <map-to ns-uri="http://argeo.org/projects/slc/schemas"
205 ns-prefix="slc" />
206 <field name="key" type="string">
207 <bind-xml name="name" node="attribute" />
208 </field>
209 <field name="value" type="string">
210 <bind-xml node="text" />
211 </field>
212 </class>
213 </bind-xml>
214 </field>
215 </class>
216
217 </mapping>