summaryrefslogtreecommitdiff
path: root/src/main/resources/mapFiles/ModuleMap.xml
blob: f1980d87fc3c349d12168e2d3e39fd2359b30bf6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
<?xml version="1.0"?>
<mapping>
	<class name="com.c2kernel.process.module.Module">
		<map-to xml="CristalModule" />
		<field name="ns" direct="false" type="string" get-method="getNamespace" set-method="setNamespace">
			<bind-xml name="ns" node="attribute" />
		</field>
		<field name="name" direct="false" type="string">
			<bind-xml name="name" node="attribute" />
		</field>
		<field name="id" direct="false" type="string" get-method="getID" set-method="setID">
			<bind-xml name="id" node="attribute" />
		</field>		
		<field name="info" direct="false" type="com.c2kernel.process.module.ModuleInfo">
			<bind-xml name="Info" node="element" />
		</field>
		<field name="resURL" direct="false" type="string">
			<bind-xml name="ResourceURL" node="element" />
		</field>
		<field name="imports" direct="false" type="com.c2kernel.process.module.ModuleImports">
			<bind-xml name="Imports" node="element" />
		</field>
    	<field name="config" collection="arraylist" direct="false" type="com.c2kernel.process.module.ModuleConfig">    		   
			<bind-xml name="Config" node="element" />
    		</field>
    	<field name="scripts" collection="arraylist" direct="false" type="com.c2kernel.process.module.ModuleScript">    		   
			<bind-xml name="Script" node="element" />
    	</field>    		
	</class>
	<class name="com.c2kernel.process.module.ModuleImports">
		<map-to xml="Imports"/>
		<field name="list" collection="arraylist" direct="true" type="com.c2kernel.process.module.ModuleImport">    		   
				<bind-xml auto-naming="deriveByClass" node="element" />
		</field>
   	</class>  
   	<class name="com.c2kernel.process.module.ModuleInfo">
    	<map-to xml="Info"/>
		<field name="desc" direct="true" type="string">
			<bind-xml name="Description" node="element" />
		</field>
		<field name="version" direct="true" type="string">
			<bind-xml name="Version" node="element" />
		</field>
		<field name="dependency" collection="arraylist" direct="true"
			type="string">
			<bind-xml name="Dependency" node="element" />
		</field>
   	</class> 
   	<class name="com.c2kernel.process.module.ModuleImport">
   		<field name="name" direct="false" type="string">
			<bind-xml name="name" node="attribute" />
		</field>
		<field name="id" direct="false" type="string" get-method="getID" set-method="setID">
			<bind-xml name="id" node="attribute" />
		</field>
   	</class>
	<class name="com.c2kernel.process.module.ModuleResource" extends="com.c2kernel.process.module.ModuleImport">
		<map-to xml="Resource"/>
		<field name="version" direct="false" type="integer">
			<bind-xml name="version" node="attribute" />
		</field>
		<field name="resourceType" direct="false" type="string">
			<bind-xml name="type" node="attribute" />
		</field>
		<field name="resourceLocation" direct="false" type="string">
			<bind-xml node="text" />
		</field>
	</class>
	<class name="com.c2kernel.process.module.ModuleConfig">
		<map-to xml="Config"/>
		<field name="name" direct="true" type="string">
			<bind-xml name="name" node="attribute" />
		</field>
		<field name="target" direct="true" type="string">
			<bind-xml name="target" node="attribute" />
		</field>	
		<field name="value" direct="true" type="string">
			<bind-xml node="text" />
		</field>
	</class>
	<class name="com.c2kernel.process.module.ModuleScript">
		<map-to xml="Script"/>
		<field name="target" direct="true" type="string">
			<bind-xml name="target" node="attribute" />
		</field>
		<field name="event" direct="true" type="string">
			<bind-xml name="event" node="attribute" />
		</field>
		<field name="lang" direct="true" type="string">
			<bind-xml name="lang" node="attribute" />
		</field>		
		<field name="script" direct="true" type="string">
			<bind-xml node="text" />
		</field>
	</class>	
</mapping>