]> git.argeo.org Git - gpl/argeo-slc.git/blob - runtime/org.argeo.slc.support.ant/src/main/resources/org/argeo/slc/lib/detached/castor.xml
Introduce org.argeo.slc.lib.detached
[gpl/argeo-slc.git] / runtime / org.argeo.slc.support.ant / src / main / resources / org / argeo / slc / lib / detached / castor.xml
1 <?xml version="1.0"?>
2 <!DOCTYPE doc [
3 <!ENTITY slc-detached-namespace-uri "http://argeo.org/projects/slc/schemas/detached">
4 <!ENTITY slc-detached-namespace-prefix "slc-det">
5 ]>
6
7 <mapping>
8 <description>Mapping of SLC detached types</description>
9
10 <class name="org.argeo.slc.detached.DetachedRequest">
11 <map-to ns-uri="&slc-detached-namespace-uri;"
12 ns-prefix="&slc-detached-namespace-prefix;" />
13 <field name="uuid" />
14 <field name="ref" />
15 <field name="path" />
16 <field name="properties" collection="map">
17 <bind-xml name="prop" location="properties">
18 <class name="org.exolab.castor.mapping.MapItem">
19 <map-to ns-uri="&slc-detached-namespace-uri;"
20 ns-prefix="&slc-detached-namespace-prefix;" />
21 <field name="key" type="string">
22 <bind-xml name="key" node="attribute" />
23 </field>
24 <field name="value" type="string">
25 <bind-xml node="text" />
26 </field>
27 </class>
28 </bind-xml>
29 </field>
30 </class>
31
32 <class name="org.argeo.slc.detached.DetachedAnswer">
33 <map-to ns-uri="&slc-detached-namespace-uri;"
34 ns-prefix="&slc-detached-namespace-prefix;" />
35 <field name="uuid" />
36 <field name="status" />
37 <field name="log" />
38 <field name="properties" collection="map">
39 <bind-xml name="prop" location="properties">
40 <class name="org.exolab.castor.mapping.MapItem">
41 <map-to ns-uri="&slc-detached-namespace-uri;"
42 ns-prefix="&slc-detached-namespace-prefix;" />
43 <field name="key" type="string">
44 <bind-xml name="key" node="attribute" />
45 </field>
46 <field name="value" type="string">
47 <bind-xml node="text" />
48 </field>
49 </class>
50 </bind-xml>
51 </field>
52 </class>
53 </mapping>