microsoft.exchange.webservices.data
Class Recurrence.IntervalPattern

java.lang.Object
  extended by microsoft.exchange.webservices.data.ComplexProperty
      extended by microsoft.exchange.webservices.data.Recurrence
          extended by microsoft.exchange.webservices.data.Recurrence.IntervalPattern
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.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
protected Recurrence.IntervalPattern()
          Initializes a new instance of the IntervalPattern class.
protected Recurrence.IntervalPattern(java.util.Date startDate, int interval)
          Initializes a new instance of the IntervalPattern class.
 
Method Summary
 int getInterval()
          Gets the interval between occurrences.
protected  void internalWritePropertiesToXml(microsoft.exchange.webservices.data.EwsServiceXmlWriter writer)
          Write properties to XML.
 void setInterval(int value)
          Sets the interval.
protected  boolean tryReadElementFromXml(microsoft.exchange.webservices.data.EwsServiceXmlReader reader)
          Tries to read element from XML.
 
Methods inherited from class microsoft.exchange.webservices.data.Recurrence
getEndDate, getFieldValueOrThrowIfNull, getNumberOfOccurrences, getStartDate, getXmlElementName, hasEnd, internalValidate, isRegenerationPattern, neverEnds, setEndDate, setNumberOfOccurrences, setStartDate, writeElementsToXml
 
Methods inherited from class microsoft.exchange.webservices.data.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

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


Recurrence.IntervalPattern

protected Recurrence.IntervalPattern(java.util.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

protected void internalWritePropertiesToXml(microsoft.exchange.webservices.data.EwsServiceXmlWriter writer)
                                     throws javax.xml.stream.XMLStreamException,
                                            ServiceXmlSerializationException,
                                            ServiceValidationException,
                                            java.lang.Exception
Write properties to XML.

Overrides:
internalWritePropertiesToXml in class Recurrence
Parameters:
writer - the writer
Throws:
javax.xml.stream.XMLStreamException - the xML stream exception
ServiceXmlSerializationException - the service xml serialization exception
ServiceValidationException - the service validation exception
java.lang.Exception - the exception

tryReadElementFromXml

protected boolean tryReadElementFromXml(microsoft.exchange.webservices.data.EwsServiceXmlReader reader)
                                 throws java.lang.Exception
Tries to read element from XML.

Overrides:
tryReadElementFromXml in class ComplexProperty
Parameters:
reader - the reader
Returns:
true, if successful
Throws:
java.lang.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