]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.db.common/src/org/simantics/db/common/request/PossibleProperty.java
Fixed all line endings of the repository
[simantics/platform.git] / bundles / org.simantics.db.common / src / org / simantics / db / common / request / PossibleProperty.java
index 0a6e0ace7484d332c30a5912bab386c4a81259a4..8fea8bf97ee561ea00e4295e2c3d48bb787b0eb3 100644 (file)
@@ -1,34 +1,34 @@
-/*******************************************************************************\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 java.util.Map;\r
-\r
-import org.simantics.db.ReadGraph;\r
-import org.simantics.db.Resource;\r
-import org.simantics.db.exception.DatabaseException;\r
-\r
-final public class PossibleProperty extends BinaryRead<Resource, String, Resource> {\r
-\r
-    public PossibleProperty(Resource resource, String name) {\r
-        super(resource, name);\r
-    }\r
-\r
-    @Override\r
-    public Resource perform(ReadGraph graph) throws DatabaseException {\r
-       Map<String, Resource> propertyMap = graph.syncRequest(new PropertyMapOfResource(parameter));\r
-       Resource property = propertyMap.get(parameter2);\r
-       if(property == null) return null;\r
-       return graph.getPossibleObject(parameter, property);\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 java.util.Map;
+
+import org.simantics.db.ReadGraph;
+import org.simantics.db.Resource;
+import org.simantics.db.exception.DatabaseException;
+
+final public class PossibleProperty extends BinaryRead<Resource, String, Resource> {
+
+    public PossibleProperty(Resource resource, String name) {
+        super(resource, name);
+    }
+
+    @Override
+    public Resource perform(ReadGraph graph) throws DatabaseException {
+       Map<String, Resource> propertyMap = graph.syncRequest(new PropertyMapOfResource(parameter));
+       Resource property = propertyMap.get(parameter2);
+       if(property == null) return null;
+       return graph.getPossibleObject(parameter, property);
+    }
+
+}