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