Class AttendeeCollection
- java.lang.Object
-
- microsoft.exchange.webservices.data.property.complex.ComplexProperty
-
- microsoft.exchange.webservices.data.property.complex.ComplexPropertyCollection<Attendee>
-
- microsoft.exchange.webservices.data.property.complex.AttendeeCollection
-
- All Implemented Interfaces:
Iterable<Attendee>,ICustomXmlUpdateSerializer,ISelfValidate,ComplexFunctionDelegate<EwsServiceXmlReader>,IComplexPropertyChangedDelegate<Attendee>
public final class AttendeeCollection extends ComplexPropertyCollection<Attendee>
Represents a collection of attendees.
-
-
Constructor Summary
Constructors Constructor Description AttendeeCollection()Initializes a new instance of the AttendeeCollection class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Attendeeadd(String smtpAddress)Adds an attendee to the collection.Attendeeadd(String name, String smtpAddress)Adds an attendee to the collection.voidadd(Attendee attendee)Adds an attendee to the collection.voidclear()Clears the collection.protected AttendeecreateComplexProperty(String xmlElementName)Creates an Attendee object from an XML element name.protected StringgetCollectionItemXmlElementName(Attendee attendee)Retrieves the XML element name corresponding to the provided Attendee object.booleanremove(Attendee attendee)Removes an attendee from the collection.voidremoveAt(int index)Removes an attendee from the collection.-
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
-
AttendeeCollection
public AttendeeCollection()
Initializes a new instance of the AttendeeCollection class.
-
-
Method Detail
-
add
public void add(Attendee attendee)
Adds an attendee to the collection.- Parameters:
attendee- the attendee
-
add
public Attendee add(String smtpAddress) throws Exception
Adds an attendee to the collection.- Parameters:
smtpAddress- the smtp address- Returns:
- An Attendee instance initialized with the provided SMTP address.
- Throws:
Exception- the exception
-
add
public Attendee add(String name, String smtpAddress)
Adds an attendee to the collection.- Parameters:
name- the namesmtpAddress- the smtp address- Returns:
- An Attendee instance initialized with the provided name and SMTP address.
-
clear
public void clear()
Clears the collection.
-
removeAt
public void removeAt(int index)
Removes an attendee from the collection.- Parameters:
index- the index
-
remove
public boolean remove(Attendee attendee) throws Exception
Removes an attendee from the collection.- Parameters:
attendee- the attendee- Returns:
- True if the attendee was successfully removed from the collection, false otherwise.
- Throws:
Exception- the exception
-
createComplexProperty
protected Attendee createComplexProperty(String xmlElementName)
Creates an Attendee object from an XML element name.- Specified by:
createComplexPropertyin classComplexPropertyCollection<Attendee>- Parameters:
xmlElementName- the xml element name- Returns:
- An Attendee object.
-
getCollectionItemXmlElementName
protected String getCollectionItemXmlElementName(Attendee attendee)
Retrieves the XML element name corresponding to the provided Attendee object.- Specified by:
getCollectionItemXmlElementNamein classComplexPropertyCollection<Attendee>- Parameters:
attendee- the attendee- Returns:
- The XML element name corresponding to the provided Attendee object.
-
-