composite = singleObject component L0.PartOf\r
existsStatement composite STR.Defines\r
\r
+importJava "org.simantics.structural2.variables.Connection" where\r
+ @JavaName Connection\r
+ data StructuralConnection\r
\r
-\r
+importJava "org.simantics.structural2.utils.StructuralUtils" where\r
+ structuralConnectionConnectionPoints :: StructuralConnection -> Resource -> <ReadGraph> [Variable]\r
package org.simantics.structural2.utils;\r
\r
-import gnu.trove.set.hash.THashSet;\r
-\r
import java.util.ArrayList;\r
import java.util.Collection;\r
import java.util.HashMap;\r
+import java.util.List;\r
import java.util.Set;\r
\r
import org.simantics.databoard.Bindings;\r
import org.simantics.structural2.variables.Connection;\r
import org.simantics.utils.datastructures.Pair;\r
\r
+import gnu.trove.set.hash.THashSet;\r
+\r
/**\r
* A utility class for manipulating structural models.\r
* \r
|| Layer0Utils.isContainerPublished(graph, r)\r
;\r
}\r
+ \r
+ public static List<Variable> structuralConnectionConnectionPoints(ReadGraph graph, Connection conn, Resource relationType) throws DatabaseException {\r
+ return new ArrayList<Variable>(conn.getConnectionPoints(graph, relationType));\r
+ }\r
\r
}\r