Class ServiceId
- java.lang.Object
-
- microsoft.exchange.webservices.data.property.complex.ComplexProperty
-
- microsoft.exchange.webservices.data.property.complex.ServiceId
-
- All Implemented Interfaces:
ISelfValidate,ComplexFunctionDelegate<EwsServiceXmlReader>
- Direct Known Subclasses:
ConversationId,FolderId,ItemId
public abstract class ServiceId extends ComplexProperty
Represents the Id of an Exchange object.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidassign(ServiceId source)Assigns from existing id.booleanequals(Object obj)Determines whether the specified instance is equal to the current instance.StringgetChangeKey()Gets the change key associated with the Exchange object.StringgetUniqueId()Gets the unique Id of the Exchange object.abstract StringgetXmlElementName()Gets the name of the XML element.inthashCode()Serves as a hash function for a particular type.booleanisValid()True if this instance is valid, false otherthise.voidreadAttributesFromXml(EwsServiceXmlReader reader)Read attribute from XML.booleansameIdAndChangeKey(ServiceId other)Determines whether two ServiceId instances are equal (including ChangeKeys).voidsetChangeKey(String changeKey)Sets the change key associated with the Exchange object.voidsetUniqueId(String uniqueId)Sets the unique Id of the Exchange object.StringtoString()Returns a string that represents the current instance.voidwriteAttributesToXml(EwsServiceXmlWriter writer)Writes attribute to XML.voidwriteToXml(EwsServiceXmlWriter writer)Writes to XML.-
Methods inherited from class microsoft.exchange.webservices.data.property.complex.ComplexProperty
addOnChangeEvent, canSetFieldValue, changed, clearChangeEvents, clearChangeLog, func, getNamespace, internalValidate, loadFromXml, loadFromXml, readTextValueFromXml, removeChangeEvent, setNamespace, tryReadElementFromXml, tryReadElementFromXmlToPatch, updateFromXml, updateFromXml, validate, writeElementsToXml, writeToXml, writeToXml
-
-
-
-
Method Detail
-
readAttributesFromXml
public void readAttributesFromXml(EwsServiceXmlReader reader) throws Exception
Read attribute from XML.- Overrides:
readAttributesFromXmlin classComplexProperty- Parameters:
reader- The reader.- Throws:
Exception- the exception
-
writeAttributesToXml
public void writeAttributesToXml(EwsServiceXmlWriter writer) throws ServiceXmlSerializationException
Writes attribute to XML.- Overrides:
writeAttributesToXmlin classComplexProperty- Parameters:
writer- The writer.- Throws:
ServiceXmlSerializationException- the service xml serialization exception
-
getXmlElementName
public abstract String getXmlElementName()
Gets the name of the XML element.- Returns:
- XML element name.
-
writeToXml
public void writeToXml(EwsServiceXmlWriter writer) throws Exception
Writes to XML.- Parameters:
writer- The writer.- Throws:
Exception- the exception
-
assign
public void assign(ServiceId source)
Assigns from existing id.- Parameters:
source- The source.
-
isValid
public boolean isValid()
True if this instance is valid, false otherthise.- Returns:
- true if this instance is valid; otherwise,false
-
getUniqueId
public String getUniqueId()
Gets the unique Id of the Exchange object.- Returns:
- unique Id of the Exchange object.
-
setUniqueId
public void setUniqueId(String uniqueId)
Sets the unique Id of the Exchange object.- Parameters:
uniqueId- unique Id of the Exchange object.
-
getChangeKey
public String getChangeKey()
Gets the change key associated with the Exchange object. The change key represents the version of the associated item or folder.- Returns:
- change key associated with the Exchange object.
-
setChangeKey
public void setChangeKey(String changeKey)
Sets the change key associated with the Exchange object. The change key represents the version of the associated item or folder.- Parameters:
changeKey- change key associated with the Exchange object.
-
sameIdAndChangeKey
public boolean sameIdAndChangeKey(ServiceId other)
Determines whether two ServiceId instances are equal (including ChangeKeys).- Parameters:
other- The ServiceId to compare with the current ServiceId.- Returns:
- true if equal otherwise false.
-
equals
public boolean equals(Object obj)
Determines whether the specified instance is equal to the current instance. We do not consider the ChangeKey for ServiceId.Equals.
-
hashCode
public int hashCode()
Serves as a hash function for a particular type. We do not consider the change key in the hash code computation.
-
-