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


Constructor Summary
ItemsIterator(ItemsCollection parentCollection, com.moyosoft.connector.ms.outlook.item.Items items)
           
 
Method Summary
 void dispose()
           
 OutlookItem getItem(int pIndex)
          Returns an item from this collection.
 int getItemsCount()
          Return the count of items
 ItemsCollection getParentCollection()
           
 boolean hasNext()
           
 java.lang.Object next()
           
 OutlookItem nextItem()
           
 void remove()
           
 void resetColumns()
           
 void setColumns(java.lang.String columns)
           
 void sort(java.lang.String pProperty, boolean pDescendingOrder)
          Sorts the items by the specified property.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ItemsIterator

public ItemsIterator(ItemsCollection parentCollection,
                     com.moyosoft.connector.ms.outlook.item.Items items)
Method Detail

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()