]> gerrit.simantics Code Review - simantics/platform.git/blob
403280aea6eb0279841d21bbd0d12a4914f99c9d
[simantics/platform.git] /
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 import org.simantics.structural2.Functions.InterfaceResolution;
10
11 public interface VariableConnectionPointDescriptor {
12         
13         public boolean isFlattenedFrom(ReadGraph graph, Variable possiblyStructuralCp) throws DatabaseException;
14         public Variable getVariable(ReadGraph graph) throws DatabaseException;
15         public Resource getConnectionPointResource(ReadGraph graph) throws DatabaseException;
16         public String getURI(ReadGraph graph) throws DatabaseException;
17         public Collection<InterfaceResolution> getInterfaceDescription(ReadGraph graph) throws DatabaseException;
18         public boolean isLeaf(ReadGraph graph) throws DatabaseException;
19         public boolean hasClassification(ReadGraph graph, String classification) throws DatabaseException;
20         public String getRelativeRVI(ReadGraph graph, Variable base) throws DatabaseException;
21         
22 }