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

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

public class SlotValuator
extends Object
implements Valuator

A SlotValuator evaluates to a specific slot in the index values bindings.

Author:
hedgehog

Constructor Summary
SlotValuator(int index)
          Initialise this SlotValuator with the index to use for lookup.
 
Method Summary
 boolean evalBool(IndexValues iv)
          Answer the primitive boolean value of the indexth element of the index value bindings, which must be a Boolean value.
 Object evalObject(IndexValues iv)
          Answer the value of the indexth element of the index values bindings.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SlotValuator

public SlotValuator(int index)
Initialise this SlotValuator with the index to use for lookup.

Method Detail

evalObject

public Object evalObject(IndexValues iv)
Answer the value of the indexth element of the index values bindings.

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

evalBool

public boolean evalBool(IndexValues iv)
Answer the primitive boolean value of the indexth element of the index value bindings, which must be a Boolean value.

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


Licenced under the Apache License, Version 2.0