Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.ecm.automation.core.collectors
Class BlobListCollector

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractList<E>
          extended by java.util.ArrayList<Blob>
              extended by org.nuxeo.ecm.automation.core.util.BlobList
                  extended by org.nuxeo.ecm.automation.core.collectors.BlobListCollector
All Implemented Interfaces:
Serializable, Cloneable, Iterable<Blob>, Collection<Blob>, List<Blob>, RandomAccess, OutputCollector<BlobList,BlobList>

public class BlobListCollector
extends BlobList
implements OutputCollector<BlobList,BlobList>

This implementation collect Blob objects and return them as a BlobList object.

You may use this to automatically iterate over iterable inputs in operation methods that return a Blob object.

Author:
Bogdan Stefanescu
See Also:
Serialized Form

Constructor Summary
BlobListCollector()
           
 
Method Summary
 void collect(OperationContext ctx, BlobList obj)
          Collects a new partial result (the result of the last iteration step).
 BlobList getOutput()
          Gets the final output.
 
Methods inherited from class java.util.ArrayList
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, remove, remove, set, size, toArray, toArray, trimToSize
 
Methods inherited from class java.util.AbstractList
equals, hashCode, iterator, listIterator, listIterator, subList
 
Methods inherited from class java.util.AbstractCollection
containsAll, removeAll, retainAll, toString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
containsAll, equals, hashCode, iterator, listIterator, listIterator, removeAll, retainAll, subList
 

Constructor Detail

BlobListCollector

public BlobListCollector()
Method Detail

collect

public void collect(OperationContext ctx,
                    BlobList obj)
             throws OperationException
Description copied from interface: OutputCollector
Collects a new partial result (the result of the last iteration step).

Specified by:
collect in interface OutputCollector<BlobList,BlobList>
Throws:
OperationException

getOutput

public BlobList getOutput()
Description copied from interface: OutputCollector
Gets the final output. This is usually a list or set of collected objects.

Specified by:
getOutput in interface OutputCollector<BlobList,BlobList>

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.