X-Git-Url: https://gerrit.simantics.org/r/gitweb?p=simantics%2Fplatform.git;a=blobdiff_plain;f=bundles%2Forg.simantics.document.linking.ui%2Fsrc%2Forg%2Fsimantics%2Fdocument%2Flinking%2Freport%2Fevaluator%2FEvaluatorItem.java;h=65318f3736f6980c665d29a1d9b3d11d3a13504e;hp=e131ce302f455093cf98d6138d31e8f4baf7ba29;hb=refs%2Fchanges%2F38%2F238%2F2;hpb=24e2b34260f219f0d1644ca7a138894980e25b14 diff --git a/bundles/org.simantics.document.linking.ui/src/org/simantics/document/linking/report/evaluator/EvaluatorItem.java b/bundles/org.simantics.document.linking.ui/src/org/simantics/document/linking/report/evaluator/EvaluatorItem.java index e131ce302..65318f373 100644 --- a/bundles/org.simantics.document.linking.ui/src/org/simantics/document/linking/report/evaluator/EvaluatorItem.java +++ b/bundles/org.simantics.document.linking.ui/src/org/simantics/document/linking/report/evaluator/EvaluatorItem.java @@ -1,71 +1,71 @@ -package org.simantics.document.linking.report.evaluator; - -import java.util.List; -import java.util.Map; - -import org.eclipse.jface.resource.ImageDescriptor; -import org.simantics.db.ReadGraph; -import org.simantics.db.exception.DatabaseException; -import org.simantics.db.layer0.variable.Variable; -import org.simantics.document.linking.report.DocumentLine; - - -/** - * Base interface for user configurable content. - * - * @author Marko Luukkainen - * - */ -public interface EvaluatorItem { - - /** - * Returns rootNode of the evaluation tree, or null. - * @return - */ - public EvaluatorRoot getRoot(); - - /** - * Return parent node, or null. - * @return - */ - public EvaluatorNode getParent(); - - /** - * Sets parent node. This method is for internal use only. - * @param parent - */ - void setParent(EvaluatorNode parent); - - /** - * Returns result of evaluation as a single String. Lines are separated with line.separator system property. All styling hints are omitted. - * @param graph - * @param variable - * @param context - * @return - * @throws DatabaseException - */ - public String getValue(ReadGraph graph, Variable variable, Map context) throws DatabaseException; - - /** - * Returns result of evaluation as collection of lines with styling hints. - * @param graph - * @param variable - * @param context - * @return - * @throws DatabaseException - */ - public List getLines(ReadGraph graph, Variable variable, Map context) throws DatabaseException; - - /** - * Copies the evaluation node and its children. - * @return - */ - public EvaluatorItem copy(); - - - - public ImageDescriptor getImage(); - - - -} +package org.simantics.document.linking.report.evaluator; + +import java.util.List; +import java.util.Map; + +import org.eclipse.jface.resource.ImageDescriptor; +import org.simantics.db.ReadGraph; +import org.simantics.db.exception.DatabaseException; +import org.simantics.db.layer0.variable.Variable; +import org.simantics.document.linking.report.DocumentLine; + + +/** + * Base interface for user configurable content. + * + * @author Marko Luukkainen + * + */ +public interface EvaluatorItem { + + /** + * Returns rootNode of the evaluation tree, or null. + * @return + */ + public EvaluatorRoot getRoot(); + + /** + * Return parent node, or null. + * @return + */ + public EvaluatorNode getParent(); + + /** + * Sets parent node. This method is for internal use only. + * @param parent + */ + void setParent(EvaluatorNode parent); + + /** + * Returns result of evaluation as a single String. Lines are separated with line.separator system property. All styling hints are omitted. + * @param graph + * @param variable + * @param context + * @return + * @throws DatabaseException + */ + public String getValue(ReadGraph graph, Variable variable, Map context) throws DatabaseException; + + /** + * Returns result of evaluation as collection of lines with styling hints. + * @param graph + * @param variable + * @param context + * @return + * @throws DatabaseException + */ + public List getLines(ReadGraph graph, Variable variable, Map context) throws DatabaseException; + + /** + * Copies the evaluation node and its children. + * @return + */ + public EvaluatorItem copy(); + + + + public ImageDescriptor getImage(); + + + +}