]> git.argeo.org Git - gpl/argeo-slc.git/blob - structure.xml
a4552f7c5b11cea1462a96caf9a02e8e1c99050b
[gpl/argeo-slc.git] / structure.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 <mapping>
22 <description>Structure related objects XML mapping</description>
23
24 <class name="org.argeo.slc.core.structure.tree.TreeSPath"
25 auto-complete="false">
26 <map-to ns-uri="http://argeo.org/projects/slc/schemas"
27 ns-prefix="slc" />
28 <field name="asUniqueString" type="string">
29 <bind-xml node="attribute" />
30 </field>
31 </class>
32
33 <class name="org.argeo.slc.core.structure.SimpleSElement"
34 auto-complete="false">
35 <map-to ns-uri="http://argeo.org/projects/slc/schemas"
36 ns-prefix="slc" />
37 <field name="label" type="string" />
38 <field name="tags" collection="map">
39 <bind-xml name="tag" location="tags">
40 <class name="org.exolab.castor.mapping.MapItem">
41 <map-to
42 ns-uri="http://argeo.org/projects/slc/schemas" ns-prefix="slc" />
43 <field name="key" type="string">
44 <bind-xml name="name" node="attribute" />
45 </field>
46 <field name="value" type="string">
47 <bind-xml name="tag-value" />
48 </field>
49 </class>
50 </bind-xml>
51 </field>
52 </class>
53 </mapping>