microsoft.exchange.webservices.data
Class AppointmentOccurrenceId

java.lang.Object
  extended by microsoft.exchange.webservices.data.ComplexProperty
      extended by microsoft.exchange.webservices.data.ServiceId
          extended by microsoft.exchange.webservices.data.ItemId
              extended by microsoft.exchange.webservices.data.AppointmentOccurrenceId

public final class AppointmentOccurrenceId
extends ItemId

Represents the Id of an occurrence of a recurring appointment.


Constructor Summary
AppointmentOccurrenceId(java.lang.String recurringMasterUniqueId, int occurrenceIndex)
          Initializes a new instance.
 
Method Summary
 int getOccurrenceIndex()
          Gets the index of the occurrence.
protected  java.lang.String getXmlElementName()
          Gets the name of the XML element.
 void setOccurrenceIndex(int occurrenceIndex)
          Sets the occurrence index.
protected  void writeAttributesToXml(microsoft.exchange.webservices.data.EwsServiceXmlWriter writer)
          Gets the name of the XML element.
 
Methods inherited from class microsoft.exchange.webservices.data.ItemId
getItemIdFromString
 
Methods inherited from class microsoft.exchange.webservices.data.ServiceId
assign, equals, getChangeKey, getUniqueId, hashCode, isValid, readAttributesFromXml, sameIdAndChangeKey, setChangeKey, setUniqueId, toString, 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

AppointmentOccurrenceId

public AppointmentOccurrenceId(java.lang.String recurringMasterUniqueId,
                               int occurrenceIndex)
                        throws java.lang.Exception
Initializes a new instance.

Parameters:
recurringMasterUniqueId - the recurring master unique id
occurrenceIndex - the occurrence index
Throws:
java.lang.Exception - the exception
Method Detail

getOccurrenceIndex

public int getOccurrenceIndex()
Gets the index of the occurrence. Note that the occurrence index starts at one not zero.

Returns:
the occurrence index

setOccurrenceIndex

public void setOccurrenceIndex(int occurrenceIndex)
Sets the occurrence index.

Parameters:
occurrenceIndex - the new occurrence index

getXmlElementName

protected java.lang.String getXmlElementName()
Gets the name of the XML element.

Overrides:
getXmlElementName in class ItemId
Returns:
XML element name

writeAttributesToXml

protected void writeAttributesToXml(microsoft.exchange.webservices.data.EwsServiceXmlWriter writer)
                             throws ServiceXmlSerializationException
Gets the name of the XML element.

Overrides:
writeAttributesToXml in class ServiceId
Parameters:
writer - the writer
Throws:
ServiceXmlSerializationException - the service xml serialization exception