org.openrdf.sesame.query.rql.model
Class Like
java.lang.Object
org.openrdf.sesame.query.rql.model.Like
- All Implemented Interfaces:
- BooleanQuery, Query
- public class Like
- extends Object
- implements BooleanQuery
Like
public Like(ResourceQuery arg1,
StringConstant arg2)
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.