org.wfmc.wapi
Interface WMIterator

All Superinterfaces:
java.util.Iterator
All Known Subinterfaces:
WMAAuditEntryIterator, WMActivityInstanceIterator, WMActivityInstanceStateIterator, WMAttributeIterator, WMEntityIterator, WMProcessDefinitionIterator, WMProcessDefinitionStateIterator, WMProcessInstanceIterator, WMProcessInstanceStateIterator, WMWorkItemIterator, WMWorkItemStateIterator

public interface WMIterator
extends java.util.Iterator

Special iterator that can return an element count. The sub-interfaces all provide typesafe tsNext() methods to access the elements of the iteration.

Author:
Adrian Price

Method Summary
 int getCount()
          Returns the number of items that matched the query criteria.
 
Methods inherited from interface java.util.Iterator
hasNext, next, remove
 

Method Detail

getCount

public int getCount()
Returns the number of items that matched the query criteria. N.B. This iterator class is used to return either the objects themselves or a count of the total number of objects. In the former case the count value may be unknown, in which case the method returns -1.

Returns:
Iteration count.


SourceForge.net Logo OBE-1.0 Copyright (c) 2002-2006 Adrian Price. All Rights Reserved.