Class FolderIdWrapperList
- java.lang.Object
-
- 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
Constructors Constructor Description FolderIdWrapperList()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(Folder folder)Adds the specified folder.voidadd(FolderId folderId)Adds the specified folder id.protected voidaddRangeFolder(Iterable<Folder> folders)Adds the range.voidaddRangeFolderId(Iterable<FolderId> folderIds)Adds the range of folder ids.intgetCount()Gets the id count.AbstractFolderIdWrappergetFolderIdWrapperList(int i)Gets theAbstractFolderIdWrapperat the specified index.Iterator<AbstractFolderIdWrapper>iterator()StringtoString()voidvalidate(ExchangeVersion version)Validates list of folderIds against a specified request version.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
-
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 writerewsNamesapce- the ews namesapcexmlElementName- 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 theAbstractFolderIdWrapperat 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:
iteratorin interfaceIterable<AbstractFolderIdWrapper>
-
-