|
||||||||
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(java.lang.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(java.lang.Object obj)
Determines whether the specified is equal to the current. |
static FolderId |
getFolderIdFromString(java.lang.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 java.lang.String |
getXmlElementName()
Gets the name of the XML element. |
int |
hashCode()
Serves as a hash function for a particular type. |
java.lang.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, func, getNamespace, internalValidate, loadFromXml, loadFromXml, readTextValueFromXml, removeChangeEvent, setNamespace, tryReadElementFromXml, tryReadElementFromXmlToPatch, updateFromXml, updateFromXml, 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(java.lang.String uniqueId) throws java.lang.Exception
uniqueId
- the unique id
java.lang.Exception
- the exceptionpublic FolderId(WellKnownFolderName folderName)
folderName
- the folder namepublic FolderId(WellKnownFolderName folderName, Mailbox mailbox)
folderName
- the folder namemailbox
- the mailboxMethod Detail |
---|
protected java.lang.String getXmlElementName()
getXmlElementName
in class ServiceId
protected void writeAttributesToXml(microsoft.exchange.webservices.data.EwsServiceXmlWriter writer) throws ServiceXmlSerializationException
writeAttributesToXml
in class ServiceId
writer
- the writer
ServiceXmlSerializationException
- the service xml serialization exceptionprotected void validate(ExchangeVersion version) throws ServiceVersionException
version
- the version
ServiceVersionException
- the service version exceptionpublic WellKnownFolderName getFolderName()
public Mailbox getMailbox()
public static FolderId getFolderIdFromString(java.lang.String uniqueId) throws java.lang.Exception
uniqueId
- the unique id
java.lang.Exception
- the exceptionpublic static FolderId getFolderIdFromWellKnownFolderName(WellKnownFolderName folderName)
folderName
- the folder name
protected boolean getIsValid()
public boolean equals(java.lang.Object obj)
equals
in class ServiceId
obj
- the obj
public int hashCode()
hashCode
in class ServiceId
public java.lang.String toString()
toString
in class ServiceId
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |