com.hp.hpl.jena.graph.query
Interface Predicate

All Known Implementing Classes:
PredicateBase, Relation

public interface Predicate

Author:
kers
A query Predicate is something that can evaluate to a boolean in the context of a Domain (which supplies values for variables).

Field Summary
static Predicate TRUE
          The predicate TRUE, which always evaluates to _true_, and optimises itself away when it makes an _and_.
 
Method Summary
 Predicate and(Predicate other)
          return the AND-composition of this predicate and the other one
 boolean evaluateBool(Domain d)
          true iff the predicate is true given the values [for variables] in _d_
 

Field Detail

TRUE

public static final Predicate TRUE
The predicate TRUE, which always evaluates to _true_, and optimises itself away when it makes an _and_.

Method Detail

evaluateBool

public boolean evaluateBool(Domain d)
true iff the predicate is true given the values [for variables] in _d_


and

public Predicate and(Predicate other)
return the AND-composition of this predicate and the other one



Copyright © 2001-2003 Hewlett-Packard. All Rights Reserved.