summaryrefslogtreecommitdiff
path: root/src/main/resources/mapFiles/CollectionMap.xml
blob: a59de676367f5b873881b760557daacac43a9c71 (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
114
115
116
117
118
119
120
121
122
123
124
<?xml version="1.0"?>
<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="mItemPath"
		       type="string"
		       direct="false"
		       get-method="getChildUUID"
		       set-method="setChildUUID">
			<bind-xml name="ChildUUID" 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="mItemPath"
		       type="string"
		       direct="false"
		       get-method="getChildUUID"
		       set-method="setChildUUID">
			<bind-xml name="ChildUUID" 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.Collection">
		<map-to xml="Collection"/>
		<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.Collection">
		<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.DependencyDescription" extends="com.c2kernel.collection.Dependency">
		<map-to xml="DependencyDescription"/>
	</class>
	<class name="com.c2kernel.collection.Aggregation" extends="com.c2kernel.collection.Collection">
		<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>
	    <class name="com.c2kernel.collection.CollectionArrayList">
    	<map-to xml="CollectionList"/>
    	<field name="list" 
    		   collection="arraylist" 
    		   direct="true" 
    		   type="com.c2kernel.collection.Collection">    		   
			<bind-xml auto-naming="deriveByClass" node="element"/>
    	</field>
   	</class> 
</mapping>