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

java.lang.Object
  extended bycom.hp.hpl.jena.graph.query.ValuatorConst
All Implemented Interfaces:
Valuator

public class ValuatorConst
extends java.lang.Object
implements Valuator

Author:
kers
A Valuator that returns the same Node every time, as specified in its constructor.

Constructor Summary
ValuatorConst(Node X)
          construct a valuator that remembers the value _X_
 
Method Summary
 Node eval(Domain d)
          return the value specified when constructed
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ValuatorConst

public ValuatorConst(Node X)
construct a valuator that remembers the value _X_

Method Detail

eval

public Node eval(Domain d)
return the value specified when constructed

Specified by:
eval in interface Valuator


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