org.openrdf.sesame.query.rql.model
Class ClassSelector

java.lang.Object
  extended byorg.openrdf.sesame.query.rql.model.ClassSelector
All Implemented Interfaces:
Selector

public class ClassSelector
extends Object
implements Selector


Constructor Summary
ClassSelector(ClassVar classVar, ClassQuery classQ)
          Creates a new ClassSelector that fills the supplied classVar with values from classQ. classQ is not allowed to be an instance of ClassVar.
 
Method Summary
 void clear()
          Clears the Selector.
 void initialize(RdfSchemaSource rss)
          Gives the Selector the opportunity to initialize itself.
 boolean selectNext(RdfSchemaSource rss)
          Selects the next values.
 String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ClassSelector

public ClassSelector(ClassVar classVar,
                     ClassQuery classQ)
Creates a new ClassSelector that fills the supplied classVar with values from classQ. classQ is not allowed to be an instance of ClassVar.

Throws:
IllegalArgumentException - If classQ is an instance of ClassVar.
Method Detail

initialize

public void initialize(RdfSchemaSource rss)
                throws QueryEvaluationException
Description copied from interface: Selector
Gives the Selector the opportunity to initialize itself.

Specified by:
initialize in interface Selector
Throws:
QueryEvaluationException

selectNext

public boolean selectNext(RdfSchemaSource rss)
                   throws QueryEvaluationException
Description copied from interface: Selector
Selects the next values. Returns true if the selection was successful, false otherwise.

Specified by:
selectNext in interface Selector
Throws:
QueryEvaluationException

clear

public void clear()
Description copied from interface: Selector
Clears the Selector. The Selector will release all resources it is currently using. After the Selector has been cleared it should be reusable by re-initializing it.

Specified by:
clear in interface Selector

toString

public String toString()


Copyright © 2002-2006 Aduna BV, GNU LGPL License applies.