]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.simantics.db.layer0/adapters.xml
Importing of spreadsheets
[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                 </type>
40         </target>
41
42         <target interface="org.simantics.db.layer0.variable.Variable">
43                 <adapter uri="http://www.simantics.org/Layer0-0.0/Entity"
44                         adapterClass="org.simantics.db.layer0.variable.URIResourceVariableAdapter" />
45                 <adapter uri="http://www.simantics.org/Layer0-0.0/Entity"
46                         contextClass="org.simantics.db.layer0.variable.Variable"
47                         adapterClass="org.simantics.db.layer0.variable.StandardGraphChildVariableAdapter" />
48                 <adapter uri="http://www.simantics.org/Layer0-0.0/Value"
49                         contextClass="org.simantics.db.layer0.variable.ModelledVariablePropertyDescriptor"
50                         adapterClass="org.simantics.db.layer0.variable.StandardModelledPropertyVariable" />
51                 <adapter uri="http://www.simantics.org/Layer0-0.0/ExternalValue"
52                         contextClass="org.simantics.db.layer0.variable.ModelledVariablePropertyDescriptor"
53                         adapterClass="org.simantics.db.layer0.variable.StandardModelledPropertyVariable" />
54                 <adapter uri="http://www.simantics.org/Layer0-0.0/Property"
55                         contextClass="org.simantics.db.layer0.variable.ModelledVariablePropertyDescriptor"
56                         adapterClass="org.simantics.db.layer0.variable.StandardModelledPropertyVariable" />
57                 <adapter uri="http://www.simantics.org/Layer0X-0.0/ResourcePropertyRelation"
58                         contextClass="org.simantics.db.layer0.variable.ModelledVariablePropertyDescriptor"
59                         adapterClass="org.simantics.db.layer0.variable.ResourcePropertyVariableAdapter" />
60         </target>
61
62         <target interface="org.simantics.db.layer0.variable.VariableModifier">
63                 <adapter uri="http://www.simantics.org/Layer0-0.0/Literal"
64                     contextClass="org.simantics.db.RelationContext"
65                         adapterClass="org.simantics.db.layer0.variable.StandardVariableModifierAdapter"/>
66         </target>
67
68         <!--  <target interface="org.simantics.db.layer0.variable.PropertyVariableFactory">
69                 <type uri="http://www.simantics.org/Layer0-0.0/Entity"
70                         class="org.simantics.db.layer0.variable.StandardPropertyVariableFactory" >
71                 </type>
72         </target> -->
73
74         <target interface="org.simantics.db.layer0.variable.RVIResolver">
75                 <type uri="http://www.simantics.org/Layer0-0.0/Entity"
76                         class="org.simantics.db.layer0.variable.StandardRVIResolver" >
77                 </type>
78         </target>
79
80         <target interface="org.simantics.db.layer0.variable.GraphPropertyFactory">
81                 <adapter uri="http://www.simantics.org/Layer0-0.0/Entity"
82                         contextClass="org.simantics.db.RelationContext"
83                         adapterClass="org.simantics.db.layer0.adapter.StandardGraphPropertyFactoryAdapter" />
84         </target>
85
86         <target interface="org.simantics.db.layer0.adapter.SubgraphExtent">
87                 <resource uri="http://www.simantics.org/Layer0X-0.0/EntitySubgraphExtent"
88                         class="org.simantics.db.layer0.adapter.impl.EntitySubgraphExtent" >
89                 </resource>
90         </target>
91
92         <target
93                 interface="org.simantics.db.layer0.adapter.InstanceFactory">
94                 <baseType
95                         uri="http://www.simantics.org/Layer0-0.0/Entity" />
96                 <resource
97                         uri="http://www.simantics.org/Layer0-0.0/Entity"
98                         class="org.simantics.db.layer0.adapter.impl.DefaultInstanceFactory">
99                         <this />
100                 </resource>
101         </target>
102
103         <target
104                 interface="org.simantics.db.layer0.adapter.PasteHandler">
105                 <baseType
106                         uri="http://www.simantics.org/Layer0-0.0/Entity" />
107                 <!--  <type
108                         uri="http://www.simantics.org/Layer0-0.0/Entity"
109                         class="org.simantics.db.layer0.adapter.impl.DefaultPasteHandler">
110                         <this />
111                 </type> -->
112                 <type
113                         uri="http://www.simantics.org/Simulation-0.0/Model"
114                         class="org.simantics.db.layer0.adapter.impl.DefaultPasteHandler">
115                         <this />
116                 </type>
117                 <type
118                         uri="http://www.simantics.org/Layer0-0.0/SharedOntology"
119                         class="org.simantics.db.layer0.adapter.impl.DefaultPasteHandler">
120                         <this />
121                 </type>
122                 <type
123                         uri="http://www.simantics.org/Layer0-0.0/Library"
124                         class="org.simantics.db.layer0.adapter.impl.DefaultPasteHandler">
125                         <this />
126                 </type>
127         </target>
128
129         <target
130                 interface="org.simantics.db.layer0.adapter.CopyHandler">
131                 <baseType
132                         uri="http://www.simantics.org/Layer0-0.0/Entity" />
133                 <type
134                         uri="http://www.simantics.org/Layer0-0.0/Entity"
135                         class="org.simantics.db.layer0.adapter.impl.DefaultCopyHandler">
136                         <this />
137                 </type>
138                 <type
139                         uri="http://www.simantics.org/Layer0-0.0/SharedOntology"
140                         class="org.simantics.db.layer0.adapter.impl.SharedOntologyCopyHandler">
141                         <this />
142                 </type>
143                 <type
144                         uri="http://www.simantics.org/Layer0-0.0/Ontology"
145                         class="org.simantics.db.layer0.adapter.impl.SharedOntologyCopyHandler">
146                         <this />
147                 </type>
148         </target>
149
150         <target
151                 interface="org.simantics.db.layer0.adapter.Instances">
152                 <resource
153                         uri="http://www.simantics.org/Layer0-0.0/Entity"
154                         class="org.simantics.db.layer0.adapter.impl.EntityInstances">
155                         <this/>
156                 </resource>
157         </target>
158
159         <target
160                 interface="org.simantics.db.layer0.adapter.StringModifier">
161                 <baseType
162                         uri="http://www.simantics.org/Layer0-0.0/Entity" />
163                 <type
164                         uri="http://www.simantics.org/Layer0-0.0/Entity"
165                         class="org.simantics.db.layer0.adapter.impl.StringModifierImpl">
166                         <graph />
167                         <this />
168                 </type>
169         </target>
170
171         <target
172                 interface="org.simantics.db.layer0.adapter.StringIndexModifier">
173                 <baseType
174                         uri="http://www.simantics.org/Layer0-0.0/Entity" />
175                 <type
176                         uri="http://www.simantics.org/Layer0-0.0/Entity"
177                         class="org.simantics.db.layer0.adapter.impl.StringIndexModifierImpl">
178                         <graph />
179                         <this />
180                 </type>
181         </target>
182
183         <target interface="org.simantics.db.layer0.adapter.StringModifierFactory">
184                 <baseType uri="http://www.simantics.org/Layer0-0.0/Entity" />
185                 <type
186                         uri="http://www.simantics.org/Layer0-0.0/Entity"
187                         class="org.simantics.db.layer0.adapter.impl.EntityStringModifierFactory">
188                         <this />
189                 </type>
190         </target>
191         <target interface="org.simantics.db.layer0.adapter.Valuations">
192                 <type uri="http://www.simantics.org/Layer0-0.0/Entity"
193                         class="org.simantics.db.layer0.adapter.impl.DefaultValuations">
194                         <this />
195                 </type>
196         </target>
197
198         <target interface="org.simantics.db.layer0.adapter.GenericRelation">
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.db.layer0.adapter.GenericRelationIndex">
208                 <baseType uri="http://www.simantics.org/Layer0X-0.0/GenericRelation" />
209                 <resource uri = "http://www.simantics.org/Layer0X-0.0/DependenciesRelation"
210                         class="org.simantics.db.layer0.genericrelation.DependenciesRelation">
211                         <graph />
212                         <this />
213                 </resource>
214         </target>
215
216         <target interface="org.simantics.scl.runtime.function.Function">
217                 <resource uri = "http://www.simantics.org/Layer0X-0.0/Dependencies"
218                         class="org.simantics.db.layer0.genericrelation.Dependencies">
219                 </resource>
220                 <resource uri = "http://www.simantics.org/Layer0X-0.0/DependencyResources"
221                         class="org.simantics.db.layer0.genericrelation.DependencyResources">
222                 </resource>
223         </target>
224
225         <target interface="org.simantics.db.layer0.adapter.Remover">
226                 <baseType uri="http://www.simantics.org/Layer0-0.0/Entity" />
227                 <type uri="http://www.simantics.org/Layer0-0.0/Entity" class="org.simantics.db.layer0.adapter.impl.EntityRemover">
228                         <this />
229                 </type>
230                 <type uri="http://www.simantics.org/Layer0-0.0/SharedOntology"
231                         class="org.simantics.db.layer0.adapter.SharedOntologyRemover">
232                         <this />
233                 </type>
234         </target>
235
236         <target interface="org.simantics.db.layer0.adapter.Template">
237                 <baseType uri="http://www.simantics.org/Layer0-0.0/Template" />
238
239                 <type uri="http://www.simantics.org/Layer0-0.0/Template" class="org.simantics.db.layer0.adapter.impl.GraphTemplate"
240                         constructor="create">
241                         <graph />
242                         <this />
243                 </type>
244         </target>
245
246         <target interface="org.simantics.db.layer0.adapter.ActionFactory">
247                 <baseType uri="http://www.simantics.org/Action-0.0/Action" />
248         </target>
249
250         <target interface="org.simantics.db.layer0.migration.MigrationStep">
251                 <type uri = "http://www.simantics.org/Layer0-0.0/MigrationSequence"
252                         class="org.simantics.db.layer0.migration.MigrationSequence">
253                         <graph />
254                         <this />
255                 </type>
256         </target>
257
258         <target interface="org.simantics.db.layer0.migration.MigrationStep">
259                 <type uri = "http://www.simantics.org/Layer0-0.0/NamespaceMigrationStep"
260                         class="org.simantics.db.layer0.migration.NamespaceMigrationStep">
261                         <graph />
262                         <this />
263                 </type>
264                 <type uri = "http://www.simantics.org/Layer0-0.0/OrderedSetToListMigrationStep"
265                         class="org.simantics.db.layer0.migration.OrderedSetToListMigrationStep">
266                         <graph />
267                         <this />
268                 </type>         
269                 <type uri = "http://www.simantics.org/Layer0-0.0/InstanceOfMigrationStep"
270                         class="org.simantics.db.layer0.migration.InstanceOfMigrationStep">
271                         <graph />
272                         <this />
273                 </type>
274         </target>
275
276         <target interface="org.simantics.db.layer0.adapter.impl.ImportAdvisorFactory">
277                 <resource
278                         uri="http://www.simantics.org/Layer0-0.0/SharedOntology"
279                         class="org.simantics.db.layer0.adapter.impl.SharedOntologyImportAdvisorFactory">
280                 </resource>
281                 <resource
282                         uri="http://www.simantics.org/Simulation-0.0/Model"
283                         class="org.simantics.db.layer0.adapter.impl.ModelImportAdvisorFactory">
284                 </resource>
285         </target>
286
287         <target interface="org.simantics.db.ComputationalValue">
288                 <!-- TODO: should be ExternalValue but handle all values to minimize regressions for the time being -->
289                 <type uri="http://www.simantics.org/Layer0-0.0/Value"
290                         class="org.simantics.db.layer0.adapter.ReflectionComputationalValue">
291                 </type>
292                 <resource
293                         uri="http://www.simantics.org/Layer0-0.0/Functions/sclValue"
294                         class="org.simantics.db.layer0.adapter.SCLComputationalValue">
295                 </resource>
296         </target>
297
298 </adapters>