]> git.argeo.org Git - gpl/argeo-slc.git/blob - runtime/org.argeo.slc.lib.detached/src/main/resources/org/argeo/slc/lib/detached/castor.xml
d422c0b0fd682d5ec75680c3e7d7064e30989d93
[gpl/argeo-slc.git] / runtime / org.argeo.slc.lib.detached / src / main / resources / org / argeo / slc / lib / detached / castor.xml
1 <?xml version="1.0"?>
2 <!--
3
4 Copyright (C) 2007-2012 Argeo GmbH
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 <!DOCTYPE doc [
20 <!ENTITY slc-detached-namespace-uri "http://argeo.org/projects/slc/schemas/detached">
21 <!ENTITY slc-detached-namespace-prefix "slc-det">
22 ]>
23
24 <mapping>
25 <description>Mapping of SLC detached types</description>
26
27 <class name="org.argeo.slc.detached.DetachedRequest">
28 <map-to ns-uri="&slc-detached-namespace-uri;"
29 ns-prefix="&slc-detached-namespace-prefix;" />
30 <field name="uuid" />
31 <field name="ref" />
32 <field name="properties" collection="map">
33 <bind-xml name="prop" location="properties">
34 <class name="org.exolab.castor.mapping.MapItem">
35 <map-to ns-uri="&slc-detached-namespace-uri;"
36 ns-prefix="&slc-detached-namespace-prefix;" />
37 <field name="key" type="string">
38 <bind-xml name="key" node="attribute" />
39 </field>
40 <field name="value" type="string">
41 <bind-xml node="text" />
42 </field>
43 </class>
44 </bind-xml>
45 </field>
46 </class>
47
48 <class name="org.argeo.slc.detached.DetachedAnswer">
49 <map-to ns-uri="&slc-detached-namespace-uri;"
50 ns-prefix="&slc-detached-namespace-prefix;" />
51 <field name="uuid" />
52 <field name="status" />
53 <field name="log" />
54 <field name="properties" collection="map">
55 <bind-xml name="prop" location="properties">
56 <class name="org.exolab.castor.mapping.MapItem">
57 <map-to ns-uri="&slc-detached-namespace-uri;"
58 ns-prefix="&slc-detached-namespace-prefix;" />
59 <field name="key" type="string">
60 <bind-xml name="key" node="attribute" />
61 </field>
62 <field name="value" type="string">
63 <bind-xml node="text" />
64 </field>
65 </class>
66 </bind-xml>
67 </field>
68 </class>
69 </mapping>