org.openrdf.sesame.sailimpl.omm.security
Class ResourceFilterIterator

java.lang.Object
  extended byorg.openrdf.sesame.sailimpl.omm.security.ResourceFilterIterator
All Implemented Interfaces:
ResourceIterator, ValueIterator

public class ResourceFilterIterator
extends Object
implements ResourceIterator

ResourceFilterIterator.java

Title: Knowledge Control System

Company: OntoText Lab. Sirma AI.

Version:
1.0 Filters the resources from a resource iterator, according to the classes,instances,repository and schema restrictions.
Author:
borislav popov

Constructor Summary
ResourceFilterIterator()
           
ResourceFilterIterator(ResourceIterator ri, SecurityServices serv)
           
ResourceFilterIterator(ValueIterator vi, SecurityServices serv)
           
 
Method Summary
 void close()
          Closes the iterator and frees any resources that it uses (e.g.
 boolean hasNext()
          Checks whether there are any more values available.
 Value next()
          Gets the next value.
 Resource nextResource()
          Gets the next Resource.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResourceFilterIterator

public ResourceFilterIterator(ResourceIterator ri,
                              SecurityServices serv)
                       throws NullParameterException,
                              QueryEvaluationException

ResourceFilterIterator

public ResourceFilterIterator(ValueIterator vi,
                              SecurityServices serv)
                       throws NullParameterException,
                              QueryEvaluationException

ResourceFilterIterator

public ResourceFilterIterator()
Method Detail

nextResource

public Resource nextResource()
Description copied from interface: ResourceIterator
Gets the next Resource.

Specified by:
nextResource in interface ResourceIterator
Returns:
the next Resource
See Also:
ValueIterator.next()

hasNext

public boolean hasNext()
Description copied from interface: ValueIterator
Checks whether there are any more values available.

Specified by:
hasNext in interface ValueIterator
Returns:
true if there are more values available, false otherwise.

next

public Value next()
Description copied from interface: ValueIterator
Gets the next value.

Specified by:
next in interface ValueIterator
Returns:
the next value.

close

public void close()
Description copied from interface: ValueIterator
Closes the iterator and frees any resources that it uses (e.g. connections to databases). Every ValueIterator should be properly closed when it has returned all of its values, or when it is no longer needed.

Specified by:
close in interface ValueIterator


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