Class AlternateId
- java.lang.Object
-
- microsoft.exchange.webservices.data.misc.id.AlternateIdBase
-
- microsoft.exchange.webservices.data.misc.id.AlternateId
-
- All Implemented Interfaces:
ISelfValidate
public class AlternateId extends AlternateIdBase
Represents an Id expressed in a specific format.
-
-
Field Summary
Fields Modifier and Type Field Description static StringSchemaTypeNameName of schema type used for AlternateId.
-
Constructor Summary
Constructors Constructor 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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleangetIsArchive()Gets the type (primary or archive) mailbox to which the Id belongs.StringgetMailbox()Gets the mailbox to which the Id belongs.StringgetUniqueId()Gets the Id.protected StringgetXmlElementName()Gets the name of the XML element.protected voidinternalValidate()Validate this instance.voidloadAttributesFromXml(EwsServiceXmlReader reader)Gets the name of the XML element.voidsetIsArchive(boolean isArchive)Sets the type (primary or archive) mailbox to which the Id belongs.voidsetMailbox(String mailbox)Sets the mailbox.voidsetUniqueId(String id)Sets the unique id.protected voidwriteAttributesToXml(EwsServiceXmlWriter writer)Gets the name of the XML element.-
Methods inherited from class microsoft.exchange.webservices.data.misc.id.AlternateIdBase
getFormat, setFormat, validate, writeToXml
-
-
-
-
Field Detail
-
SchemaTypeName
public static final String SchemaTypeName
Name of schema type used for AlternateId.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
AlternateId
public AlternateId()
Initializes a new instance of the class.
-
AlternateId
public AlternateId(IdFormat format, String id, String mailbox)
Initializes a new instance of the class.- Parameters:
format- the formatid- the idmailbox- the mailbox
-
AlternateId
public AlternateId(IdFormat format, String id, String mailbox, boolean isArchive)
Initializes a new instance of the AlternateId class.- Parameters:
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.
-
-
Method Detail
-
getUniqueId
public String getUniqueId()
Gets the Id.- Returns:
- the unique id
-
setUniqueId
public void setUniqueId(String id)
Sets the unique id.- Parameters:
id- the new unique id
-
getMailbox
public String getMailbox()
Gets the mailbox to which the Id belongs.- Returns:
- the mailbox
-
setMailbox
public void setMailbox(String mailbox)
Sets the mailbox.- Parameters:
mailbox- the new mailbox
-
getIsArchive
public boolean getIsArchive()
Gets the type (primary or archive) mailbox to which the Id belongs.
-
setIsArchive
public void setIsArchive(boolean isArchive)
Sets the type (primary or archive) mailbox to which the Id belongs.- Parameters:
isArchive- the new isArchive
-
getXmlElementName
protected String getXmlElementName()
Gets the name of the XML element.- Specified by:
getXmlElementNamein classAlternateIdBase- Returns:
- XML element name.
-
writeAttributesToXml
protected void writeAttributesToXml(EwsServiceXmlWriter writer) throws ServiceXmlSerializationException
Gets the name of the XML element.- Overrides:
writeAttributesToXmlin classAlternateIdBase- Parameters:
writer- the writer- Throws:
ServiceXmlSerializationException- the service xml serialization exception
-
loadAttributesFromXml
public void loadAttributesFromXml(EwsServiceXmlReader reader) throws Exception
Gets the name of the XML element.- Overrides:
loadAttributesFromXmlin classAlternateIdBase- Parameters:
reader- the reader- Throws:
Exception- the exception
-
internalValidate
protected void internalValidate() throws Exception
Validate this instance.- Overrides:
internalValidatein classAlternateIdBase- Throws:
Exception
-
-