eRqlEngine API documentation - http://www.wleklinski.de/rdf/

eworks.RQL.model
Class AlikenessCompareOperator

java.lang.Object
  extended byeworks.RQL.model.CompareOperator
      extended byeworks.RQL.model.AlikenessCompareOperator

public class AlikenessCompareOperator
extends CompareOperator

Represents a compare operator that compares a value against a regular expression.

Version:
1.00 (2003-11-03)
Author:
Fabian Wleklinski (fabian@wleklinski.de)
See Also:
The RDF Query Language (RQL)

Field Summary
 
Fields inherited from class eworks.RQL.model.CompareOperator
Alikeness, Equality
 
Constructor Summary
AlikenessCompareOperator()
          Creates a new instance.
 
Method Summary
 boolean compare(LiteralValue op1, LiteralValue op2)
          Matches a given value against a regular expression.
 String toString()
          Returns this object's string representation, always "LIKE".
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AlikenessCompareOperator

public AlikenessCompareOperator()
Creates a new instance.

Method Detail

compare

public boolean compare(LiteralValue op1,
                       LiteralValue op2)
Matches a given value against a regular expression.

Specified by:
compare in class CompareOperator
Parameters:
op1 - The value to compare against the regular expression op2.
op2 - The regular expression.
Returns:
true if both values match, false else.

toString

public String toString()
Returns this object's string representation, always "LIKE".


eRqlEngine API documentation - http://www.wleklinski.de/rdf/