]> 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 spring templates
[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="label" />
14 <field name="description" />
15 <field name="executionFlows" collection="arraylist"
16 type="org.argeo.slc.execution.ExecutionFlowDescriptor">
17 <bind-xml auto-naming="deriveByClass" location="execution-flows" />
18 </field>
19 <field name="executionSpecs" collection="arraylist"
20 type="org.argeo.slc.execution.ExecutionSpec">
21 <bind-xml auto-naming="deriveByClass" location="execution-specs" />
22 </field>
23 </class>
24
25 <class name="org.argeo.slc.execution.ExecutionFlowDescriptor">
26 <map-to ns-uri="http://argeo.org/projects/slc/schemas"
27 ns-prefix="slc" />
28 <field name="name" identity="true">
29 <bind-xml name="name" node="attribute" />
30 </field>
31 <field name="path">
32 <bind-xml name="path" node="attribute" />
33 </field>
34 <field name="executionSpec">
35 <bind-xml name="executionSpec" node="attribute" reference="true" />
36 </field>
37 <field name="values" collection="map">
38 <bind-xml name="value" location="values">
39 <class name="org.exolab.castor.mapping.MapItem">
40 <map-to ns-uri="http://argeo.org/projects/slc/schemas"
41 ns-prefix="slc" />
42 <field name="key" type="string">
43 <bind-xml name="key" node="attribute" />
44 </field>
45 <field name="value"
46 type="org.argeo.slc.core.execution.AbstractExecutionValue">
47 <bind-xml auto-naming="deriveByClass" />
48 </field>
49 </class>
50 </bind-xml>
51 </field>
52 </class>
53
54 <!-- Specs -->
55 <class name="org.argeo.slc.core.execution.DefaultExecutionSpec">
56 <map-to ns-uri="http://argeo.org/projects/slc/schemas"
57 ns-prefix="slc" />
58 <field name="name" identity="true">
59 <bind-xml name="name" node="attribute" />
60 </field>
61 <field name="attributes" collection="map">
62 <bind-xml name="value" location="values">
63 <class name="org.exolab.castor.mapping.MapItem">
64 <map-to ns-uri="http://argeo.org/projects/slc/schemas"
65 ns-prefix="slc" />
66 <field name="key" type="string">
67 <bind-xml name="key" node="attribute" />
68 </field>
69 <field name="value"
70 type="org.argeo.slc.core.execution.AbstractSpecAttribute">
71 <bind-xml auto-naming="deriveByClass" />
72 </field>
73 </class>
74 </bind-xml>
75 </field>
76 </class>
77
78 <class name="org.argeo.slc.core.execution.AbstractSpecAttribute">
79 <map-to ns-uri="http://argeo.org/projects/slc/schemas"
80 ns-prefix="slc" />
81 <field name="isParameter">
82 <bind-xml name="isParameter" node="attribute" />
83 </field>
84 <field name="isFrozen">
85 <bind-xml name="isFrozen" node="attribute" />
86 </field>
87 <field name="isHidden">
88 <bind-xml name="isHidden" node="attribute" />
89 </field>
90 </class>
91
92 <class name="org.argeo.slc.core.execution.PrimitiveSpecAttribute"
93 extends="org.argeo.slc.core.execution.AbstractSpecAttribute">
94 <map-to ns-uri="http://argeo.org/projects/slc/schemas"
95 ns-prefix="slc" />
96 <field name="type">
97 <bind-xml name="type" node="attribute" />
98 </field>
99 <field name="value" type="string"
100 handler="org.argeo.slc.castor.execution.PrimitiveFieldHandler">
101 <bind-xml node="text" />
102 </field>
103 </class>
104
105 <class name="org.argeo.slc.core.execution.RefSpecAttribute"
106 extends="org.argeo.slc.core.execution.AbstractSpecAttribute">
107 <map-to ns-uri="http://argeo.org/projects/slc/schemas"
108 ns-prefix="slc" />
109 <field name="targetClassName">
110 <bind-xml name="targetClassName" node="attribute" />
111 </field>
112 <field name="choices" collection="arraylist"
113 type="org.argeo.slc.core.execution.RefValueChoice">
114 <bind-xml auto-naming="deriveByClass" location="choices" />
115 </field>
116 </class>
117
118 <!-- Values -->
119 <class name="org.argeo.slc.core.execution.AbstractExecutionValue">
120 <map-to ns-uri="http://argeo.org/projects/slc/schemas"
121 ns-prefix="slc" />
122 </class>
123
124 <class name="org.argeo.slc.core.execution.PrimitiveValue"
125 extends="org.argeo.slc.core.execution.AbstractExecutionValue">
126 <map-to ns-uri="http://argeo.org/projects/slc/schemas"
127 ns-prefix="slc" />
128 <field name="type">
129 <bind-xml name="type" node="attribute" />
130 </field>
131 <field name="value" type="string"
132 handler="org.argeo.slc.castor.execution.PrimitiveFieldHandler">
133 <bind-xml node="text" />
134 </field>
135 </class>
136
137 <class name="org.argeo.slc.core.execution.RefValue" extends="org.argeo.slc.core.execution.AbstractExecutionValue">
138 <map-to ns-uri="http://argeo.org/projects/slc/schemas"
139 ns-prefix="slc" />
140 <field name="ref">
141 <bind-xml name="ref" node="attribute" />
142 </field>
143 <field name="type">
144 <bind-xml name="type" node="attribute" />
145 </field>
146 </class>
147
148 <class name="org.argeo.slc.core.execution.RefValueChoice">
149 <map-to ns-uri="http://argeo.org/projects/slc/schemas"
150 ns-prefix="slc" />
151 <field name="name">
152 <bind-xml name="name" node="attribute" />
153 </field>
154 <field name="description" />
155 </class>
156 </mapping>