]> git.argeo.org Git - gpl/argeo-slc.git/blob - runtime/org.argeo.slc.support.castor/src/main/resources/org/argeo/slc/castor/execution.xml
Improve execution specs
[gpl/argeo-slc.git] / runtime / org.argeo.slc.support.castor / src / main / resources / org / argeo / slc / castor / execution.xml
1 <?xml version="1.0"?>
2
3 <!DOCTYPE mapping PUBLIC "-//EXOLAB/Castor Mapping DTD Version 1.0//EN" "http://castor.org/mapping.dtd">
4
5 <mapping>
6 <description>Execution objects XML mapping</description>
7
8 <class name="org.argeo.slc.execution.ExecutionModuleDescriptor">
9 <map-to ns-uri="http://argeo.org/projects/slc/schemas"
10 ns-prefix="slc" />
11 <field name="name" />
12 <field name="version" />
13 <field name="executionFlows" collection="arraylist"
14 type="org.argeo.slc.execution.ExecutionFlowDescriptor">
15 <bind-xml auto-naming="deriveByClass" location="executionFlows" />
16 </field>
17 <field name="executionSpecs" collection="arraylist"
18 type="org.argeo.slc.execution.ExecutionSpec">
19 <bind-xml auto-naming="deriveByClass" location="executionSpecs" />
20 </field>
21 </class>
22
23 <class name="org.argeo.slc.execution.ExecutionFlowDescriptor">
24 <map-to ns-uri="http://argeo.org/projects/slc/schemas"
25 ns-prefix="slc" />
26 <field name="name" identity="true">
27 <bind-xml name="name" node="attribute" />
28 </field>
29 <field name="executionSpec">
30 <bind-xml name="executionSpec" node="attribute" reference="true" />
31 </field>
32 <field name="values" collection="map">
33 <bind-xml name="value" location="values">
34 <class name="org.exolab.castor.mapping.MapItem">
35 <map-to ns-uri="http://argeo.org/projects/slc/schemas"
36 ns-prefix="slc" />
37 <field name="key" type="string">
38 <bind-xml name="key" node="attribute" />
39 </field>
40 <field name="value">
41 <bind-xml auto-naming="deriveByClass" />
42 </field>
43 </class>
44 </bind-xml>
45 </field>
46 </class>
47
48 <!-- Specs -->
49 <class name="org.argeo.slc.core.execution.DefaultExecutionSpec">
50 <map-to ns-uri="http://argeo.org/projects/slc/schemas"
51 ns-prefix="slc" />
52 <field name="name" identity="true">
53 <bind-xml name="name" node="attribute" />
54 </field>
55 <field name="attributes" collection="map">
56 <bind-xml name="value" location="values">
57 <class name="org.exolab.castor.mapping.MapItem">
58 <map-to ns-uri="http://argeo.org/projects/slc/schemas"
59 ns-prefix="slc" />
60 <field name="key" type="string">
61 <bind-xml name="key" node="attribute" />
62 </field>
63 <field name="value">
64 <bind-xml auto-naming="deriveByClass" />
65 </field>
66 </class>
67 </bind-xml>
68 </field>
69 </class>
70
71 <class name="org.argeo.slc.core.execution.AbstractSpecAttribute">
72 <map-to ns-uri="http://argeo.org/projects/slc/schemas"
73 ns-prefix="slc" />
74 <field name="isParameter">
75 <bind-xml name="isParameter" node="attribute" />
76 </field>
77 <field name="isFrozen">
78 <bind-xml name="isFrozen" node="attribute" />
79 </field>
80 <field name="isHidden">
81 <bind-xml name="isHidden" node="attribute" />
82 </field>
83 </class>
84
85 <class name="org.argeo.slc.core.execution.PrimitiveSpecAttribute"
86 extends="org.argeo.slc.core.execution.AbstractSpecAttribute">
87 <map-to ns-uri="http://argeo.org/projects/slc/schemas"
88 ns-prefix="slc" />
89 <field name="type">
90 <bind-xml name="type" node="attribute" />
91 </field>
92 <field name="value" type="string"
93 handler="org.argeo.slc.castor.execution.PrimitiveFieldHandler" />
94 </class>
95
96 <class name="org.argeo.slc.core.execution.RefSpecAttribute"
97 extends="org.argeo.slc.core.execution.AbstractSpecAttribute">
98 <map-to ns-uri="http://argeo.org/projects/slc/schemas"
99 ns-prefix="slc" />
100 <field name="targetClassName">
101 <bind-xml name="targetClassName" node="attribute" />
102 </field>
103 </class>
104
105 <!-- Values -->
106 <class name="org.argeo.slc.core.execution.PrimitiveValue">
107 <map-to ns-uri="http://argeo.org/projects/slc/schemas"
108 ns-prefix="slc" />
109 <field name="type">
110 <bind-xml name="type" node="attribute" />
111 </field>
112 <field name="value" type="string"
113 handler="org.argeo.slc.castor.execution.PrimitiveFieldHandler" />
114 </class>
115
116 <class name="org.argeo.slc.core.execution.RefValue">
117 <map-to ns-uri="http://argeo.org/projects/slc/schemas"
118 ns-prefix="slc" />
119 <field name="label" />
120 </class>
121 </mapping>