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

eworks.RQL.model
Class EqualityCompareOperator

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

public class EqualityCompareOperator
extends CompareOperator

Represents a compare operator that compares two values for equality.

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
EqualityCompareOperator()
           
 
Method Summary
 boolean compare(LiteralValue op1, LiteralValue op2)
          Compares two given values for equality.
 String toString()
          Returns this object's string representation, always "=".
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EqualityCompareOperator

public EqualityCompareOperator()
Method Detail

compare

public boolean compare(LiteralValue op1,
                       LiteralValue op2)
Compares two given values for equality.

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

toString

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


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