X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=org.simantics.interop%2Fsrc%2Forg%2Fsimantics%2Finterop%2Fstubs%2FInteropResource.java;h=a2b7f148597a817ab3c5192fcfcb023d25505abd;hb=3583a0b838febb293cbbcb4be2e619e11cf6ca57;hp=ffa281f1a95a07e8aecb62935dcee8ad7b32be7d;hpb=eeac6a1f1968b474b24aea1759fcaeca46ec801e;p=simantics%2Finterop.git diff --git a/org.simantics.interop/src/org/simantics/interop/stubs/InteropResource.java b/org.simantics.interop/src/org/simantics/interop/stubs/InteropResource.java index ffa281f..a2b7f14 100644 --- a/org.simantics.interop/src/org/simantics/interop/stubs/InteropResource.java +++ b/org.simantics.interop/src/org/simantics/interop/stubs/InteropResource.java @@ -1,14 +1,3 @@ -/******************************************************************************* - * Copyright (c) 2007, 2010 Association for Decentralized Information Management - * in Industry THTH ry. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * VTT Technical Research Centre of Finland - initial API and implementation - *******************************************************************************/ package org.simantics.interop.stubs; import org.simantics.db.Resource; @@ -19,9 +8,13 @@ import org.simantics.db.exception.DatabaseException; public class InteropResource { + public final Resource HasDestination; + public final Resource HasSource; public final Resource ImportLibrary; public static class URIs { + public static final String HasDestination = "http://www.simantics.org/Interop-1.0/HasDestination"; + public static final String HasSource = "http://www.simantics.org/Interop-1.0/HasSource"; public static final String ImportLibrary = "http://www.simantics.org/Interop-1.0/ImportLibrary"; } @@ -35,6 +28,8 @@ public class InteropResource { } public InteropResource(ReadGraph graph) { + HasDestination = getResourceOrNull(graph, URIs.HasDestination); + HasSource = getResourceOrNull(graph, URIs.HasSource); ImportLibrary = getResourceOrNull(graph, URIs.ImportLibrary); }