org.openanzo.jastor
Class PropertyIteratorOld<E>

java.lang.Object
  extended by org.openanzo.jastor.PropertyIteratorOld<E>
Type Parameters:
E - The Jastor Type for the values that this iterator of properties represents
All Implemented Interfaces:
info.aduna.collections.iterators.CloseableIterator<E>, java.io.Closeable, java.util.Iterator<E>

public abstract class PropertyIteratorOld<E>
extends java.lang.Object
implements info.aduna.collections.iterators.CloseableIterator<E>

Iterator that iterates over the set of object values for a given property on a given subject. Based on doing a find within the NamedGraph for the given subject and property

Author:
Ben Szekely (bhszekel@us.ibm.com)

Constructor Summary
PropertyIteratorOld(INamedGraph graph, org.openrdf.model.Resource resource, org.openrdf.model.URI property)
          Create iterator of object values for a given property on a given subject.
 
Method Summary
 void close()
           
abstract  E getPropertyValue(org.openrdf.model.Value resource)
          Converts the Value resource into the expected Jastor Type
 boolean hasNext()
           
 E next()
           
 void remove()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PropertyIteratorOld

public PropertyIteratorOld(INamedGraph graph,
                           org.openrdf.model.Resource resource,
                           org.openrdf.model.URI property)
Create iterator of object values for a given property on a given subject.

Parameters:
graph - INamedGraph that contains data to search
resource - Subject of statements to find
property - Property of statements to find
Method Detail

hasNext

public boolean hasNext()
Specified by:
hasNext in interface java.util.Iterator<E>

next

public E next()
Specified by:
next in interface java.util.Iterator<E>

remove

public void remove()
Specified by:
remove in interface java.util.Iterator<E>

getPropertyValue

public abstract E getPropertyValue(org.openrdf.model.Value resource)
Converts the Value resource into the expected Jastor Type

Parameters:
resource - Value to convert
Returns:
Converted value based on expected Jastor Type

close

public void close()
Specified by:
close in interface info.aduna.collections.iterators.CloseableIterator<E>
Specified by:
close in interface java.io.Closeable


Copyright © 2007 Cambridge Semantics Inc.. All Rights Reserved.