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

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

public class PropertySelector
extends Object
implements Selector


Constructor Summary
PropertySelector(PropertyVar propVar, PropertyQuery propQ)
          Creates a new PropertySelector that fills the supplied propVar with values from propQ. propQ is not allowed to be an instance of PropertyVar.
 
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

PropertySelector

public PropertySelector(PropertyVar propVar,
                        PropertyQuery propQ)
Creates a new PropertySelector that fills the supplied propVar with values from propQ. propQ is not allowed to be an instance of PropertyVar.

Throws:
IllegalArgumentException - If propQ is an instance of PropertyVar.
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.