com.hp.hpl.jena.graph.query
Class PredicateBase

java.lang.Object
  extended bycom.hp.hpl.jena.graph.query.PredicateBase
All Implemented Interfaces:
Predicate
Direct Known Subclasses:
Relation

public abstract class PredicateBase
extends java.lang.Object
implements Predicate

Author:
kers
PredicateBase provides a base class for implementations of Predicate. _evaluateBool_ is left abstract - who knows what the core meaning of a predicate is - but a default implementation of _and_ is supplied which does the "obvious thing": it's _evaluateBool_ is the && of the two component Predicate's _evaluateBool_s.

Field Summary
 
Fields inherited from interface com.hp.hpl.jena.graph.query.Predicate
TRUE
 
Constructor Summary
PredicateBase()
           
 
Method Summary
 Predicate and(Predicate other)
          L.and(R).evaluateBool(D) = L.evaluateBool(D) && R.evaluateBool(D)
abstract  boolean evaluateBool(Domain d)
          evaluate truth value in this domain: deferred to subclasses
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PredicateBase

public PredicateBase()
Method Detail

evaluateBool

public abstract boolean evaluateBool(Domain d)
evaluate truth value in this domain: deferred to subclasses

Specified by:
evaluateBool in interface Predicate

and

public Predicate and(Predicate other)
L.and(R).evaluateBool(D) = L.evaluateBool(D) && R.evaluateBool(D)

Specified by:
and in interface Predicate


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