-package org.simantics.structural2.variables;\r
-\r
-import java.util.Collection;\r
-\r
-import org.simantics.db.ReadGraph;\r
-import org.simantics.db.Resource;\r
-import org.simantics.db.exception.DatabaseException;\r
-import org.simantics.db.layer0.variable.Variable;\r
-\r
-public interface Connection {\r
-\r
- /**\r
- * Return absolute URIs of the connection points. An optional (may be null) relationType may be used\r
- * to filter the returned connection points.\r
- */\r
- Collection<String> getConnectionPointURIs(ReadGraph graph, Resource relationType) throws DatabaseException;\r
- /**\r
- * Return the connection points. An optional (may be null) relationType may be used\r
- * to filter the returned connection points.\r
- */\r
- Collection<Variable> getConnectionPoints(ReadGraph graph, Resource relationType) throws DatabaseException;\r
- \r
- Collection<VariableConnectionPointDescriptor> getConnectionPointDescriptors(ReadGraph graph, Resource relationType) throws DatabaseException;\r
-\r
-}\r
+package org.simantics.structural2.variables;
+
+import java.util.Collection;
+
+import org.simantics.db.ReadGraph;
+import org.simantics.db.Resource;
+import org.simantics.db.exception.DatabaseException;
+import org.simantics.db.layer0.variable.Variable;
+
+public interface Connection {
+
+ /**
+ * Return absolute URIs of the connection points. An optional (may be null) relationType may be used
+ * to filter the returned connection points.
+ */
+ Collection<String> getConnectionPointURIs(ReadGraph graph, Resource relationType) throws DatabaseException;
+ /**
+ * Return the connection points. An optional (may be null) relationType may be used
+ * to filter the returned connection points.
+ */
+ Collection<Variable> getConnectionPoints(ReadGraph graph, Resource relationType) throws DatabaseException;
+
+ Collection<VariableConnectionPointDescriptor> getConnectionPointDescriptors(ReadGraph graph, Resource relationType) throws DatabaseException;
+
+ Connection2 getConnection2();
+
+}