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

eworks.RQL.model
Class ComparisonCondition

java.lang.Object
  extended byeworks.RQL.model.Condition
      extended byeworks.RQL.model.ComparisonCondition

public class ComparisonCondition
extends Condition

Represents a condition that compares two values against each other.

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

Field Summary
protected  CompareOperator op
          The operator used to compare both values against each other.
protected  Value op1
          The first value to compare.
protected  Value op2
          The second value to compare.
 
Constructor Summary
ComparisonCondition(Value op1, CompareOperator op, Value op2)
          Creates a new comparison condition using two certain values and a certain operator.
 
Method Summary
 boolean matches(SymbolTable symbols)
          Checks if this condition is satisfied by both values, using a certain symbol table.
 String toString()
          Returns this condition's string representation.
 
Methods inherited from class eworks.RQL.model.Condition
compact
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

op1

protected Value op1
The first value to compare.


op2

protected Value op2
The second value to compare.


op

protected CompareOperator op
The operator used to compare both values against each other.

Constructor Detail

ComparisonCondition

public ComparisonCondition(Value op1,
                           CompareOperator op,
                           Value op2)
Creates a new comparison condition using two certain values and a certain operator.

Parameters:
op1 - The first value to compare.
op - The operator used to compare both values against each other.
op2 - The second value to compare.
Method Detail

matches

public boolean matches(SymbolTable symbols)
                throws VariableNotBoundException
Checks if this condition is satisfied by both values, using a certain symbol table.

Specified by:
matches in class Condition
Parameters:
symbols - The symbol table to use.
Returns:
true if this condition is satisfied, false else.
Throws:
VariableNotBoundException - if one or both of this condition's values are not bound by the given symbol table.

toString

public String toString()
Returns this condition's string representation.

Overrides:
toString in class Condition
Returns:
This condition's string representation.

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