microsoft.exchange.webservices.data.misc
Class ItemIdWrapperList

java.lang.Object
  extended by microsoft.exchange.webservices.data.misc.ItemIdWrapperList
All Implemented Interfaces:
Iterable<microsoft.exchange.webservices.data.misc.AbstractItemIdWrapper>

public class ItemIdWrapperList
extends Object
implements Iterable<microsoft.exchange.webservices.data.misc.AbstractItemIdWrapper>

Represents a list a abstracted item Ids.


Constructor Summary
ItemIdWrapperList()
          Initializes a new instance of the class.
 
Method Summary
protected  void add(Item item)
          Adds the specified item.
protected  void add(ItemId itemId)
          Adds the specified item id.
 void addRange(Iterable<ItemId> itemIds)
          Adds the range.
 void addRangeItem(Iterable<Item> items)
          Adds the specified item.
 int getCount()
          Gets the count.
 Item getItemIdWrapperList(int i)
          Gets the item at the specified index.
 Iterator<microsoft.exchange.webservices.data.misc.AbstractItemIdWrapper> iterator()
          Gets an Iterator that iterates through the elements of the collection.
 void writeToXml(EwsServiceXmlWriter writer, XmlNamespace ewsNamesapce, String xmlElementName)
          Writes to XML.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ItemIdWrapperList

public ItemIdWrapperList()
Initializes a new instance of the class.

Method Detail

add

protected void add(Item item)
            throws ServiceLocalException
Adds the specified item.

Parameters:
item - the item
Throws:
ServiceLocalException - the service local exception

addRangeItem

public void addRangeItem(Iterable<Item> items)
                  throws ServiceLocalException
Adds the specified item.

Parameters:
items - the item
Throws:
ServiceLocalException - the service local exception

addRange

public void addRange(Iterable<ItemId> itemIds)
Adds the range.

Parameters:
itemIds - the item ids

add

protected void add(ItemId itemId)
Adds the specified item id.

Parameters:
itemId - the item id

writeToXml

public void writeToXml(EwsServiceXmlWriter writer,
                       XmlNamespace ewsNamesapce,
                       String xmlElementName)
                throws Exception
Writes to XML.

Parameters:
writer - the writer
ewsNamesapce - the ews namesapce
xmlElementName - the xml element name
Throws:
Exception - the exception

getCount

public int getCount()
Gets the count.

Returns:
the count

getItemIdWrapperList

public Item getItemIdWrapperList(int i)
Gets the item at the specified index.

Parameters:
i - the i
Returns:
the item id wrapper list

iterator

public Iterator<microsoft.exchange.webservices.data.misc.AbstractItemIdWrapper> iterator()
Gets an Iterator that iterates through the elements of the collection.

Specified by:
iterator in interface Iterable<microsoft.exchange.webservices.data.misc.AbstractItemIdWrapper>
Returns:
An IEnumerator for the collection


Copyright © 2012–2015 Microsoft. All rights reserved.