]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.structural2/src/org/simantics/structural2/variables/VariableConnectionPointDescriptor.java
Migrated source code from Simantics SVN
[simantics/platform.git] / bundles / org.simantics.structural2 / src / org / simantics / structural2 / variables / VariableConnectionPointDescriptor.java
diff --git a/bundles/org.simantics.structural2/src/org/simantics/structural2/variables/VariableConnectionPointDescriptor.java b/bundles/org.simantics.structural2/src/org/simantics/structural2/variables/VariableConnectionPointDescriptor.java
new file mode 100644 (file)
index 0000000..5b18bba
--- /dev/null
@@ -0,0 +1,22 @@
+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
+import org.simantics.structural2.Functions.InterfaceResolution;\r
+\r
+public interface VariableConnectionPointDescriptor {\r
+       \r
+       public boolean isFlattenedFrom(ReadGraph graph, Variable possiblyStructuralCp) throws DatabaseException;\r
+       public Variable getVariable(ReadGraph graph) throws DatabaseException;\r
+       public Resource getConnectionPointResource(ReadGraph graph) throws DatabaseException;\r
+       public String getURI(ReadGraph graph) throws DatabaseException;\r
+       public Collection<InterfaceResolution> getInterfaceDescription(ReadGraph graph) throws DatabaseException;\r
+       public boolean isLeaf(ReadGraph graph) throws DatabaseException;\r
+       public boolean hasClassification(ReadGraph graph, String classification) throws DatabaseException;\r
+       public String getRelativeRVI(ReadGraph graph, Variable base) throws DatabaseException;\r
+       \r
+}
\ No newline at end of file