]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.db.layer0/src/org/simantics/db/layer0/request/ClassificationsRequest.java
Fixed all line endings of the repository
[simantics/platform.git] / bundles / org.simantics.db.layer0 / src / org / simantics / db / layer0 / request / ClassificationsRequest.java
index e88b5675907fd1ba7c9143b49f6195af8438647d..7e71efd85c31f9d119ff604a4d5d2a515b20310d 100644 (file)
@@ -1,30 +1,30 @@
-package org.simantics.db.layer0.request;\r
-\r
-import java.util.Collection;\r
-import java.util.HashSet;\r
-import java.util.Set;\r
-\r
-import org.simantics.db.ReadGraph;\r
-import org.simantics.db.Resource;\r
-import org.simantics.db.common.request.UnaryRead;\r
-import org.simantics.db.exception.DatabaseException;\r
-\r
-public class ClassificationsRequest extends UnaryRead<Collection<Resource>, Set<String>> {\r
-\r
-       public ClassificationsRequest(Collection<Resource> principalTypes) {\r
-               super(principalTypes);\r
-       }\r
-\r
-       @Override\r
-       public Set<String> perform(ReadGraph graph) throws DatabaseException {\r
-       Set<String> result = new HashSet<String>(parameter.size());\r
-       Set<Resource> allTypes = new HashSet<Resource>(parameter);\r
-       for(Resource principalType : parameter) allTypes.addAll(graph.getSupertypes(principalType));\r
-       for(Resource type : allTypes) {\r
-               String uri = graph.getPossibleURI(type);\r
-               if(uri != null) result.add(uri);\r
-       }\r
-       return result;\r
-       }\r
-\r
-}\r
+package org.simantics.db.layer0.request;
+
+import java.util.Collection;
+import java.util.HashSet;
+import java.util.Set;
+
+import org.simantics.db.ReadGraph;
+import org.simantics.db.Resource;
+import org.simantics.db.common.request.UnaryRead;
+import org.simantics.db.exception.DatabaseException;
+
+public class ClassificationsRequest extends UnaryRead<Collection<Resource>, Set<String>> {
+
+       public ClassificationsRequest(Collection<Resource> principalTypes) {
+               super(principalTypes);
+       }
+
+       @Override
+       public Set<String> perform(ReadGraph graph) throws DatabaseException {
+       Set<String> result = new HashSet<String>(parameter.size());
+       Set<Resource> allTypes = new HashSet<Resource>(parameter);
+       for(Resource principalType : parameter) allTypes.addAll(graph.getSupertypes(principalType));
+       for(Resource type : allTypes) {
+               String uri = graph.getPossibleURI(type);
+               if(uri != null) result.add(uri);
+       }
+       return result;
+       }
+
+}