org.openrdf.sesame.query.rql.model
Class Like

java.lang.Object
  extended byorg.openrdf.sesame.query.rql.model.Like
All Implemented Interfaces:
BooleanQuery, Query

public class Like
extends Object
implements BooleanQuery


Constructor Summary
Like(ResourceQuery arg1, StringConstant arg2)
           
 
Method Summary
 String getQuery()
           
 boolean isTrue(RdfSchemaSource rss)
          Determines whether the two operands match according to the like operator.
 String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Like

public Like(ResourceQuery arg1,
            StringConstant arg2)
Method Detail

isTrue

public boolean isTrue(RdfSchemaSource rss)
               throws QueryEvaluationException
Determines whether the two operands match according to the like operator. The operator is defined as a string comparison with the possible use of an asterisk (*) at the end and/or the start of the second operand to indicate substring matching.

Specified by:
isTrue in interface BooleanQuery
Parameters:
rss - the repository abstraction layer which is to be queried during evaluation.
Returns:
true if the operands match according to the like operator, false otherwise.
Throws:
QueryEvaluationException - when the first argument is a set (instead of a single value), or when it is not instantiated.

getQuery

public String getQuery()
Specified by:
getQuery in interface Query

toString

public String toString()


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