com.moyosoft.connector.ms.outlook.item
Class ItemsIterator
java.lang.Object
|
+--com.moyosoft.connector.ms.outlook.item.ItemsIterator
- All Implemented Interfaces:
- java.util.Iterator
- public class ItemsIterator
- extends java.lang.Object
- implements java.util.Iterator
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ItemsIterator
public ItemsIterator(ItemsCollection parentCollection,
com.moyosoft.connector.ms.outlook.item.Items items)
getParentCollection
public ItemsCollection getParentCollection()
getItemsCount
public int getItemsCount()
- Return the count of items
- Returns:
hasNext
public boolean hasNext()
- Specified by:
hasNext
in interface java.util.Iterator
next
public java.lang.Object next()
- Specified by:
next
in interface java.util.Iterator
nextItem
public OutlookItem nextItem()
sort
public void sort(java.lang.String pProperty,
boolean pDescendingOrder)
throws com.moyosoft.connector.com.ComponentObjectModelException
- Sorts the items by the specified property.
- Parameters:
pProperty
- The name of the property by which to sort enclosed in brackets (for example, "[CompanyName]"). May not be a user-defined field, and may not be a multi-valued property, such as a category.pDescendingOrder
- true to sort in descending order; false otherwise.
- Throws:
com.moyosoft.connector.com.ComponentObjectModelException
- if an error occurs
getItem
public OutlookItem getItem(int pIndex)
throws com.moyosoft.connector.com.ComponentObjectModelException
- Returns an item from this collection.
- Parameters:
pIndex
- the item's index number
- Returns:
- OutlookItem object
- Throws:
com.moyosoft.connector.com.ComponentObjectModelException
resetColumns
public void resetColumns()
setColumns
public void setColumns(java.lang.String columns)
remove
public void remove()
- Specified by:
remove
in interface java.util.Iterator
dispose
public void dispose()