1 package org.simantics.structural2.variables;
3 import java.util.Collection;
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;
11 public interface VariableConnectionPointDescriptor {
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;