]> git.argeo.org Git - gpl/argeo-slc.git/blob - org.argeo.slc.core/src/main/resources/org/argeo/slc/castor/test/tree/mapping.xml
Add elements and tags in tree test result
[gpl/argeo-slc.git] / org.argeo.slc.core / src / main / resources / org / argeo / slc / castor / test / tree / mapping.xml
1 <?xml version="1.0"?>
2
3 <mapping>
4 <description>TreeTestResult objects XML mapping</description>
5
6 <class name="org.argeo.slc.core.test.tree.TreeTestResult"
7 auto-complete="false">
8 <field name="numericResultId"
9 type="org.argeo.slc.core.test.NumericTRId" />
10 <field name="closeDate" />
11 <field name="resultParts" collection="map">
12 <bind-xml name="result-part" location="result-parts">
13 <class name="org.exolab.castor.mapping.MapItem">
14 <field name="key"
15 type="org.argeo.slc.core.structure.tree.TreeSPath">
16 <bind-xml name="path" node="attribute" />
17 </field>
18 <field name="value"
19 type="org.argeo.slc.core.test.tree.PartSubList">
20 <bind-xml name="part-sub-list" />
21 </field>
22 </class>
23 </bind-xml>
24 </field>
25 <field name="elements" collection="map">
26 <bind-xml name="element" location="elements">
27 <class name="org.exolab.castor.mapping.MapItem">
28 <field name="key"
29 type="org.argeo.slc.core.structure.tree.TreeSPath">
30 <bind-xml name="path" node="attribute" />
31 </field>
32 <field name="value"
33 type="org.argeo.slc.core.structure.SimpleSElement">
34 <bind-xml name="simpleSElement" />
35 </field>
36 </class>
37 </bind-xml>
38 </field>
39 </class>
40
41 <class name="org.argeo.slc.core.test.tree.PartSubList"
42 auto-complete="false">
43 <field name="slcExecutionUuid" type="string" />
44 <field name="slcExecutionStepUuid" type="string" />
45 <field name="parts" collection="vector"
46 type="org.argeo.slc.core.test.SimpleResultPart">
47 <bind-xml auto-naming="deriveByClass" location="parts" />
48 </field>
49 </class>
50
51 <class name="org.argeo.slc.core.structure.tree.TreeSPath"
52 auto-complete="false">
53 <field name="asUniqueString" type="string" />
54 </class>
55
56 <class name="org.argeo.slc.core.structure.SimpleSElement"
57 auto-complete="false">
58 <field name="label" type="string" />
59 <field name="tags" collection="map">
60 <bind-xml name="tag" location="tags">
61 <class name="org.exolab.castor.mapping.MapItem">
62 <field name="key" type="string">
63 <bind-xml name="name" node="attribute" />
64 </field>
65 <field name="value" type="string">
66 <bind-xml name="value" />
67 </field>
68 </class>
69 </bind-xml>
70 </field>
71 </class>
72
73 <class name="java.lang.StackTraceElement" auto-complete="false"
74 verify-constructable="false">
75 <field name="declaringClass" type="string" set-method="%1"
76 get-method="getClassName">
77 <bind-xml node="attribute" />
78 </field>
79 <field name="methodName" type="string" set-method="%2"
80 get-method="getMethodName">
81 <bind-xml node="attribute" />
82 </field>
83 <field name="fileName" type="string" set-method="%3"
84 get-method="getFileName">
85 <bind-xml node="attribute" />
86 </field>
87 <field name="lineNumber" type="integer" set-method="%4"
88 get-method="getLineNumber">
89 <bind-xml node="attribute" />
90 </field>
91 </class>
92 </mapping>