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

eworks.RQL.model
Class Condition

java.lang.Object
  extended byeworks.RQL.model.Condition
Direct Known Subclasses:
ComparisonCondition, CompositionCondition

public abstract class Condition
extends Object

An abstract base class for classes that represent conditions for comparing two values against each other.

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

Constructor Summary
protected Condition()
          Creates a new condition.
 
Method Summary
 Condition compact()
          Returns a compacted copy of this condition, which is the condition itself by default, but may be overwritten in derived classes.
abstract  boolean matches(SymbolTable symbols)
          Checks if this condition is satisfied using a certain symbol table.
 String toString()
          Returns this condition's string representation, that is this class it's name (without the package name).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Condition

protected Condition()
Creates a new condition.

Method Detail

toString

public String toString()
Returns this condition's string representation, that is this class it's name (without the package name).

Returns:
This condition's string representation.

compact

public Condition compact()
Returns a compacted copy of this condition, which is the condition itself by default, but may be overwritten in derived classes.

Returns:
A compacted copy of this condition.

matches

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

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

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