]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.simantics.structural2/src/org/simantics/structural2/variables/Connection.java
Paster.getGraph() method for overriding classes.
[simantics/platform.git] / bundles / org.simantics.structural2 / src / org / simantics / structural2 / variables / Connection.java
1 package org.simantics.structural2.variables;
2
3 import java.util.Collection;
4
5 import org.simantics.db.ReadGraph;
6 import org.simantics.db.Resource;
7 import org.simantics.db.exception.DatabaseException;
8 import org.simantics.db.layer0.variable.Variable;
9
10 public interface Connection {
11
12     /**
13      * Return absolute URIs of the connection points. An optional (may be null) relationType may be used
14      * to filter the returned connection points.
15      */
16         Collection<String> getConnectionPointURIs(ReadGraph graph, Resource relationType) throws DatabaseException;
17     /**
18      * Return the connection points. An optional (may be null) relationType may be used
19      * to filter the returned connection points.
20      */
21         Collection<Variable> getConnectionPoints(ReadGraph graph, Resource relationType) throws DatabaseException;
22         
23         Collection<VariableConnectionPointDescriptor> getConnectionPointDescriptors(ReadGraph graph, Resource relationType) throws DatabaseException;
24
25 }