|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectmicrosoft.exchange.webservices.data.ComplexProperty
microsoft.exchange.webservices.data.ComplexPropertyCollection<EmailAddress>
microsoft.exchange.webservices.data.EmailAddressCollection
public final class EmailAddressCollection
Represents a collection of e-mail addresses.
| Constructor Summary | |
|---|---|
protected |
EmailAddressCollection()
* Initializes a new instance. |
protected |
EmailAddressCollection(String collectionItemXmlElementName)
Initializes a new instance of the EmailAddressCollection class. |
| Method Summary | |
|---|---|
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. |
protected boolean |
shouldWriteToXml()
Determine whether we should write collection to XML or not. |
| Methods inherited from class microsoft.exchange.webservices.data.ComplexPropertyCollection |
|---|
clearChangeLog, complexPropertyChanged, contains, getAddedItems, getCount, getItems, getModifiedItems, getPropertyAtIndex, getRemovedItems, indexOf, internalAdd, internalClear, internalRemove, internalRemoveAt, itemChanged, iterator, loadFromXml, loadFromXml, removeFromChangeLog, writeDeleteUpdateToXml, writeElementsToXml, writeSetUpdateToXml, writeToXml |
| Methods inherited from class microsoft.exchange.webservices.data.ComplexProperty |
|---|
addOnChangeEvent, canSetFieldValue, changed, clearChangeEvents, getNamespace, internalValidate, readAttributesFromXml, readTextValueFromXml, removeChangeEvent, setNamespace, tryReadElementFromXml, validate, writeAttributesToXml, writeToXml |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected EmailAddressCollection()
protected EmailAddressCollection(String collectionItemXmlElementName)
collectionItemXmlElementName - Name of the collection item XML element.| Method Detail |
|---|
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.
protected boolean shouldWriteToXml()
shouldWriteToXml in class ComplexPropertyCollection<EmailAddress>
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||