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

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.NumberedRecurrenceRange
All Implemented Interfaces:
ISelfValidate, ComplexFunctionDelegate<EwsServiceXmlReader>

public final class NumberedRecurrenceRange
extends RecurrenceRange

The Class NumberedRecurrenceRange.


Constructor Summary
NumberedRecurrenceRange()
          Initializes a new instance.
NumberedRecurrenceRange(Date startDate, Integer numberOfOccurrences)
          Initializes a new instance.
 
Method Summary
 Integer getNumberOfOccurrences()
          Gets the number of occurrences.
 String getXmlElementName()
          Gets the name of the XML element.
 void setNumberOfOccurrences(Integer value)
          sets the number of occurrences.
 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

NumberedRecurrenceRange

public NumberedRecurrenceRange()
Initializes a new instance.


NumberedRecurrenceRange

public NumberedRecurrenceRange(Date startDate,
                               Integer numberOfOccurrences)
Initializes a new instance.

Parameters:
startDate - the start date
numberOfOccurrences - the number of occurrences
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

getNumberOfOccurrences

public Integer getNumberOfOccurrences()
Gets the number of occurrences.

Returns:
numberOfOccurrences

setNumberOfOccurrences

public void setNumberOfOccurrences(Integer value)
sets the number of occurrences.

Parameters:
value - the new number of occurrences


Copyright © 2012–2015 Microsoft. All rights reserved.