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

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

public abstract class RecurrenceRange
extends ComplexProperty

Represents recurrence range with start and end dates.


Constructor Summary
protected RecurrenceRange()
          Initializes a new instance.
protected RecurrenceRange(Date startDate)
          Initializes a new instance.
 
Method Summary
 void changed()
          Changes handler.
protected  Recurrence getRecurrence()
          Gets or sets the recurrence.
protected  Date getStartDate()
          Gets the start date.
abstract  String getXmlElementName()
          Gets the name of the XML element.
protected  void setRecurrence(Recurrence value)
          Sets the recurrence.
protected  void setStartDate(Date value)
          Sets the start date.
 void setupRecurrence(Recurrence recurrence)
          Setup the recurrence.
 boolean tryReadElementFromXml(EwsServiceXmlReader reader)
          Tries to read element from XML.
 void writeElementsToXml(EwsServiceXmlWriter writer)
          Writes elements to XML..
 
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

RecurrenceRange

protected RecurrenceRange()
Initializes a new instance.


RecurrenceRange

protected RecurrenceRange(Date startDate)
Initializes a new instance.

Parameters:
startDate - the start date
Method Detail

changed

public void changed()
Changes handler.

Overrides:
changed in class ComplexProperty

setupRecurrence

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

Parameters:
recurrence - the new up recurrence
Throws:
Exception - the exception

writeElementsToXml

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

Overrides:
writeElementsToXml in class ComplexProperty
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 ComplexProperty
Parameters:
reader - the reader
Returns:
True if element was read
Throws:
Exception - the exception

getXmlElementName

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

Returns:
recurrence

getRecurrence

protected Recurrence getRecurrence()
Gets or sets the recurrence.

Returns:
recurrence

setRecurrence

protected void setRecurrence(Recurrence value)
Sets the recurrence.

Parameters:
value - the new recurrence

getStartDate

protected Date getStartDate()
Gets the start date.

Returns:
startDate

setStartDate

protected void setStartDate(Date value)
Sets the start date.

Parameters:
value - the new start date


Copyright © 2012–2015 Microsoft. All rights reserved.