public class DocumentRefCollector extends ArrayList<DocumentRef> implements DocumentRefList, OutputCollector<DocumentRef,DocumentRefList>
DocumentRef
objects and return them as a
DocumentRefList
object.
You may use this to automatically iterate over iterable inputs in operation
methods that return a DocumentRef
object.
Constructor and Description |
---|
DocumentRefCollector() |
Modifier and Type | Method and Description |
---|---|
void |
collect(OperationContext ctx,
DocumentRef ref)
Collects a new partial result (the result of the last iteration step).
|
DocumentRefList |
getOutput()
Gets the final output.
|
long |
totalSize()
Returns the total size of the bigger list this is a part of.
|
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, retainAll, set, size, subList, toArray, toArray, trimToSize
equals, hashCode
containsAll, toString
public long totalSize()
DocumentRefList
totalSize
in interface DocumentRefList
public void collect(OperationContext ctx, DocumentRef ref) throws OperationException
OutputCollector
collect
in interface OutputCollector<DocumentRef,DocumentRefList>
OperationException
public DocumentRefList getOutput()
OutputCollector
getOutput
in interface OutputCollector<DocumentRef,DocumentRefList>
Copyright © 2013 Nuxeo SA. All Rights Reserved.