public class AlternateId extends AlternateIdBase
Modifier and Type | Field and Description |
---|---|
static String |
SchemaTypeName
Name of schema type used for AlternateId.
|
Constructor and Description |
---|
AlternateId()
Initializes a new instance of the class.
|
AlternateId(IdFormat format,
String id,
String mailbox)
Initializes a new instance of the class.
|
AlternateId(IdFormat format,
String id,
String mailbox,
boolean isArchive)
Initializes a new instance of the AlternateId class.
|
Modifier and Type | Method and Description |
---|---|
boolean |
getIsArchive()
Gets the type (primary or archive) mailbox to which the Id belongs.
|
String |
getMailbox()
Gets the mailbox to which the Id belongs.
|
String |
getUniqueId()
Gets the Id.
|
protected String |
getXmlElementName()
Gets the name of the XML element.
|
protected void |
internalValidate()
Validate this instance.
|
void |
loadAttributesFromXml(EwsServiceXmlReader reader)
Gets the name of the XML element.
|
void |
setIsArchive(boolean isArchive)
Sets the type (primary or archive) mailbox to which the Id belongs.
|
void |
setMailbox(String mailbox)
Sets the mailbox.
|
void |
setUniqueId(String id)
Sets the unique id.
|
protected void |
writeAttributesToXml(EwsServiceXmlWriter writer)
Gets the name of the XML element.
|
getFormat, setFormat, validate, writeToXml
public static final String SchemaTypeName
public AlternateId()
public AlternateId(IdFormat format, String id, String mailbox)
format
- the formatid
- the idmailbox
- the mailboxpublic AlternateId(IdFormat format, String id, String mailbox, boolean isArchive)
format
- The format the Id is expressed in.id
- The Id.mailbox
- The SMTP address of the mailbox that the Id belongs to.isArchive
- Primary (false) or archive (true) mailbox.public String getUniqueId()
public void setUniqueId(String id)
id
- the new unique idpublic String getMailbox()
public void setMailbox(String mailbox)
mailbox
- the new mailboxpublic boolean getIsArchive()
public void setIsArchive(boolean isArchive)
isArchive
- the new isArchiveprotected String getXmlElementName()
getXmlElementName
in class AlternateIdBase
protected void writeAttributesToXml(EwsServiceXmlWriter writer) throws ServiceXmlSerializationException
writeAttributesToXml
in class AlternateIdBase
writer
- the writerServiceXmlSerializationException
- the service xml serialization exceptionpublic void loadAttributesFromXml(EwsServiceXmlReader reader) throws Exception
loadAttributesFromXml
in class AlternateIdBase
reader
- the readerException//
- the exceptionException
- the exceptionprotected void internalValidate() throws Exception
internalValidate
in class AlternateIdBase
Exception
Copyright © 2012–2015 Microsoft. All rights reserved.