|
|||||||||
| 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.ServiceId
microsoft.exchange.webservices.data.FolderId
public final class FolderId
Represents the Id of a folder.
| Constructor Summary | |
|---|---|
protected |
FolderId()
Initializes a new instance. |
|
FolderId(String uniqueId)
Initializes a new instance.Use this constructor to link this FolderId to an existing folder that you have the unique Id of. |
|
FolderId(WellKnownFolderName folderName)
Initializes a new instance.Use this constructor to link this FolderId to a well known folder (e.g. |
|
FolderId(WellKnownFolderName folderName,
Mailbox mailbox)
Initializes a new instance.Use this constructor to link this FolderId to a well known folder (e.g. |
| Method Summary | |
|---|---|
boolean |
equals(Object obj)
Determines whether the specified is equal to the current. |
static FolderId |
getFolderIdFromString(String uniqueId)
Defines an implicit conversion between string and FolderId. |
static FolderId |
getFolderIdFromWellKnownFolderName(WellKnownFolderName folderName)
Defines an implicit conversion between WellKnownFolderName and FolderId. |
WellKnownFolderName |
getFolderName()
Gets the name of the folder associated with the folder Id. |
protected boolean |
getIsValid()
True if this instance is valid, false otherwise. |
Mailbox |
getMailbox()
Gets the mailbox of the folder. |
protected String |
getXmlElementName()
Gets the name of the XML element. |
int |
hashCode()
Serves as a hash function for a particular type. |
String |
toString()
Returns a String that represents the current Object. |
protected void |
validate(ExchangeVersion version)
Validates FolderId against a specified request version. |
protected void |
writeAttributesToXml(microsoft.exchange.webservices.data.EwsServiceXmlWriter writer)
Writes attributes to XML. |
| Methods inherited from class microsoft.exchange.webservices.data.ServiceId |
|---|
assign, getChangeKey, getUniqueId, isValid, readAttributesFromXml, sameIdAndChangeKey, setChangeKey, setUniqueId, writeToXml |
| Methods inherited from class microsoft.exchange.webservices.data.ComplexProperty |
|---|
addOnChangeEvent, canSetFieldValue, changed, clearChangeEvents, clearChangeLog, getNamespace, internalValidate, loadFromXml, loadFromXml, readTextValueFromXml, removeChangeEvent, setNamespace, tryReadElementFromXml, validate, writeElementsToXml, writeToXml, writeToXml |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
protected FolderId()
public FolderId(String uniqueId)
throws Exception
uniqueId - the unique id
Exception - the exceptionpublic FolderId(WellKnownFolderName folderName)
folderName - the folder name
public FolderId(WellKnownFolderName folderName,
Mailbox mailbox)
folderName - the folder namemailbox - the mailbox| Method Detail |
|---|
protected String getXmlElementName()
getXmlElementName in class ServiceId
protected void writeAttributesToXml(microsoft.exchange.webservices.data.EwsServiceXmlWriter writer)
throws ServiceXmlSerializationException
writeAttributesToXml in class ServiceIdwriter - the writer
ServiceXmlSerializationException - the service xml serialization exception
protected void validate(ExchangeVersion version)
throws ServiceVersionException
version - the version
ServiceVersionException - the service version exceptionpublic WellKnownFolderName getFolderName()
public Mailbox getMailbox()
public static FolderId getFolderIdFromString(String uniqueId)
throws Exception
uniqueId - the unique id
Exception - the exceptionpublic static FolderId getFolderIdFromWellKnownFolderName(WellKnownFolderName folderName)
folderName - the folder name
protected boolean getIsValid()
public boolean equals(Object obj)
equals in class ServiceIdobj - the obj
public int hashCode()
hashCode in class ServiceIdpublic String toString()
toString in class ServiceId
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||