]> gerrit.simantics Code Review - simantics/interop.git/blobdiff - org.simantics.interop/src/org/simantics/interop/stubs/InteropResource.java
Added a relation for linking source and destination model
[simantics/interop.git] / org.simantics.interop / src / org / simantics / interop / stubs / InteropResource.java
index ffa281f1a95a07e8aecb62935dcee8ad7b32be7d..a2b7f148597a817ab3c5192fcfcb023d25505abd 100644 (file)
@@ -1,14 +1,3 @@
-/*******************************************************************************\r
- * Copyright (c) 2007, 2010 Association for Decentralized Information Management\r
- * in Industry THTH ry.\r
- * All rights reserved. This program and the accompanying materials\r
- * are made available under the terms of the Eclipse Public License v1.0\r
- * which accompanies this distribution, and is available at\r
- * http://www.eclipse.org/legal/epl-v10.html\r
- *\r
- * Contributors:\r
- *     VTT Technical Research Centre of Finland - initial API and implementation\r
- *******************************************************************************/\r
 package org.simantics.interop.stubs;\r
 \r
 import org.simantics.db.Resource;\r
@@ -19,9 +8,13 @@ import org.simantics.db.exception.DatabaseException;
 \r
 public class InteropResource {\r
     \r
+    public final Resource HasDestination;\r
+    public final Resource HasSource;\r
     public final Resource ImportLibrary;\r
         \r
     public static class URIs {\r
+        public static final String HasDestination = "http://www.simantics.org/Interop-1.0/HasDestination";\r
+        public static final String HasSource = "http://www.simantics.org/Interop-1.0/HasSource";\r
         public static final String ImportLibrary = "http://www.simantics.org/Interop-1.0/ImportLibrary";\r
     }\r
     \r
@@ -35,6 +28,8 @@ public class InteropResource {
     }\r
     \r
     public InteropResource(ReadGraph graph) {\r
+        HasDestination = getResourceOrNull(graph, URIs.HasDestination);\r
+        HasSource = getResourceOrNull(graph, URIs.HasSource);\r
         ImportLibrary = getResourceOrNull(graph, URIs.ImportLibrary);\r
     }\r
     \r