org.gcube.contentmanagement.contentmanager.smsplugin.delegates.util
Class CollectionIterator

java.lang.Object
  extended by org.gcube.contentmanagement.contentmanager.smsplugin.delegates.util.NextIterator<GDoc,InfoObjectTree>
      extended by org.gcube.contentmanagement.contentmanager.smsplugin.delegates.util.CollectionIterator

public class CollectionIterator
extends NextIterator<GDoc,InfoObjectTree>

Author:
Federico De Faveri defaveri@isti.cnr.it

Constructor Summary
CollectionIterator(GCUBELog logger, java.lang.String collectionId,  inputIterator, Predicate projection)
          Creates a new Collection iterator.
 
Method Summary
 GDoc generateNext(InfoObjectTree input)
          Generates the next element.
 
Methods inherited from class org.gcube.contentmanagement.contentmanager.smsplugin.delegates.util.NextIterator
close, hasNext, locator, next
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CollectionIterator

public CollectionIterator(GCUBELog logger,
                          java.lang.String collectionId,
                           inputIterator,
                          Predicate projection)
Creates a new Collection iterator.

Parameters:
logger - the logger to use.
collectionId - the collection id.
inputIterator - the InfoObjectTree source.
projection - the projection to apply.
Method Detail

generateNext

public GDoc generateNext(InfoObjectTree input)
Generates the next element.

Specified by:
generateNext in class NextIterator<GDoc,InfoObjectTree>
Parameters:
input - the input element.
Returns:
the produced object.