|
||||||||
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(java.lang.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(java.lang.String smtpAddress)
Adds an e-mail address to the collection. |
EmailAddress |
add(java.lang.String name,
java.lang.String smtpAddress)
Adds an e-mail address to the collection. |
void |
addEmailRange(java.util.Iterator<EmailAddress> emailAddresses)
Adds multiple e-mail addresses to the collection. |
void |
addSmtpAddressRange(java.util.Iterator<java.lang.String> smtpAddresses)
Adds multiple e-mail addresses to the collection. |
void |
clear()
Clears the collection. |
protected EmailAddress |
createComplexProperty(java.lang.String xmlElementName)
Creates an EmailAddress object from an XML element name. |
protected java.lang.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, updateFromXml, writeDeleteUpdateToXml, writeElementsToXml, writeSetUpdateToXml, writeToXml |
Methods inherited from class microsoft.exchange.webservices.data.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 |
Constructor Detail |
---|
protected EmailAddressCollection()
protected EmailAddressCollection(java.lang.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(java.util.Iterator<EmailAddress> emailAddresses)
emailAddresses
- The e-mail addresses to add.public EmailAddress add(java.lang.String smtpAddress)
smtpAddress
- The SMTP address used to initialize the e-mail address.
public void addSmtpAddressRange(java.util.Iterator<java.lang.String> smtpAddresses)
smtpAddresses
- The SMTP addresses used to initialize the e-mail addresses.public EmailAddress add(java.lang.String name, java.lang.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 java.lang.Exception
emailAddress
- The e-mail address to remove.
java.lang.Exception
- the exceptionprotected EmailAddress createComplexProperty(java.lang.String xmlElementName)
createComplexProperty
in class ComplexPropertyCollection<EmailAddress>
xmlElementName
- The XML element name from which to create the e-mail address.
protected java.lang.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 |