]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.db.layer0/src/org/simantics/db/layer0/variable/VariableMap.java
Migrated source code from Simantics SVN
[simantics/platform.git] / bundles / org.simantics.db.layer0 / src / org / simantics / db / layer0 / variable / VariableMap.java
diff --git a/bundles/org.simantics.db.layer0/src/org/simantics/db/layer0/variable/VariableMap.java b/bundles/org.simantics.db.layer0/src/org/simantics/db/layer0/variable/VariableMap.java
new file mode 100644 (file)
index 0000000..96e04d4
--- /dev/null
@@ -0,0 +1,13 @@
+package org.simantics.db.layer0.variable;\r
+\r
+import java.util.Map;\r
+\r
+import org.simantics.db.ReadGraph;\r
+import org.simantics.db.exception.DatabaseException;\r
+\r
+public interface VariableMap {\r
+    Variable getVariable(ReadGraph graph, Variable context, String name) throws DatabaseException;\r
+    // Must not modify collection in any way not possible with put-method.\r
+    Map<String, Variable> getVariables(ReadGraph graph, Variable context, Map<String, Variable> map) throws DatabaseException;\r
+    Map<String, Variable> getVariables(ReadGraph graph, Variable context, String classification, Map<String, Variable> map) throws DatabaseException;\r
+}\r