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

java.lang.Object
  extended by com.hp.hpl.jena.graph.query.FixedValuator
All Implemented Interfaces:
Valuator

public class FixedValuator
extends Object
implements Valuator

A FixedValuator is a Valuator that delivers a constant value (supplied when it is constructed).

Author:
hedgehog

Constructor Summary
FixedValuator(Object value)
          Initialise this FixedValuator with a specific value
 
Method Summary
 boolean evalBool(IndexValues iv)
          Answer this FixedValuator's value, which must be a Boolean object, as a boolean.
 Object evalObject(IndexValues iv)
          Answer this FixedValuator's value, as supplied when it was constructed.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FixedValuator

public FixedValuator(Object value)
Initialise this FixedValuator with a specific value

Method Detail

evalBool

public boolean evalBool(IndexValues iv)
Answer this FixedValuator's value, which must be a Boolean object, as a boolean. The index values are irrelevant.

Specified by:
evalBool in interface Valuator
Parameters:
iv - the mapping from variable (indexes) to values

evalObject

public Object evalObject(IndexValues iv)
Answer this FixedValuator's value, as supplied when it was constructed.

Specified by:
evalObject in interface Valuator
Parameters:
iv - the mapping from variable (indexes) to values


Licenced under the Apache License, Version 2.0