microsoft.exchange.webservices.data.misc
Class FolderIdWrapperList

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

public class FolderIdWrapperList
extends Object
implements Iterable<AbstractFolderIdWrapper>

Represents a list a abstracted folder Ids.


Constructor Summary
FolderIdWrapperList()
           
 
Method Summary
 void add(Folder folder)
          Adds the specified folder.
 void add(FolderId folderId)
          Adds the specified folder id.
protected  void addRangeFolder(Iterable<Folder> folders)
          Adds the range.
 void addRangeFolderId(Iterable<FolderId> folderIds)
          Adds the range of folder ids.
 int getCount()
          Gets the id count.
 AbstractFolderIdWrapper getFolderIdWrapperList(int i)
          Gets the at the specified index.
 Iterator<AbstractFolderIdWrapper> iterator()
           
 void validate(ExchangeVersion version)
          Validates list of folderIds against a specified request version.
 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

FolderIdWrapperList

public FolderIdWrapperList()
Method Detail

add

public void add(Folder folder)
         throws ServiceLocalException
Adds the specified folder.

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

addRangeFolder

protected void addRangeFolder(Iterable<Folder> folders)
                       throws ServiceLocalException
Adds the range.

Parameters:
folders - the folder
Throws:
ServiceLocalException - the service local exception

add

public void add(FolderId folderId)
Adds the specified folder id.

Parameters:
folderId - the folder id

addRangeFolderId

public void addRangeFolderId(Iterable<FolderId> folderIds)
Adds the range of folder ids.

Parameters:
folderIds - the folder ids

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 id count.

Returns:
the count

getFolderIdWrapperList

public AbstractFolderIdWrapper getFolderIdWrapperList(int i)
Gets the at the specified index.

Parameters:
i - the i
Returns:
the index

validate

public void validate(ExchangeVersion version)
              throws ServiceVersionException
Validates list of folderIds against a specified request version.

Parameters:
version - the version
Throws:
ServiceVersionException - the service version exception

iterator

public Iterator<AbstractFolderIdWrapper> iterator()
Specified by:
iterator in interface Iterable<AbstractFolderIdWrapper>


Copyright © 2012–2015 Microsoft. All rights reserved.