|
|||||||||
| 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.EmailAddress
public class EmailAddress
Represents an e-mail address.
| Field Summary | |
|---|---|
protected static String |
SmtpRoutingType
The Constant SmtpRoutingType. |
| Constructor Summary | |
|---|---|
|
EmailAddress()
* Initializes a new instance. |
protected |
EmailAddress(EmailAddress mailbox)
* Initializes a new instance from another EmailAddress instance. |
|
EmailAddress(String smtpAddress)
* Initializes a new instance. |
|
EmailAddress(String name,
String smtpAddress)
* Initializes a new instance. |
|
EmailAddress(String name,
String address,
String routingType)
* Initializes a new instance. |
protected |
EmailAddress(String name,
String address,
String routingType,
MailboxType mailboxType)
* Initializes a new instance. |
protected |
EmailAddress(String name,
String address,
String routingType,
MailboxType mailboxType,
ItemId id)
* Initializes a new instance. |
| Method Summary | |
|---|---|
String |
getAddress()
Gets the actual address associated with the e-mail address. |
static EmailAddress |
getEmailAddressFromString(String smtpAddress)
Defines an implicit conversion between a string representing an SMTP address and EmailAddress. |
ItemId |
getId()
* Gets the Id of the contact the e-mail address represents. |
MailboxType |
getMailboxType()
Gets the type of the e-mail address. |
String |
getName()
* Gets the name associated with the e-mail address. |
String |
getRoutingType()
* Gets the routing type associated with the e-mail address. |
String |
getSearchString()
Get a string representation for using this instance in a search filter. |
protected String |
getSmtpRoutingType()
* Gets the routing type. |
void |
setAddress(String address)
Sets the actual address associated with the e-mail address. |
void |
setId(ItemId id)
* Sets the Id of the contact the e-mail address represents. |
void |
setMailboxType(MailboxType mailboxType)
* Sets the type of the e-mail address. |
void |
setName(String name)
* Sets the name associated with the e-mail address. |
void |
setRoutingType(String routingType)
Sets the routing type associated with the e-mail address. |
String |
toString()
Returns string that represents the current instance. |
protected boolean |
tryReadElementFromXml(microsoft.exchange.webservices.data.EwsServiceXmlReader reader)
Try read element from xml. |
protected void |
writeElementsToXml(microsoft.exchange.webservices.data.EwsServiceXmlWriter writer)
* Writes elements to XML. |
| Methods inherited from class microsoft.exchange.webservices.data.ComplexProperty |
|---|
addOnChangeEvent, canSetFieldValue, changed, clearChangeEvents, clearChangeLog, getNamespace, internalValidate, loadFromXml, loadFromXml, readAttributesFromXml, readTextValueFromXml, removeChangeEvent, setNamespace, validate, writeAttributesToXml, writeToXml, writeToXml |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected static final String SmtpRoutingType
| Constructor Detail |
|---|
public EmailAddress()
public EmailAddress(String smtpAddress)
smtpAddress - The SMTP address used to initialize the EmailAddress.
public EmailAddress(String name,
String smtpAddress)
name - The name used to initialize the EmailAddress.smtpAddress - The SMTP address used to initialize the EmailAddress.
public EmailAddress(String name,
String address,
String routingType)
name - The name used to initialize the EmailAddress.address - The address used to initialize the EmailAddress.routingType - The routing type used to initialize the EmailAddress.
protected EmailAddress(String name,
String address,
String routingType,
MailboxType mailboxType)
name - The name used to initialize the EmailAddress.address - The address used to initialize the EmailAddress.routingType - The routing type used to initialize the EmailAddress.mailboxType - Mailbox type of the participant.
protected EmailAddress(String name,
String address,
String routingType,
MailboxType mailboxType,
ItemId id)
name - The name used to initialize the EmailAddress.address - The address used to initialize the EmailAddress.routingType - The routing type used to initialize the EmailAddress.mailboxType - Mailbox type of the participant.id - ItemId of a Contact or PDL.
protected EmailAddress(EmailAddress mailbox)
throws Exception
mailbox - EMailAddress instance to copy.
Exception - the exception| Method Detail |
|---|
public String getName()
public void setName(String name)
name - the new namepublic String getAddress()
public void setAddress(String address)
address - address associated with the e-mail address.public String getRoutingType()
public void setRoutingType(String routingType)
routingType - routing type associated with the e-mail address.public MailboxType getMailboxType()
public void setMailboxType(MailboxType mailboxType)
mailboxType - the new mailbox typepublic ItemId getId()
public void setId(ItemId id)
id - the new idpublic static EmailAddress getEmailAddressFromString(String smtpAddress)
smtpAddress - The SMTP address to convert to EmailAddress.
protected boolean tryReadElementFromXml(microsoft.exchange.webservices.data.EwsServiceXmlReader reader)
throws Exception
tryReadElementFromXml in class ComplexPropertyreader - accepts EwsServiceXmlReader
Exception - throws Exception
protected void writeElementsToXml(microsoft.exchange.webservices.data.EwsServiceXmlWriter writer)
throws Exception
writeElementsToXml in class ComplexPropertywriter - The writer.
Exception - the exceptionpublic String getSearchString()
getSearchString in interface ISearchStringProviderpublic String toString()
toString in class Objectprotected String getSmtpRoutingType()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||