Class FolderIdCollection
- java.lang.Object
-
- microsoft.exchange.webservices.data.property.complex.ComplexProperty
-
- microsoft.exchange.webservices.data.property.complex.ComplexPropertyCollection<FolderId>
-
- microsoft.exchange.webservices.data.property.complex.FolderIdCollection
-
- All Implemented Interfaces:
Iterable<FolderId>,ICustomXmlUpdateSerializer,ISelfValidate,ComplexFunctionDelegate<EwsServiceXmlReader>,IComplexPropertyChangedDelegate<FolderId>
public final class FolderIdCollection extends ComplexPropertyCollection<FolderId>
Represents a collection of folder Ids.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedFolderIdCollection()Initializes a new instance of theFolderIdCollectionclass.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FolderIdadd(WellKnownFolderName folderName)Adds a well-known folder to the collection.voidadd(FolderId folderId)Adds a folder Id to the collection.voidclear()Clears the collection.protected FolderIdcreateComplexProperty(String xmlElementName)Creates the complex property.protected StringgetCollectionItemXmlElementName(FolderId complexProperty)Gets the name of the collection item XML element.booleanremove(WellKnownFolderName folderName)Removes the specified well-known folder from the collection.booleanremove(FolderId folderId)Removes the specified folder Id from the collection.voidremoveAt(int index)Removes the folder Id at the specified index.-
Methods inherited from class microsoft.exchange.webservices.data.property.complex.ComplexPropertyCollection
clearChangeLog, complexPropertyChanged, contains, getAddedItems, getCount, getItems, getModifiedItems, getPropertyAtIndex, getRemovedItems, indexOf, internalAdd, internalClear, internalRemove, internalRemoveAt, itemChanged, iterator, loadFromXml, loadFromXml, removeFromChangeLog, shouldWriteToXml, updateFromXml, writeDeleteUpdateToXml, writeElementsToXml, writeSetUpdateToXml, writeToXml
-
Methods inherited from class microsoft.exchange.webservices.data.property.complex.ComplexProperty
addOnChangeEvent, canSetFieldValue, changed, clearChangeEvents, func, getNamespace, internalValidate, readAttributesFromXml, readTextValueFromXml, removeChangeEvent, setNamespace, tryReadElementFromXml, tryReadElementFromXmlToPatch, updateFromXml, validate, writeAttributesToXml, writeToXml
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Constructor Detail
-
FolderIdCollection
protected FolderIdCollection()
Initializes a new instance of theFolderIdCollectionclass.
-
-
Method Detail
-
createComplexProperty
protected FolderId createComplexProperty(String xmlElementName)
Creates the complex property.- Specified by:
createComplexPropertyin classComplexPropertyCollection<FolderId>- Parameters:
xmlElementName- Name of the XML element.- Returns:
- Complex property instance.
-
add
public void add(FolderId folderId) throws Exception
Adds a folder Id to the collection.- Parameters:
folderId- The folder Id to add.- Throws:
Exception- the exception
-
getCollectionItemXmlElementName
protected String getCollectionItemXmlElementName(FolderId complexProperty)
Gets the name of the collection item XML element.- Specified by:
getCollectionItemXmlElementNamein classComplexPropertyCollection<FolderId>- Parameters:
complexProperty- accepts FolderId- Returns:
- XML element name.
-
add
public FolderId add(WellKnownFolderName folderName)
Adds a well-known folder to the collection.- Parameters:
folderName- the folder name- Returns:
- A FolderId encapsulating the specified Id.
-
clear
public void clear()
Clears the collection.
-
removeAt
public void removeAt(int index)
Removes the folder Id at the specified index.- Parameters:
index- The zero-based index of the folder Id to remove.
-
remove
public boolean remove(FolderId folderId) throws Exception
Removes the specified folder Id from the collection.- Parameters:
folderId- The folder Id to remove from the collection.- Returns:
- True if the folder id was successfully removed from the collection, false otherwise.
- Throws:
Exception- the exception
-
remove
public boolean remove(WellKnownFolderName folderName)
Removes the specified well-known folder from the collection.- Parameters:
folderName- The well-knwon folder to remove from the collection.- Returns:
- True if the well-known folder was successfully removed from the collection, false otherwise.
-
-