]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.db.layer0/src/org/simantics/db/layer0/variable/StandardResourceVariableSpaceManipulator.java
Fixed all line endings of the repository
[simantics/platform.git] / bundles / org.simantics.db.layer0 / src / org / simantics / db / layer0 / variable / StandardResourceVariableSpaceManipulator.java
index 15c97883b32dbeb6655674fc3f46c54a553c31f0..f1898d568af461834e2c474bccf1c4867d6494e0 100644 (file)
@@ -1,54 +1,54 @@
-/*******************************************************************************\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.layer0.variable;\r
-\r
-import org.simantics.databoard.Bindings;\r
-import org.simantics.db.Resource;\r
-import org.simantics.db.WriteGraph;\r
-import org.simantics.db.exception.DatabaseException;\r
-import org.simantics.layer0.Layer0;\r
-\r
-public class StandardResourceVariableSpaceManipulator implements VariableSpaceManipulator {\r
-       \r
-       final Variable target;\r
-       \r
-       public StandardResourceVariableSpaceManipulator(Variable target) {\r
-               this.target = target;\r
-       }\r
-       \r
-       public Variable createVariable(WriteGraph graph, String rvi) throws DatabaseException {\r
-               return null;\r
-       }\r
-       \r
-       public Variable createProperty(WriteGraph graph, String name) throws DatabaseException {\r
-               if("HasDescription".equals(name)) {\r
-                       Layer0 l0 = Layer0.getInstance(graph);\r
-                       Resource targetResource = target.getInterface(graph, Resource.class);\r
-                       graph.claimLiteral(targetResource, l0.HasDescription, "", Bindings.STRING);\r
-                       return target.getProperty(graph, "HasDescription");\r
-               }\r
-               return null;\r
-       }\r
-       \r
-       public Variable createChild(WriteGraph graph, String name, Object content) throws DatabaseException {\r
-               return null;\r
-       }\r
-\r
-       @Override\r
-       public void apply(WriteGraph graph, Modification modification)\r
-                       throws DatabaseException {\r
-               for(PropertyCreationData data : modification.newProperties) {\r
-                       createProperty(graph, data.name);\r
-               }\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.layer0.variable;
+
+import org.simantics.databoard.Bindings;
+import org.simantics.db.Resource;
+import org.simantics.db.WriteGraph;
+import org.simantics.db.exception.DatabaseException;
+import org.simantics.layer0.Layer0;
+
+public class StandardResourceVariableSpaceManipulator implements VariableSpaceManipulator {
+       
+       final Variable target;
+       
+       public StandardResourceVariableSpaceManipulator(Variable target) {
+               this.target = target;
+       }
+       
+       public Variable createVariable(WriteGraph graph, String rvi) throws DatabaseException {
+               return null;
+       }
+       
+       public Variable createProperty(WriteGraph graph, String name) throws DatabaseException {
+               if("HasDescription".equals(name)) {
+                       Layer0 l0 = Layer0.getInstance(graph);
+                       Resource targetResource = target.getInterface(graph, Resource.class);
+                       graph.claimLiteral(targetResource, l0.HasDescription, "", Bindings.STRING);
+                       return target.getProperty(graph, "HasDescription");
+               }
+               return null;
+       }
+       
+       public Variable createChild(WriteGraph graph, String name, Object content) throws DatabaseException {
+               return null;
+       }
+
+       @Override
+       public void apply(WriteGraph graph, Modification modification)
+                       throws DatabaseException {
+               for(PropertyCreationData data : modification.newProperties) {
+                       createProperty(graph, data.name);
+               }
+       }
+       
+}