|
||||||||
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.Mailbox
public class Mailbox
Represents a mailbox reference.
Constructor Summary | |
---|---|
Mailbox()
Initializes a new instance of the Mailbox class. |
|
Mailbox(java.lang.String smtpAddress)
* Initializes a new instance of the Mailbox class. |
|
Mailbox(java.lang.String address,
java.lang.String routingType)
* Initializes a new instance of the Mailbox class. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
* Determines whether the specified Object is equal to the current Object. |
java.lang.String |
getAddress()
Gets the address. |
static Mailbox |
getMailboxFromString(java.lang.String smtpAddress)
* Defines an implicit conversion between a string representing an SMTP address and Mailbox. |
java.lang.String |
getRoutingType()
Gets the routing type of the address used to refer to the user mailbox. |
java.lang.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(java.lang.String address)
Sets the address. |
void |
setRoutingType(java.lang.String routingType)
Sets the routing type. |
java.lang.String |
toString()
Returns a String that represents the current Object. |
protected boolean |
tryReadElementFromXml(microsoft.exchange.webservices.data.EwsServiceXmlReader reader)
* Tries to 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, func, getNamespace, loadFromXml, loadFromXml, readAttributesFromXml, readTextValueFromXml, removeChangeEvent, setNamespace, tryReadElementFromXmlToPatch, updateFromXml, updateFromXml, validate, writeAttributesToXml, writeToXml, writeToXml |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Mailbox()
public Mailbox(java.lang.String smtpAddress)
smtpAddress
- the smtp addresspublic Mailbox(java.lang.String address, java.lang.String routingType)
address
- the addressroutingType
- the routing typeMethod Detail |
---|
public java.lang.String getAddress()
public void setAddress(java.lang.String address)
address
- the new addresspublic boolean isValid()
public java.lang.String getRoutingType()
public void setRoutingType(java.lang.String routingType)
routingType
- the new routing typepublic static Mailbox getMailboxFromString(java.lang.String smtpAddress)
smtpAddress
- the smtp address
protected boolean tryReadElementFromXml(microsoft.exchange.webservices.data.EwsServiceXmlReader reader) throws java.lang.Exception
tryReadElementFromXml
in class ComplexProperty
reader
- the reader
java.lang.Exception
- the exceptionprotected void writeElementsToXml(microsoft.exchange.webservices.data.EwsServiceXmlWriter writer) throws javax.xml.stream.XMLStreamException, ServiceXmlSerializationException
writeElementsToXml
in class ComplexProperty
writer
- the writer
javax.xml.stream.XMLStreamException
- the xML stream exception
ServiceXmlSerializationException
- the service xml serialization exceptionpublic java.lang.String getSearchString()
getSearchString
in interface ISearchStringProvider
protected void internalValidate() throws ServiceValidationException, java.lang.Exception
internalValidate
in class ComplexProperty
java.lang.Exception
ServiceValidationException
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- the obj
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |