Merge "Imported ModuleRepository.flush from Java"
[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/SharedOntology"
109                         class="org.simantics.db.layer0.adapter.impl.DefaultPasteHandler">
110                         <this />
111                 </type>
112                 <type
113                         uri="http://www.simantics.org/Layer0-0.0/Library"
114                         class="org.simantics.db.layer0.adapter.impl.DefaultPasteHandler">
115                         <this />
116                 </type>
117         </target>
118
119         <target
120                 interface="org.simantics.db.layer0.adapter.CopyHandler">
121                 <baseType
122                         uri="http://www.simantics.org/Layer0-0.0/Entity" />
123                 <type
124                         uri="http://www.simantics.org/Layer0-0.0/Entity"
125                         class="org.simantics.db.layer0.adapter.impl.DefaultCopyHandler">
126                         <this />
127                 </type>
128                 <type
129                         uri="http://www.simantics.org/Layer0-0.0/SharedOntology"
130                         class="org.simantics.db.layer0.adapter.impl.SharedOntologyCopyHandler">
131                         <this />
132                 </type>
133                 <type
134                         uri="http://www.simantics.org/Layer0-0.0/Ontology"
135                         class="org.simantics.db.layer0.adapter.impl.SharedOntologyCopyHandler">
136                         <this />
137                 </type>
138         </target>
139
140         <target
141                 interface="org.simantics.db.layer0.adapter.Instances">
142                 <resource
143                         uri="http://www.simantics.org/Layer0-0.0/Entity"
144                         class="org.simantics.db.layer0.adapter.impl.EntityInstances">
145                         <this/>
146                 </resource>
147         </target>
148
149         <target
150                 interface="org.simantics.db.layer0.adapter.StringModifier">
151                 <baseType
152                         uri="http://www.simantics.org/Layer0-0.0/Entity" />
153                 <type
154                         uri="http://www.simantics.org/Layer0-0.0/Entity"
155                         class="org.simantics.db.layer0.adapter.impl.StringModifierImpl">
156                         <graph />
157                         <this />
158                 </type>
159         </target>
160
161         <target
162                 interface="org.simantics.db.layer0.adapter.StringIndexModifier">
163                 <baseType
164                         uri="http://www.simantics.org/Layer0-0.0/Entity" />
165                 <type
166                         uri="http://www.simantics.org/Layer0-0.0/Entity"
167                         class="org.simantics.db.layer0.adapter.impl.StringIndexModifierImpl">
168                         <graph />
169                         <this />
170                 </type>
171         </target>
172
173         <target interface="org.simantics.db.layer0.adapter.StringModifierFactory">
174                 <baseType 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.EntityStringModifierFactory">
178                         <this />
179                 </type>
180         </target>
181         <target interface="org.simantics.db.layer0.adapter.Valuations">
182                 <type uri="http://www.simantics.org/Layer0-0.0/Entity"
183                         class="org.simantics.db.layer0.adapter.impl.DefaultValuations">
184                         <this />
185                 </type>
186         </target>
187
188         <target interface="org.simantics.db.layer0.adapter.GenericRelation">
189                 <baseType uri="http://www.simantics.org/Layer0X-0.0/GenericRelation" />
190                 <resource uri = "http://www.simantics.org/Layer0X-0.0/DependenciesRelation"
191                         class="org.simantics.db.layer0.genericrelation.DependenciesRelation">
192                         <graph />
193                         <this />
194                 </resource>
195         </target>
196
197         <target interface="org.simantics.db.layer0.adapter.GenericRelationIndex">
198                 <baseType uri="http://www.simantics.org/Layer0X-0.0/GenericRelation" />
199                 <resource uri = "http://www.simantics.org/Layer0X-0.0/DependenciesRelation"
200                         class="org.simantics.db.layer0.genericrelation.DependenciesRelation">
201                         <graph />
202                         <this />
203                 </resource>
204         </target>
205
206         <target interface="org.simantics.scl.runtime.function.Function">
207                 <resource uri = "http://www.simantics.org/Layer0X-0.0/Dependencies"
208                         class="org.simantics.db.layer0.genericrelation.Dependencies">
209                 </resource>
210                 <resource uri = "http://www.simantics.org/Layer0X-0.0/DependencyResources"
211                         class="org.simantics.db.layer0.genericrelation.DependencyResources">
212                 </resource>
213         </target>
214
215         <target interface="org.simantics.db.layer0.adapter.Remover">
216                 <baseType uri="http://www.simantics.org/Layer0-0.0/Entity" />
217                 <type uri="http://www.simantics.org/Layer0-0.0/Entity" class="org.simantics.db.layer0.adapter.impl.EntityRemover">
218                         <this />
219                 </type>
220                 <type uri="http://www.simantics.org/Layer0-0.0/SharedOntology"
221                         class="org.simantics.db.layer0.adapter.SharedOntologyRemover">
222                         <this />
223                 </type>
224         </target>
225
226         <target interface="org.simantics.db.layer0.adapter.Template">
227                 <baseType uri="http://www.simantics.org/Layer0-0.0/Template" />
228
229                 <type uri="http://www.simantics.org/Layer0-0.0/Template" class="org.simantics.db.layer0.adapter.impl.GraphTemplate"
230                         constructor="create">
231                         <graph />
232                         <this />
233                 </type>
234         </target>
235
236         <target interface="org.simantics.db.layer0.adapter.ActionFactory">
237                 <baseType uri="http://www.simantics.org/Layer0-0.0/Action" />
238                 <type uri="http://www.simantics.org/Layer0-0.0/SCLAction"
239                         class="org.simantics.db.layer0.scl.SCLAction">
240                         <graph/>
241                         <this/>
242                 </type>
243         </target>
244
245         <target interface="org.simantics.db.layer0.migration.MigrationStep">
246                 <type uri = "http://www.simantics.org/Layer0-0.0/MigrationSequence"
247                         class="org.simantics.db.layer0.migration.MigrationSequence">
248                         <graph />
249                         <this />
250                 </type>
251         </target>
252
253         <target interface="org.simantics.db.layer0.migration.MigrationStep">
254                 <type uri = "http://www.simantics.org/Layer0-0.0/NamespaceMigrationStep"
255                         class="org.simantics.db.layer0.migration.NamespaceMigrationStep">
256                         <graph />
257                         <this />
258                 </type>
259                 <type uri = "http://www.simantics.org/Layer0-0.0/SLNamespaceMigrationStep"
260                         class="org.simantics.db.layer0.migration.SLNamespaceMigrationStep">
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>