microsoft.exchange.webservices.data.property.complex.recurrence.range
Class EndDateRecurrenceRange

java.lang.Object
  extended by microsoft.exchange.webservices.data.property.complex.ComplexProperty
      extended by microsoft.exchange.webservices.data.property.complex.recurrence.range.RecurrenceRange
          extended by microsoft.exchange.webservices.data.property.complex.recurrence.range.EndDateRecurrenceRange
All Implemented Interfaces:
ISelfValidate, ComplexFunctionDelegate<EwsServiceXmlReader>

public final class EndDateRecurrenceRange
extends RecurrenceRange

Represents recurrent range with an end date.


Constructor Summary
EndDateRecurrenceRange()
          Initializes a new instance.
EndDateRecurrenceRange(Date startDate, Date endDate)
          Initializes a new instance.
 
Method Summary
 Date getEndDate()
          Gets the end date.
 String getXmlElementName()
          Gets the name of the XML element.
 void setEndDate(Date value)
          sets the end date.
 void setupRecurrence(Recurrence recurrence)
          Setups the recurrence.
 boolean tryReadElementFromXml(EwsServiceXmlReader reader)
          Tries to read element from XML.
 void writeElementsToXml(EwsServiceXmlWriter writer)
          Writes the elements to XML.
 
Methods inherited from class microsoft.exchange.webservices.data.property.complex.recurrence.range.RecurrenceRange
changed, getRecurrence, getStartDate, setRecurrence, setStartDate
 
Methods inherited from class microsoft.exchange.webservices.data.property.complex.ComplexProperty
addOnChangeEvent, canSetFieldValue, clearChangeEvents, clearChangeLog, func, getNamespace, internalValidate, loadFromXml, loadFromXml, readAttributesFromXml, readTextValueFromXml, removeChangeEvent, setNamespace, tryReadElementFromXmlToPatch, updateFromXml, updateFromXml, validate, writeAttributesToXml, writeToXml, writeToXml
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EndDateRecurrenceRange

public EndDateRecurrenceRange()
Initializes a new instance.


EndDateRecurrenceRange

public EndDateRecurrenceRange(Date startDate,
                              Date endDate)
Initializes a new instance.

Parameters:
startDate - the start date
endDate - the end date
Method Detail

getXmlElementName

public String getXmlElementName()
Gets the name of the XML element.

Specified by:
getXmlElementName in class RecurrenceRange
Returns:
The name of the XML element

setupRecurrence

public void setupRecurrence(Recurrence recurrence)
                     throws Exception
Setups the recurrence.

Overrides:
setupRecurrence in class RecurrenceRange
Parameters:
recurrence - the new up recurrence
Throws:
Exception - the exception

writeElementsToXml

public void writeElementsToXml(EwsServiceXmlWriter writer)
                        throws XMLStreamException,
                               ServiceXmlSerializationException
Writes the elements to XML.

Overrides:
writeElementsToXml in class RecurrenceRange
Parameters:
writer - the writer
Throws:
XMLStreamException - the XML stream exception
ServiceXmlSerializationException - the service xml serialization exception

tryReadElementFromXml

public boolean tryReadElementFromXml(EwsServiceXmlReader reader)
                              throws Exception
Tries to read element from XML.

Overrides:
tryReadElementFromXml in class RecurrenceRange
Parameters:
reader - the reader
Returns:
True if element was read
Throws:
Exception - the exception

getEndDate

public Date getEndDate()
Gets the end date.

Returns:
endDate

setEndDate

public void setEndDate(Date value)
sets the end date.

Parameters:
value - the new end date


Copyright © 2012–2015 Microsoft. All rights reserved.