]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.db.layer0/src/org/simantics/db/layer0/variable/VariableProperties.java
Fixed all line endings of the repository
[simantics/platform.git] / bundles / org.simantics.db.layer0 / src / org / simantics / db / layer0 / variable / VariableProperties.java
index 5d5edc51d1dd7661045ac473819eee44fbc1361a..da06034c4cb47b93cb609631fbc7bc21ed883d00 100644 (file)
@@ -1,48 +1,48 @@
-package org.simantics.db.layer0.variable;\r
-\r
-import java.util.Collection;\r
-\r
-import org.simantics.databoard.binding.Binding;\r
-import org.simantics.db.ReadGraph;\r
-import org.simantics.db.WriteGraph;\r
-import org.simantics.db.exception.DatabaseException;\r
-import org.simantics.db.layer0.exception.NonWritableVariableException;\r
-\r
-public interface VariableProperties<Key> {\r
-\r
-       /*\r
-        * Gets a named property of this variable. A property corresponds to a '#' in URI notation\r
-        */\r
-       Variable getProperty(ReadGraph graph, Key key) throws DatabaseException;        \r
-       Variable getPossibleProperty(ReadGraph graph, Key key) throws DatabaseException;        \r
-       \r
-       Collection<Variable> getProperties(ReadGraph graph, Key key) throws DatabaseException;\r
-\r
-       /*\r
-        * Convenience method for getting the value of a named property.\r
-        */\r
-       <T> T getPropertyValue(ReadGraph graph, Key key) throws DatabaseException;\r
-       <T> T getPossiblePropertyValue(ReadGraph graph, Key key) throws DatabaseException;\r
-       /*\r
-        * Convenience method for getting the value of a named property.\r
-        */\r
-       <T> T getPropertyValue(ReadGraph graph, Key key, Binding binding) throws DatabaseException;\r
-       <T> T getPossiblePropertyValue(ReadGraph graph, Key key, Binding binding) throws DatabaseException;\r
-       \r
-       /**\r
-        * Writes a value to the given property using the given binding.\r
-        * \r
-        * @throws NonWritableVariableException if the variable is not writable\r
-        * @throws DatabaseException in any other error conditions \r
-        */\r
-       void setPropertyValue(WriteGraph graph, Key key, Object value, Binding binding) throws DatabaseException;\r
-       /**\r
-        * Writes a value to the given property using the default binding based on\r
-        * the value class.\r
-        * \r
-        * @throws NonWritableVariableException if the variable is not writable\r
-        * @throws DatabaseException in any other error conditions \r
-        */\r
-       void setPropertyValue(WriteGraph graph, Key key, Object value) throws DatabaseException;\r
-       \r
-}\r
+package org.simantics.db.layer0.variable;
+
+import java.util.Collection;
+
+import org.simantics.databoard.binding.Binding;
+import org.simantics.db.ReadGraph;
+import org.simantics.db.WriteGraph;
+import org.simantics.db.exception.DatabaseException;
+import org.simantics.db.layer0.exception.NonWritableVariableException;
+
+public interface VariableProperties<Key> {
+
+       /*
+        * Gets a named property of this variable. A property corresponds to a '#' in URI notation
+        */
+       Variable getProperty(ReadGraph graph, Key key) throws DatabaseException;        
+       Variable getPossibleProperty(ReadGraph graph, Key key) throws DatabaseException;        
+       
+       Collection<Variable> getProperties(ReadGraph graph, Key key) throws DatabaseException;
+
+       /*
+        * Convenience method for getting the value of a named property.
+        */
+       <T> T getPropertyValue(ReadGraph graph, Key key) throws DatabaseException;
+       <T> T getPossiblePropertyValue(ReadGraph graph, Key key) throws DatabaseException;
+       /*
+        * Convenience method for getting the value of a named property.
+        */
+       <T> T getPropertyValue(ReadGraph graph, Key key, Binding binding) throws DatabaseException;
+       <T> T getPossiblePropertyValue(ReadGraph graph, Key key, Binding binding) throws DatabaseException;
+       
+       /**
+        * Writes a value to the given property using the given binding.
+        * 
+        * @throws NonWritableVariableException if the variable is not writable
+        * @throws DatabaseException in any other error conditions 
+        */
+       void setPropertyValue(WriteGraph graph, Key key, Object value, Binding binding) throws DatabaseException;
+       /**
+        * Writes a value to the given property using the default binding based on
+        * the value class.
+        * 
+        * @throws NonWritableVariableException if the variable is not writable
+        * @throws DatabaseException in any other error conditions 
+        */
+       void setPropertyValue(WriteGraph graph, Key key, Object value) throws DatabaseException;
+       
+}