]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.simantics.db.layer0/adapters.xml
Fix NPE in Export Core
[simantics/platform.git] / bundles / org.simantics.db.layer0 / adapters.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3     Copyright (c) 2007, 2010 Association for Decentralized Information Management
4     in Industry THTH ry.
5     All rights reserved. This program and the accompanying materials
6     are made available under the terms of the Eclipse Public License v1.0
7     which accompanies this distribution, and is available at
8     http://www.eclipse.org/legal/epl-v10.html
9    
10     Contributors:
11         VTT Technical Research Centre of Finland - initial API and implementation
12         Semantum Oy - issue #4190
13  -->
14
15 <adapters>
16
17         <target interface="java.lang.Double">
18                 <adapter uri="http://www.simantics.org/Layer0-0.0/Double"
19                         contextClass="org.simantics.db.RelationContext" adapterClass="org.simantics.db.layer0.adapter.LiteralDoubleAdapter" />
20         </target>
21
22         <target interface="java.lang.String">
23                 <adapter uri="http://www.simantics.org/Layer0-0.0/String"
24                     contextClass="org.simantics.db.RelationContext"
25                         adapterClass="org.simantics.db.layer0.adapter.LiteralStringAdapter"/>
26                 <adapter uri="http://www.simantics.org/Layer0-0.0/RVI"
27                         adapterClass="org.simantics.db.layer0.adapter.RVIStringAdapter"/>
28         </target>
29
30         <target interface="java.lang.String">
31                 <adapter uri="http://www.simantics.org/Layer0-0.0/Entity"
32                     contextClass="org.simantics.db.layer0.variable.Variable"
33                         adapterClass="org.simantics.db.layer0.adapter.LiteralVariableStringAdapter"/>
34         </target>
35
36         <target interface="org.simantics.db.layer0.variable.VariableBuilder">
37                 <type uri="http://www.simantics.org/Layer0-0.0/Entity"
38                         class="org.simantics.db.layer0.variable.StandardVariableBuilder"
39                         constructor="get" >
40                 </type>
41         </target>
42
43         <target interface="org.simantics.db.layer0.variable.Variable">
44                 <adapter uri="http://www.simantics.org/Layer0-0.0/Entity"
45                         adapterClass="org.simantics.db.layer0.variable.URIResourceVariableAdapter" />
46                 <adapter uri="http://www.simantics.org/Layer0-0.0/Entity"
47                         contextClass="org.simantics.db.layer0.variable.Variable"
48                         adapterClass="org.simantics.db.layer0.variable.StandardGraphChildVariableAdapter" />
49                 <adapter uri="http://www.simantics.org/Layer0-0.0/Value"
50                         contextClass="org.simantics.db.layer0.variable.ModelledVariablePropertyDescriptor"
51                         adapterClass="org.simantics.db.layer0.variable.StandardModelledPropertyVariable" />
52                 <adapter uri="http://www.simantics.org/Layer0-0.0/ExternalValue"
53                         contextClass="org.simantics.db.layer0.variable.ModelledVariablePropertyDescriptor"
54                         adapterClass="org.simantics.db.layer0.variable.StandardModelledPropertyVariable" />
55                 <adapter uri="http://www.simantics.org/Layer0-0.0/Property"
56                         contextClass="org.simantics.db.layer0.variable.ModelledVariablePropertyDescriptor"
57                         adapterClass="org.simantics.db.layer0.variable.StandardModelledPropertyVariable" />
58                 <adapter uri="http://www.simantics.org/Layer0X-0.0/ResourcePropertyRelation"
59                         contextClass="org.simantics.db.layer0.variable.ModelledVariablePropertyDescriptor"
60                         adapterClass="org.simantics.db.layer0.variable.ResourcePropertyVariableAdapter" />
61         </target>
62
63         <target interface="org.simantics.db.layer0.variable.VariableModifier">
64                 <adapter uri="http://www.simantics.org/Layer0-0.0/Literal"
65                     contextClass="org.simantics.db.RelationContext"
66                         adapterClass="org.simantics.db.layer0.variable.StandardVariableModifierAdapter"/>
67         </target>
68
69         <!--  <target interface="org.simantics.db.layer0.variable.PropertyVariableFactory">
70                 <type uri="http://www.simantics.org/Layer0-0.0/Entity"
71                         class="org.simantics.db.layer0.variable.StandardPropertyVariableFactory" >
72                 </type>
73         </target> -->
74
75         <target interface="org.simantics.db.layer0.variable.RVIResolver">
76                 <type uri="http://www.simantics.org/Layer0-0.0/Entity"
77                         class="org.simantics.db.layer0.variable.StandardRVIResolver" >
78                 </type>
79         </target>
80
81         <target interface="org.simantics.db.layer0.variable.GraphPropertyFactory">
82                 <adapter uri="http://www.simantics.org/Layer0-0.0/Entity"
83                         contextClass="org.simantics.db.RelationContext"
84                         adapterClass="org.simantics.db.layer0.adapter.StandardGraphPropertyFactoryAdapter" />
85         </target>
86
87         <target interface="org.simantics.db.layer0.adapter.SubgraphExtent">
88                 <resource uri="http://www.simantics.org/Layer0X-0.0/EntitySubgraphExtent"
89                         class="org.simantics.db.layer0.adapter.impl.EntitySubgraphExtent" >
90                 </resource>
91         </target>
92
93         <target
94                 interface="org.simantics.db.layer0.adapter.InstanceFactory">
95                 <baseType
96                         uri="http://www.simantics.org/Layer0-0.0/Entity" />
97                 <resource
98                         uri="http://www.simantics.org/Layer0-0.0/Entity"
99                         class="org.simantics.db.layer0.adapter.impl.DefaultInstanceFactory">
100                         <this />
101                 </resource>
102         </target>
103
104         <target
105                 interface="org.simantics.db.layer0.adapter.PasteHandler">
106                 <baseType
107                         uri="http://www.simantics.org/Layer0-0.0/Entity" />
108                 <type
109                         uri="http://www.simantics.org/Layer0-0.0/SharedOntology"
110                         class="org.simantics.db.layer0.adapter.impl.DefaultPasteHandler">
111                         <this />
112                 </type>
113                 <type
114                         uri="http://www.simantics.org/Layer0-0.0/Library"
115                         class="org.simantics.db.layer0.adapter.impl.DefaultPasteHandler">
116                         <this />
117                 </type>
118         </target>
119
120         <target
121                 interface="org.simantics.db.layer0.adapter.CopyHandler">
122                 <baseType
123                         uri="http://www.simantics.org/Layer0-0.0/Entity" />
124                 <type
125                         uri="http://www.simantics.org/Layer0-0.0/Entity"
126                         class="org.simantics.db.layer0.adapter.impl.DefaultCopyHandler">
127                         <this />
128                 </type>
129                 <type
130                         uri="http://www.simantics.org/Layer0-0.0/SharedOntology"
131                         class="org.simantics.db.layer0.adapter.impl.SharedOntologyCopyHandler">
132                         <this />
133                 </type>
134                 <type
135                         uri="http://www.simantics.org/Layer0-0.0/Ontology"
136                         class="org.simantics.db.layer0.adapter.impl.SharedOntologyCopyHandler">
137                         <this />
138                 </type>
139         </target>
140
141         <target
142                 interface="org.simantics.db.layer0.adapter.Instances">
143                 <resource
144                         uri="http://www.simantics.org/Layer0-0.0/Entity"
145                         class="org.simantics.db.layer0.adapter.impl.EntityInstances">
146                         <this/>
147                 </resource>
148         </target>
149
150         <target
151                 interface="org.simantics.db.layer0.adapter.StringModifier">
152                 <baseType
153                         uri="http://www.simantics.org/Layer0-0.0/Entity" />
154                 <type
155                         uri="http://www.simantics.org/Layer0-0.0/Entity"
156                         class="org.simantics.db.layer0.adapter.impl.StringModifierImpl">
157                         <graph />
158                         <this />
159                 </type>
160         </target>
161
162         <target
163                 interface="org.simantics.db.layer0.adapter.StringIndexModifier">
164                 <baseType
165                         uri="http://www.simantics.org/Layer0-0.0/Entity" />
166                 <type
167                         uri="http://www.simantics.org/Layer0-0.0/Entity"
168                         class="org.simantics.db.layer0.adapter.impl.StringIndexModifierImpl">
169                         <graph />
170                         <this />
171                 </type>
172         </target>
173
174         <target interface="org.simantics.db.layer0.adapter.StringModifierFactory">
175                 <baseType uri="http://www.simantics.org/Layer0-0.0/Entity" />
176                 <type
177                         uri="http://www.simantics.org/Layer0-0.0/Entity"
178                         class="org.simantics.db.layer0.adapter.impl.EntityStringModifierFactory">
179                         <this />
180                 </type>
181         </target>
182         <target interface="org.simantics.db.layer0.adapter.Valuations">
183                 <type uri="http://www.simantics.org/Layer0-0.0/Entity"
184                         class="org.simantics.db.layer0.adapter.impl.DefaultValuations">
185                         <this />
186                 </type>
187         </target>
188
189         <target interface="org.simantics.db.layer0.adapter.GenericRelation">
190                 <baseType uri="http://www.simantics.org/Layer0X-0.0/GenericRelation" />
191                 <resource uri = "http://www.simantics.org/Layer0X-0.0/DependenciesRelation"
192                         class="org.simantics.db.layer0.genericrelation.DependenciesRelation">
193                         <graph />
194                         <this />
195                 </resource>
196         </target>
197
198         <target interface="org.simantics.db.layer0.adapter.GenericRelationIndex">
199                 <baseType uri="http://www.simantics.org/Layer0X-0.0/GenericRelation" />
200                 <resource uri = "http://www.simantics.org/Layer0X-0.0/DependenciesRelation"
201                         class="org.simantics.db.layer0.genericrelation.DependenciesRelation">
202                         <graph />
203                         <this />
204                 </resource>
205         </target>
206
207         <target interface="org.simantics.scl.runtime.function.Function">
208                 <resource uri = "http://www.simantics.org/Layer0X-0.0/Dependencies"
209                         class="org.simantics.db.layer0.genericrelation.Dependencies">
210                 </resource>
211                 <resource uri = "http://www.simantics.org/Layer0X-0.0/DependencyResources"
212                         class="org.simantics.db.layer0.genericrelation.DependencyResources">
213                 </resource>
214         </target>
215
216         <target interface="org.simantics.db.layer0.adapter.Remover">
217                 <baseType uri="http://www.simantics.org/Layer0-0.0/Entity" />
218                 <type uri="http://www.simantics.org/Layer0-0.0/Entity" class="org.simantics.db.layer0.adapter.impl.EntityRemover">
219                         <this />
220                 </type>
221                 <type uri="http://www.simantics.org/Layer0-0.0/SharedOntology"
222                         class="org.simantics.db.layer0.adapter.SharedOntologyRemover">
223                         <this />
224                 </type>
225         </target>
226
227         <target interface="org.simantics.db.layer0.adapter.Template">
228                 <baseType uri="http://www.simantics.org/Layer0-0.0/Template" />
229
230                 <type uri="http://www.simantics.org/Layer0-0.0/Template" class="org.simantics.db.layer0.adapter.impl.GraphTemplate"
231                         constructor="create">
232                         <graph />
233                         <this />
234                 </type>
235         </target>
236
237         <target interface="org.simantics.db.layer0.adapter.ActionFactory">
238                 <baseType uri="http://www.simantics.org/Layer0-0.0/Action" />
239                 <type uri="http://www.simantics.org/Layer0-0.0/SCLAction"
240                         class="org.simantics.db.layer0.scl.SCLAction">
241                         <graph/>
242                         <this/>
243                 </type>
244         </target>
245
246         <target interface="org.simantics.db.layer0.migration.MigrationStep">
247                 <type uri = "http://www.simantics.org/Layer0-0.0/MigrationSequence"
248                         class="org.simantics.db.layer0.migration.MigrationSequence">
249                         <graph />
250                         <this />
251                 </type>
252         </target>
253
254         <target interface="org.simantics.db.layer0.migration.MigrationStep">
255                 <type uri = "http://www.simantics.org/Layer0-0.0/NamespaceMigrationStep"
256                         class="org.simantics.db.layer0.migration.NamespaceMigrationStep">
257                         <graph />
258                         <this />
259                 </type>
260                 <type uri = "http://www.simantics.org/Layer0-0.0/SLNamespaceMigrationStep"
261                         class="org.simantics.db.layer0.migration.SLNamespaceMigrationStep">
262                         <graph />
263                         <this />
264                 </type>
265                 <type uri = "http://www.simantics.org/Layer0-0.0/OrderedSetToListMigrationStep"
266                         class="org.simantics.db.layer0.migration.OrderedSetToListMigrationStep">
267                         <graph />
268                         <this />
269                 </type>         
270                 <type uri = "http://www.simantics.org/Layer0-0.0/InstanceOfMigrationStep"
271                         class="org.simantics.db.layer0.migration.InstanceOfMigrationStep">
272                         <graph />
273                         <this />
274                 </type>
275         </target>
276
277         <target interface="org.simantics.db.layer0.adapter.impl.ImportAdvisorFactory">
278                 <resource
279                         uri="http://www.simantics.org/Layer0-0.0/SharedOntology"
280                         class="org.simantics.db.layer0.adapter.impl.SharedOntologyImportAdvisorFactory">
281                 </resource>
282                 <resource
283                         uri="http://www.simantics.org/Simulation-0.0/Model"
284                         class="org.simantics.db.layer0.adapter.impl.ModelImportAdvisorFactory">
285                 </resource>
286         </target>
287
288         <target interface="org.simantics.db.ComputationalValue">
289                 <!-- TODO: should be ExternalValue but handle all values to minimize regressions for the time being -->
290                 <type uri="http://www.simantics.org/Layer0-0.0/Value"
291                         class="org.simantics.db.layer0.adapter.ReflectionComputationalValue">
292                 </type>
293                 <resource
294                         uri="http://www.simantics.org/Layer0-0.0/Functions/sclValue"
295                         class="org.simantics.db.layer0.adapter.SCLComputationalValue">
296                 </resource>
297         </target>
298
299 </adapters>