public class Mailbox extends ComplexProperty implements ISearchStringProvider
| Constructor and Description |
|---|
Mailbox()
Initializes a new instance of the Mailbox class.
|
Mailbox(String smtpAddress)
Initializes a new instance of the Mailbox class.
|
Mailbox(String address,
String routingType)
Initializes a new instance of the Mailbox class.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj)
Determines whether the specified Object is equal to the current Object.
|
String |
getAddress()
Gets the address.
|
static Mailbox |
getMailboxFromString(String smtpAddress)
Defines an implicit conversion between a string representing an SMTP
address and Mailbox.
|
String |
getRoutingType()
Gets the routing type of the address used to refer to the user
mailbox.
|
String |
getSearchString()
Get a string representation for using this instance in a search filter.
|
int |
hashCode()
Serves as a hash function for a particular type.
|
protected void |
internalValidate()
Validates this instance.
|
boolean |
isValid()
True if this instance is valid, false otherthise.
|
void |
setAddress(String address)
Sets the address.
|
void |
setRoutingType(String routingType)
Sets the routing type.
|
String |
toString()
Returns a String that represents the current Object.
|
boolean |
tryReadElementFromXml(EwsServiceXmlReader reader)
Tries to read element from XML.
|
void |
writeElementsToXml(EwsServiceXmlWriter writer)
Writes elements to XML.
|
addOnChangeEvent, canSetFieldValue, changed, clearChangeEvents, clearChangeLog, func, getNamespace, loadFromXml, loadFromXml, readAttributesFromXml, readTextValueFromXml, removeChangeEvent, setNamespace, tryReadElementFromXmlToPatch, updateFromXml, updateFromXml, validate, writeAttributesToXml, writeToXml, writeToXmlpublic Mailbox()
public Mailbox(String smtpAddress)
smtpAddress - the smtp addresspublic String getAddress()
public void setAddress(String address)
address - the new addresspublic boolean isValid()
public String getRoutingType()
public void setRoutingType(String routingType)
routingType - the new routing typepublic static Mailbox getMailboxFromString(String smtpAddress)
smtpAddress - the smtp addresspublic boolean tryReadElementFromXml(EwsServiceXmlReader reader) throws Exception
tryReadElementFromXml in class ComplexPropertyreader - the readerException - the exceptionpublic void writeElementsToXml(EwsServiceXmlWriter writer) throws XMLStreamException, ServiceXmlSerializationException
writeElementsToXml in class ComplexPropertywriter - the writerXMLStreamException - the XML stream exceptionServiceXmlSerializationException - the service xml serialization exceptionpublic String getSearchString()
getSearchString in interface ISearchStringProviderprotected void internalValidate() throws ServiceValidationException, Exception
internalValidate in class ComplexPropertyExceptionServiceValidationExceptionpublic boolean equals(Object obj)
public int hashCode()
Copyright © 2012–2015 Microsoft. All rights reserved.