org.openrdf.sesame.sail.query
Interface BooleanExpr

All Known Implementing Classes:
And, BooleanConstant, CompareAll, CompareAny, Exists, In, IsBNode, IsLiteral, IsResource, IsURI, Like, Not, Or, StringCompare, ValueCompare

public interface BooleanExpr

An expressions that can evaluate to the boolean values true and false.


Method Summary
 void getVariables(Collection variables)
          Gets all variables that are used in this BooleanExpr.
 boolean isTrue(RdfSource rdfSource)
          Evaluates the boolean expression on the supplied RdfSource object.
 

Method Detail

isTrue

public boolean isTrue(RdfSource rdfSource)
               throws BooleanExprEvaluationException,
                      SailQueryException
Evaluates the boolean expression on the supplied RdfSource object.

Parameters:
rdfSource - The RdfSource to evaluate the boolean expression against.
Returns:
the result of the evaluation.
Throws:
BooleanExprEvaluationException - If the boolean expression could not be evaluated, for example when comparing two incompatible operands. When thrown, the result of the boolean expression is neither true or false, but unknown.
SailQueryException

getVariables

public void getVariables(Collection variables)
Gets all variables that are used in this BooleanExpr.

Parameters:
variables - A Collection to add the Var objects to.


Copyright © 2002-2006 Aduna BV, GNU LGPL License applies.