Class ItemIdWrapperList
- java.lang.Object
-
- microsoft.exchange.webservices.data.misc.ItemIdWrapperList
-
- All Implemented Interfaces:
Iterable<AbstractItemIdWrapper>
public class ItemIdWrapperList extends Object implements Iterable<AbstractItemIdWrapper>
Represents a list a abstracted item Ids.
-
-
Constructor Summary
Constructors Constructor Description ItemIdWrapperList()Initializes a new instance of the class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidadd(Item item)Adds the specified item.protected voidadd(ItemId itemId)Adds the specified item id.voidaddRange(Iterable<ItemId> itemIds)Adds the range.voidaddRangeItem(Iterable<Item> items)Adds the specified item.intgetCount()Gets the count.ItemgetItemIdWrapperList(int i)Gets the item at the specified index.Iterator<AbstractItemIdWrapper>iterator()Gets an Iterator that iterates through the elements of the collection.StringtoString()voidwriteToXml(EwsServiceXmlWriter writer, XmlNamespace ewsNamesapce, String xmlElementName)Writes to XML.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
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
-
writeToXml
public void writeToXml(EwsServiceXmlWriter writer, XmlNamespace ewsNamesapce, String xmlElementName) throws Exception
Writes to XML.- Parameters:
writer- the writerewsNamesapce- the ews namesapcexmlElementName- 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<AbstractItemIdWrapper> iterator()
Gets an Iterator that iterates through the elements of the collection.- Specified by:
iteratorin interfaceIterable<AbstractItemIdWrapper>- Returns:
- An IEnumerator for the collection
-
-