summaryrefslogtreecommitdiff
path: root/resources/mapFiles/CollectionMap.xml
blob: d346eac0eb395162c8fed8b86c6dfe796e1b9f4c (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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
<?xml version="1.0"?>
<!-- edited with XML Spy v4.2 U (http://www.xmlspy.com) by Sebastian Gaspard (Agilium) -->
<mapping>
    <class name="com.c2kernel.collection.CollectionMemberList">
    	<map-to xml="CollectionMemberList"/>
    	<field name="list" 
    		   collection="arraylist" 
    		   direct="true" 
    		   type="com.c2kernel.collection.CollectionMember">
			<bind-xml auto-naming="deriveByClass" node="element"/>
	    </field>	
   	</class>    
   	   	      	
	<class name="com.c2kernel.collection.DependencyMember">
		<map-to xml="DependencyMember"/>
		<field name="ID" type="integer" direct="false">
			<bind-xml name="ID" node="attribute"/>
		</field>		
		<field name="mEntityKey"
		       type="integer"
		       direct="false"
		       get-method="getEntityKey"
		       set-method="setEntityKey">
			<bind-xml name="EntityKey" node="attribute"/>
		</field>
		<field name="mProperties" 
			   type="com.c2kernel.utils.KeyValuePair"
			   collection="array"
			   container="false"
			   direct="false"
			   get-method="getKeyValuePairs"
			   set-method="setKeyValuePairs">
			<bind-xml name="Properties" node="element"/>
		</field>
	</class>

	<class name="com.c2kernel.collection.AggregationMember" 
			extends="com.c2kernel.graph.model.GraphableVertex">
		<map-to xml="AggregationMember"/>
		<field name="mEntityKey"
		       type="integer"
		       direct="false"
		       get-method="getEntityKey"
		       set-method="setEntityKey">
			<bind-xml name="EntityKey" node="attribute"/>
		</field>		
		<field name="mClassProps"
		       type="string"
		       direct="false"
		       get-method="getClassProps"
		       set-method="setClassProps">
			<bind-xml name="ClassProps" node="attribute"/>
		</field>			
	</class>
		
	
	<class name="com.c2kernel.collection.Parent2ChildCollection">
		<map-to xml="Parent2ChildCollection"/>
		<field name="mMembers"
		       type="com.c2kernel.collection.CollectionMemberList"
		       direct="false"
		       get-method="getMembers"
		       set-method="setMembers">
			<bind-xml auto-naming="deriveByClass" node="element"/>
		</field>
		<field name="mURLInfo"
		       type="string"
		       direct="false"
		       get-method="getURLInfo"
		       set-method="setURLInfo">
			<bind-xml name="URLInfo" node="attribute"/>
		</field>
		<field name="mName"
		       type="string"
		       direct="false"
		       get-method="getName"
		       set-method="setName">
			<bind-xml name="CollectionName" node="attribute"/>
		</field>

	</class>
	<class name="com.c2kernel.collection.Dependency" extends="com.c2kernel.collection.Parent2ChildCollection">
		<map-to xml="Dependency"/>
		<field name="mClassProps"
			   type="string"
			   direct="false"
			   get-method="getClassProps"
			   set-method="setClassProps">
			<bind-xml name="ClassProps" node="attribute"/>
		</field>
		<field name="mProperties" 
			   type="com.c2kernel.utils.KeyValuePair"
			   collection="array"
			   container="false"
			   direct="false"
			   get-method="getKeyValuePairs"
			   set-method="setKeyValuePairs">
			<bind-xml name="Properties" node="element"/>
		</field>		
	</class>
	<class name="com.c2kernel.collection.Aggregation" extends="com.c2kernel.collection.Parent2ChildCollection">
		<map-to xml="Aggregation"/>
		<field name="mLayout" type="com.c2kernel.graph.model.GraphModel" direct="false" get-method="getLayout" set-method="setLayout">
			<bind-xml name="Layout" node="element"/>
		</field>
	</class>
	<class name="com.c2kernel.collection.AggregationDescription" extends="com.c2kernel.collection.Aggregation">
		<map-to xml="AggregationDescription"/>
	</class>
	<class name="com.c2kernel.collection.AggregationInstance" extends="com.c2kernel.collection.Aggregation">
		<map-to xml="AggregationInstance"/>
	</class>
</mapping>