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

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

public abstract class Relation
extends PredicateBase
implements Predicate


Field Summary
 
Fields inherited from interface com.hp.hpl.jena.graph.query.Predicate
TRUE
 
Constructor Summary
Relation(Valuator L, Valuator R)
          make a Relation with the given left & right operands
 
Method Summary
abstract  boolean evaluateBool(Domain d)
          see if the operands satisfy the relation
 boolean evaluateEquals(Domain d)
          shared code for the equality relation
 Node valueL(Domain d)
          evaluate the left operand against the domain _d_
 Node valueR(Domain d)
          evaluate the right operand against the domain _d_
 
Methods inherited from class com.hp.hpl.jena.graph.query.PredicateBase
and
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.hp.hpl.jena.graph.query.Predicate
and
 

Constructor Detail

Relation

public Relation(Valuator L,
                Valuator R)
make a Relation with the given left & right operands

Method Detail

valueL

public Node valueL(Domain d)
evaluate the left operand against the domain _d_


valueR

public Node valueR(Domain d)
evaluate the right operand against the domain _d_


evaluateBool

public abstract boolean evaluateBool(Domain d)
see if the operands satisfy the relation

Specified by:
evaluateBool in interface Predicate
Specified by:
evaluateBool in class PredicateBase

evaluateEquals

public boolean evaluateEquals(Domain d)
shared code for the equality relation



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