X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=bundles%2Forg.simantics.structural2%2Fsrc%2Forg%2Fsimantics%2Fstructural2%2Fscl%2FStructuralComponent.java;h=01ae51ceabf4a512b1db5ec0356d6232c638953b;hb=e030dd5359ab50cf88fc891af61b6cf43c01f86f;hp=26cec5d87f97c8848459ecdd3e681bce34ce91b4;hpb=969bd23cab98a79ca9101af33334000879fb60c5;p=simantics%2Fplatform.git diff --git a/bundles/org.simantics.structural2/src/org/simantics/structural2/scl/StructuralComponent.java b/bundles/org.simantics.structural2/src/org/simantics/structural2/scl/StructuralComponent.java index 26cec5d87..01ae51cea 100644 --- a/bundles/org.simantics.structural2/src/org/simantics/structural2/scl/StructuralComponent.java +++ b/bundles/org.simantics.structural2/src/org/simantics/structural2/scl/StructuralComponent.java @@ -1,25 +1,25 @@ -package org.simantics.structural2.scl; - -import java.util.List; - -import org.simantics.databoard.adapter.AdaptException; -import org.simantics.databoard.binding.Binding; -import org.simantics.db.ReadGraph; -import org.simantics.db.Resource; -import org.simantics.db.exception.DatabaseException; -import org.simantics.utils.datastructures.Pair; - -/** - * Represents a Component that is not a Composite. - * - * @author Hannu Niemistö - */ -public abstract class StructuralComponent extends StructuralConfiguration { - public abstract Resource getType(ReadGraph g) throws DatabaseException; - //public abstract Set getAttributes(ReadGraph g) throws DatabaseException; - //public abstract Variant getValue(ReadGraph g, Resource attribute) throws DatabaseException; - public abstract Object getValue(ReadGraph g, Resource attribute, Binding binding) throws DatabaseException, AdaptException; - public abstract boolean isParametrized(ReadGraph g) throws DatabaseException; - public abstract Connection getConnection(ReadGraph g, Resource connectionPoint) throws DatabaseException; - public abstract List> getConnections(ReadGraph g, Resource connectionPoint) throws DatabaseException; -} +package org.simantics.structural2.scl; + +import java.util.List; + +import org.simantics.databoard.adapter.AdaptException; +import org.simantics.databoard.binding.Binding; +import org.simantics.db.ReadGraph; +import org.simantics.db.Resource; +import org.simantics.db.exception.DatabaseException; +import org.simantics.utils.datastructures.Pair; + +/** + * Represents a Component that is not a Composite. + * + * @author Hannu Niemistö + */ +public abstract class StructuralComponent extends StructuralConfiguration { + public abstract Resource getType(ReadGraph g) throws DatabaseException; + //public abstract Set getAttributes(ReadGraph g) throws DatabaseException; + //public abstract Variant getValue(ReadGraph g, Resource attribute) throws DatabaseException; + public abstract Object getValue(ReadGraph g, Resource attribute, Binding binding) throws DatabaseException, AdaptException; + public abstract boolean isParametrized(ReadGraph g) throws DatabaseException; + public abstract Connection getConnection(ReadGraph g, Resource connectionPoint) throws DatabaseException; + public abstract List> getConnections(ReadGraph g, Resource connectionPoint) throws DatabaseException; +}