X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=bundles%2Forg.simantics.structural2%2Fsrc%2Forg%2Fsimantics%2Fstructural2%2Fvariables%2FConnection.java;fp=bundles%2Forg.simantics.structural2%2Fsrc%2Forg%2Fsimantics%2Fstructural2%2Fvariables%2FConnection.java;h=755c764d94374d93ea8d17f3cf9f0522b8f2b33d;hb=969bd23cab98a79ca9101af33334000879fb60c5;hp=0000000000000000000000000000000000000000;hpb=866dba5cd5a3929bbeae85991796acb212338a08;p=simantics%2Fplatform.git diff --git a/bundles/org.simantics.structural2/src/org/simantics/structural2/variables/Connection.java b/bundles/org.simantics.structural2/src/org/simantics/structural2/variables/Connection.java new file mode 100644 index 000000000..755c764d9 --- /dev/null +++ b/bundles/org.simantics.structural2/src/org/simantics/structural2/variables/Connection.java @@ -0,0 +1,25 @@ +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 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 getConnectionPoints(ReadGraph graph, Resource relationType) throws DatabaseException; + + Collection getConnectionPointDescriptors(ReadGraph graph, Resource relationType) throws DatabaseException; + +}