]> git.argeo.org Git - gpl/argeo-slc.git/blob - runtime/org.argeo.slc.support.castor/src/main/resources/org/argeo/slc/castor/execution.xml
XML format for executions
[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 type="org.argeo.slc.core.execution.AbstractExecutionValue">
42 <bind-xml auto-naming="deriveByClass" />
43 </field>
44 </class>
45 </bind-xml>
46 </field>
47 </class>
48
49 <!-- Specs -->
50 <class name="org.argeo.slc.core.execution.DefaultExecutionSpec">
51 <map-to ns-uri="http://argeo.org/projects/slc/schemas"
52 ns-prefix="slc" />
53 <field name="name" identity="true">
54 <bind-xml name="name" node="attribute" />
55 </field>
56 <field name="attributes" collection="map">
57 <bind-xml name="value" location="values">
58 <class name="org.exolab.castor.mapping.MapItem">
59 <map-to ns-uri="http://argeo.org/projects/slc/schemas"
60 ns-prefix="slc" />
61 <field name="key" type="string">
62 <bind-xml name="key" node="attribute" />
63 </field>
64 <field name="value"
65 type="org.argeo.slc.core.execution.AbstractSpecAttribute">
66 <bind-xml auto-naming="deriveByClass" />
67 </field>
68 </class>
69 </bind-xml>
70 </field>
71 </class>
72
73 <class name="org.argeo.slc.core.execution.AbstractSpecAttribute">
74 <map-to ns-uri="http://argeo.org/projects/slc/schemas"
75 ns-prefix="slc" />
76 <field name="isParameter">
77 <bind-xml name="isParameter" node="attribute" />
78 </field>
79 <field name="isFrozen">
80 <bind-xml name="isFrozen" node="attribute" />
81 </field>
82 <field name="isHidden">
83 <bind-xml name="isHidden" node="attribute" />
84 </field>
85 </class>
86
87 <class name="org.argeo.slc.core.execution.PrimitiveSpecAttribute"
88 extends="org.argeo.slc.core.execution.AbstractSpecAttribute">
89 <map-to ns-uri="http://argeo.org/projects/slc/schemas"
90 ns-prefix="slc" />
91 <field name="type">
92 <bind-xml name="type" node="attribute" />
93 </field>
94 <field name="value" type="string"
95 handler="org.argeo.slc.castor.execution.PrimitiveFieldHandler">
96 <bind-xml node="element" />
97 </field>
98 </class>
99
100 <class name="org.argeo.slc.core.execution.RefSpecAttribute"
101 extends="org.argeo.slc.core.execution.AbstractSpecAttribute">
102 <map-to ns-uri="http://argeo.org/projects/slc/schemas"
103 ns-prefix="slc" />
104 <field name="targetClassName">
105 <bind-xml name="targetClassName" node="attribute" />
106 </field>
107 </class>
108
109 <!-- Values -->
110 <class name="org.argeo.slc.core.execution.AbstractExecutionValue">
111 <map-to ns-uri="http://argeo.org/projects/slc/schemas"
112 ns-prefix="slc" />
113 </class>
114
115 <class name="org.argeo.slc.core.execution.PrimitiveValue"
116 extends="org.argeo.slc.core.execution.AbstractExecutionValue">
117 <map-to ns-uri="http://argeo.org/projects/slc/schemas"
118 ns-prefix="slc" />
119 <field name="type">
120 <bind-xml name="type" node="attribute" />
121 </field>
122 <field name="value" type="string"
123 handler="org.argeo.slc.castor.execution.PrimitiveFieldHandler">
124 <bind-xml node="element" />
125 </field>
126 </class>
127
128 <class name="org.argeo.slc.core.execution.RefValue" extends="org.argeo.slc.core.execution.AbstractExecutionValue">
129 <map-to ns-uri="http://argeo.org/projects/slc/schemas"
130 ns-prefix="slc" />
131 <field name="label" />
132 </class>
133 </mapping>