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