public final class EmailAddressCollection extends ComplexPropertyCollection<EmailAddress>
| Modifier | Constructor and Description |
|---|---|
|
EmailAddressCollection()
Initializes a new instance.
|
protected |
EmailAddressCollection(String collectionItemXmlElementName)
Initializes a new instance of the EmailAddressCollection class.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(EmailAddress emailAddress)
Adds an e-mail address to the collection.
|
EmailAddress |
add(String smtpAddress)
Adds an e-mail address to the collection.
|
EmailAddress |
add(String name,
String smtpAddress)
Adds an e-mail address to the collection.
|
void |
addEmailRange(Iterator<EmailAddress> emailAddresses)
Adds multiple e-mail addresses to the collection.
|
void |
addSmtpAddressRange(Iterator<String> smtpAddresses)
Adds multiple e-mail addresses to the collection.
|
void |
clear()
Clears the collection.
|
protected EmailAddress |
createComplexProperty(String xmlElementName)
Creates an EmailAddress object from an XML element name.
|
protected String |
getCollectionItemXmlElementName(EmailAddress complexProperty)
Retrieves the XML element name corresponding to the provided EmailAddress
object.
|
boolean |
remove(EmailAddress emailAddress)
Removes an e-mail address from the collection.
|
void |
removeAt(int index)
Removes an e-mail address from the collection.
|
boolean |
shouldWriteToXml()
Determine whether we should write collection to XML or not.
|
clearChangeLog, complexPropertyChanged, contains, getAddedItems, getCount, getItems, getModifiedItems, getPropertyAtIndex, getRemovedItems, indexOf, internalAdd, internalClear, internalRemove, internalRemoveAt, itemChanged, iterator, loadFromXml, loadFromXml, removeFromChangeLog, updateFromXml, writeDeleteUpdateToXml, writeElementsToXml, writeSetUpdateToXml, writeToXmladdOnChangeEvent, canSetFieldValue, changed, clearChangeEvents, func, getNamespace, internalValidate, readAttributesFromXml, readTextValueFromXml, removeChangeEvent, setNamespace, tryReadElementFromXml, tryReadElementFromXmlToPatch, updateFromXml, validate, writeAttributesToXml, writeToXmlclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic EmailAddressCollection()
protected EmailAddressCollection(String collectionItemXmlElementName)
collectionItemXmlElementName - Name of the collection item XML element.public void add(EmailAddress emailAddress)
emailAddress - The e-mail address to add.public void addEmailRange(Iterator<EmailAddress> emailAddresses)
emailAddresses - The e-mail addresses to add.public EmailAddress add(String smtpAddress)
smtpAddress - The SMTP address used to initialize the e-mail address.public void addSmtpAddressRange(Iterator<String> smtpAddresses)
smtpAddresses - The SMTP addresses used to initialize the e-mail addresses.public EmailAddress add(String name, String smtpAddress)
name - The name used to initialize the e-mail address.smtpAddress - The SMTP address used to initialize the e-mail address.public void clear()
public void removeAt(int index)
index - The index of the e-mail address to remove.public boolean remove(EmailAddress emailAddress) throws Exception
emailAddress - The e-mail address to remove.Exception - the exceptionprotected EmailAddress createComplexProperty(String xmlElementName)
createComplexProperty in class ComplexPropertyCollection<EmailAddress>xmlElementName - The XML element name from which to create the e-mail address.protected String getCollectionItemXmlElementName(EmailAddress complexProperty)
getCollectionItemXmlElementName in class ComplexPropertyCollection<EmailAddress>complexProperty - The EmailAddress object from which to determine the XML
element name.public boolean shouldWriteToXml()
shouldWriteToXml in class ComplexPropertyCollection<EmailAddress>Copyright © 2012–2015 Microsoft. All rights reserved.