microsoft.exchange.webservices.data.property.complex.recurrence.pattern
Class Recurrence.IntervalPattern

java.lang.Object
  extended by microsoft.exchange.webservices.data.property.complex.ComplexProperty
      extended by microsoft.exchange.webservices.data.property.complex.recurrence.pattern.Recurrence
          extended by microsoft.exchange.webservices.data.property.complex.recurrence.pattern.Recurrence.IntervalPattern
All Implemented Interfaces:
ISelfValidate, ComplexFunctionDelegate<EwsServiceXmlReader>
Direct Known Subclasses:
Recurrence.DailyPattern, Recurrence.DailyRegenerationPattern, Recurrence.MonthlyPattern, Recurrence.MonthlyRegenerationPattern, Recurrence.RelativeMonthlyPattern, Recurrence.WeeklyPattern, Recurrence.WeeklyRegenerationPattern, Recurrence.YearlyRegenerationPattern
Enclosing class:
Recurrence

public abstract static class Recurrence.IntervalPattern
extends Recurrence

Represents a recurrence pattern where each occurrence happens at a specific interval after the previous one. [EditorBrowsable(EditorBrowsableState.Never)]


Nested Class Summary
 
Nested classes/interfaces inherited from class microsoft.exchange.webservices.data.property.complex.recurrence.pattern.Recurrence
Recurrence.DailyPattern, Recurrence.DailyRegenerationPattern, Recurrence.IntervalPattern, Recurrence.MonthlyPattern, Recurrence.MonthlyRegenerationPattern, Recurrence.RelativeMonthlyPattern, Recurrence.RelativeYearlyPattern, Recurrence.WeeklyPattern, Recurrence.WeeklyRegenerationPattern, Recurrence.YearlyPattern, Recurrence.YearlyRegenerationPattern
 
Constructor Summary
Recurrence.IntervalPattern()
          Initializes a new instance of the IntervalPattern class.
Recurrence.IntervalPattern(Date startDate, int interval)
          Initializes a new instance of the IntervalPattern class.
 
Method Summary
 int getInterval()
          Gets the interval between occurrences.
 void internalWritePropertiesToXml(EwsServiceXmlWriter writer)
          Write property to XML.
 void setInterval(int value)
          Sets the interval.
 boolean tryReadElementFromXml(EwsServiceXmlReader reader)
          Tries to read element from XML.
 
Methods inherited from class microsoft.exchange.webservices.data.property.complex.recurrence.pattern.Recurrence
getEndDate, getFieldValueOrThrowIfNull, getNumberOfOccurrences, getStartDate, getXmlElementName, hasEnd, internalValidate, isRegenerationPattern, neverEnds, setEndDate, setNumberOfOccurrences, setStartDate, writeElementsToXml
 
Methods inherited from class microsoft.exchange.webservices.data.property.complex.ComplexProperty
addOnChangeEvent, canSetFieldValue, changed, clearChangeEvents, clearChangeLog, func, getNamespace, 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

Recurrence.IntervalPattern

public Recurrence.IntervalPattern()
Initializes a new instance of the IntervalPattern class.


Recurrence.IntervalPattern

public Recurrence.IntervalPattern(Date startDate,
                                  int interval)
                           throws ArgumentOutOfRangeException
Initializes a new instance of the IntervalPattern class.

Parameters:
startDate - The date and time when the recurrence starts.
interval - The number of days between each occurrence.
Throws:
ArgumentOutOfRangeException - the argument out of range exception
Method Detail

internalWritePropertiesToXml

public void internalWritePropertiesToXml(EwsServiceXmlWriter writer)
                                  throws Exception
Write property to XML.

Overrides:
internalWritePropertiesToXml in class Recurrence
Parameters:
writer - the writer
Throws:
Exception - the 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 successful
Throws:
Exception - the exception

getInterval

public int getInterval()
Gets the interval between occurrences.

Returns:
the interval

setInterval

public void setInterval(int value)
                 throws ArgumentOutOfRangeException
Sets the interval.

Parameters:
value - the new interval
Throws:
ArgumentOutOfRangeException - the argument out of range exception


Copyright © 2012–2015 Microsoft. All rights reserved.