org.openrdf.sesame.sail.query
Class StringCompare

java.lang.Object
  extended byorg.openrdf.sesame.sail.query.StringCompare
All Implemented Interfaces:
BooleanExpr

public class StringCompare
extends Object
implements BooleanExpr

A comparison between two strings.


Field Summary
static int EQ
          equal to
static int NE
          not equal to
 
Constructor Summary
StringCompare(StringExpr leftArg, StringExpr rightArg)
           
StringCompare(StringExpr leftArg, StringExpr rightArg, int op)
           
 
Method Summary
 StringExpr getLeftArg()
           
 int getOperator()
           
 StringExpr getRightArg()
           
 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.
 String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

EQ

public static final int EQ
equal to

See Also:
Constant Field Values

NE

public static final int NE
not equal to

See Also:
Constant Field Values
Constructor Detail

StringCompare

public StringCompare(StringExpr leftArg,
                     StringExpr rightArg)

StringCompare

public StringCompare(StringExpr leftArg,
                     StringExpr rightArg,
                     int op)
Method Detail

getLeftArg

public StringExpr getLeftArg()

getRightArg

public StringExpr getRightArg()

getOperator

public int getOperator()

isTrue

public boolean isTrue(RdfSource rdfSource)
               throws SailQueryException
Description copied from interface: BooleanExpr
Evaluates the boolean expression on the supplied RdfSource object.

Specified by:
isTrue in interface BooleanExpr
Parameters:
rdfSource - The RdfSource to evaluate the boolean expression against.
Returns:
the result of the evaluation.
Throws:
SailQueryException

getVariables

public void getVariables(Collection variables)
Description copied from interface: BooleanExpr
Gets all variables that are used in this BooleanExpr.

Specified by:
getVariables in interface BooleanExpr
Parameters:
variables - A Collection to add the Var objects to.

toString

public String toString()


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