]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.db.common/src/org/simantics/db/common/request/PossibleStatementWithType.java
Fixed all line endings of the repository
[simantics/platform.git] / bundles / org.simantics.db.common / src / org / simantics / db / common / request / PossibleStatementWithType.java
index 9a9b056884d071bd241815dc43cea107cadacc92..9aa26a4c9fa8e8f45ae84dccc16f2a2afb96adc8 100644 (file)
@@ -1,37 +1,37 @@
-/*******************************************************************************\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.db.common.request;\r
-\r
-import org.simantics.db.ReadGraph;\r
-import org.simantics.db.Resource;\r
-import org.simantics.db.Statement;\r
-import org.simantics.db.exception.DatabaseException;\r
-\r
-final public class PossibleStatementWithType extends ResourceRead3<Statement> {\r
-\r
-    public PossibleStatementWithType(Resource resource, Resource predicate, Resource type) {\r
-        super(resource, predicate, type);\r
-    }\r
-\r
-    @Override\r
-    public Statement perform(ReadGraph graph) throws DatabaseException {\r
-       Statement result = null;\r
-        for(Statement stm : graph.getStatements(resource, resource2)) {\r
-            if(graph.isInstanceOf(stm.getObject(), resource3)) {\r
-                if(result != null) return null;\r
-                result = stm;\r
-            }\r
-        }\r
-        return result;\r
-    }\r
-\r
-}\r
+/*******************************************************************************
+ * 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.db.common.request;
+
+import org.simantics.db.ReadGraph;
+import org.simantics.db.Resource;
+import org.simantics.db.Statement;
+import org.simantics.db.exception.DatabaseException;
+
+final public class PossibleStatementWithType extends ResourceRead3<Statement> {
+
+    public PossibleStatementWithType(Resource resource, Resource predicate, Resource type) {
+        super(resource, predicate, type);
+    }
+
+    @Override
+    public Statement perform(ReadGraph graph) throws DatabaseException {
+       Statement result = null;
+        for(Statement stm : graph.getStatements(resource, resource2)) {
+            if(graph.isInstanceOf(stm.getObject(), resource3)) {
+                if(result != null) return null;
+                result = stm;
+            }
+        }
+        return result;
+    }
+
+}