]> 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
[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
4 Copyright (C) 2010 Mathieu Baudier <mbaudier@argeo.org>
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
20
21 <!DOCTYPE mapping PUBLIC "-//EXOLAB/Castor Mapping DTD Version 1.0//EN" "http://castor.org/mapping.dtd">
22
23 <mapping>
24 <description>Execution objects XML mapping</description>
25
26 <class name="org.argeo.slc.execution.ExecutionModuleDescriptor">
27 <map-to ns-uri="http://argeo.org/projects/slc/schemas"
28 ns-prefix="slc" />
29 <field name="name" />
30 <field name="version" />
31 <field name="label" />
32 <field name="description" />
33 <field name="executionFlows" collection="arraylist"
34 type="org.argeo.slc.execution.ExecutionFlowDescriptor">
35 <bind-xml auto-naming="deriveByClass" location="execution-flows" />
36 </field>
37 <field name="executionSpecs" collection="arraylist"
38 type="org.argeo.slc.execution.ExecutionSpec">
39 <bind-xml auto-naming="deriveByClass" location="execution-specs" />
40 </field>
41 </class>
42
43 <class name="org.argeo.slc.execution.ExecutionFlowDescriptor">
44 <map-to ns-uri="http://argeo.org/projects/slc/schemas"
45 ns-prefix="slc" />
46 <field name="name" identity="true">
47 <bind-xml name="name" node="attribute" />
48 </field>
49 <field name="path">
50 <bind-xml name="path" node="attribute" />
51 </field>
52 <field name="executionSpec">
53 <bind-xml name="executionSpec" node="attribute" reference="true" />
54 </field>
55 <field name="values" 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 type="org.argeo.slc.core.execution.AbstractExecutionValue">
65 <bind-xml auto-naming="deriveByClass" />
66 </field>
67 </class>
68 </bind-xml>
69 </field>
70 </class>
71
72 <!-- Specs -->
73 <class name="org.argeo.slc.core.execution.DefaultExecutionSpec">
74 <map-to ns-uri="http://argeo.org/projects/slc/schemas"
75 ns-prefix="slc" />
76 <field name="name" identity="true">
77 <bind-xml name="name" node="attribute" />
78 </field>
79 <field name="attributes" collection="map">
80 <bind-xml name="value" location="values">
81 <class name="org.exolab.castor.mapping.MapItem">
82 <map-to ns-uri="http://argeo.org/projects/slc/schemas"
83 ns-prefix="slc" />
84 <field name="key" type="string">
85 <bind-xml name="key" node="attribute" />
86 </field>
87 <field name="value"
88 type="org.argeo.slc.core.execution.AbstractSpecAttribute">
89 <bind-xml auto-naming="deriveByClass" />
90 </field>
91 </class>
92 </bind-xml>
93 </field>
94 </class>
95
96 <class name="org.argeo.slc.core.execution.AbstractSpecAttribute">
97 <map-to ns-uri="http://argeo.org/projects/slc/schemas"
98 ns-prefix="slc" />
99 <field name="isParameter">
100 <bind-xml name="isParameter" node="attribute" />
101 </field>
102 <field name="isFrozen">
103 <bind-xml name="isFrozen" node="attribute" />
104 </field>
105 <field name="isHidden">
106 <bind-xml name="isHidden" node="attribute" />
107 </field>
108 </class>
109
110 <class name="org.argeo.slc.core.execution.PrimitiveSpecAttribute"
111 extends="org.argeo.slc.core.execution.AbstractSpecAttribute">
112 <map-to ns-uri="http://argeo.org/projects/slc/schemas"
113 ns-prefix="slc" />
114 <field name="type">
115 <bind-xml name="type" node="attribute" />
116 </field>
117 <field name="value" type="string"
118 handler="org.argeo.slc.castor.execution.PrimitiveFieldHandler">
119 <bind-xml node="text" />
120 </field>
121 </class>
122
123 <class name="org.argeo.slc.core.execution.RefSpecAttribute"
124 extends="org.argeo.slc.core.execution.AbstractSpecAttribute">
125 <map-to ns-uri="http://argeo.org/projects/slc/schemas"
126 ns-prefix="slc" />
127 <field name="targetClassName">
128 <bind-xml name="targetClassName" node="attribute" />
129 </field>
130 <field name="choices" collection="arraylist"
131 type="org.argeo.slc.core.execution.RefValueChoice">
132 <bind-xml auto-naming="deriveByClass" location="choices" />
133 </field>
134 </class>
135
136 <!-- Values -->
137 <class name="org.argeo.slc.core.execution.AbstractExecutionValue">
138 <map-to ns-uri="http://argeo.org/projects/slc/schemas"
139 ns-prefix="slc" />
140 </class>
141
142 <class name="org.argeo.slc.core.execution.PrimitiveValue"
143 extends="org.argeo.slc.core.execution.AbstractExecutionValue">
144 <map-to ns-uri="http://argeo.org/projects/slc/schemas"
145 ns-prefix="slc" />
146 <field name="type">
147 <bind-xml name="type" node="attribute" />
148 </field>
149 <field name="value" type="string"
150 handler="org.argeo.slc.castor.execution.PrimitiveFieldHandler">
151 <bind-xml node="text" />
152 </field>
153 </class>
154
155 <class name="org.argeo.slc.core.execution.RefValue" extends="org.argeo.slc.core.execution.AbstractExecutionValue">
156 <map-to ns-uri="http://argeo.org/projects/slc/schemas"
157 ns-prefix="slc" />
158 <field name="ref">
159 <bind-xml name="ref" node="attribute" />
160 </field>
161 <field name="type">
162 <bind-xml name="type" node="attribute" />
163 </field>
164 </class>
165
166 <class name="org.argeo.slc.core.execution.RefValueChoice">
167 <map-to ns-uri="http://argeo.org/projects/slc/schemas"
168 ns-prefix="slc" />
169 <field name="name">
170 <bind-xml name="name" node="attribute" />
171 </field>
172 <field name="description" />
173 </class>
174 </mapping>