Class Recurrence.IntervalPattern
- java.lang.Object
-
- microsoft.exchange.webservices.data.property.complex.ComplexProperty
-
- microsoft.exchange.webservices.data.property.complex.recurrence.pattern.Recurrence
-
- 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
Constructors Constructor Description IntervalPattern()Initializes a new instance of the IntervalPattern class.IntervalPattern(Date startDate, int interval)Initializes a new instance of the IntervalPattern class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetInterval()Gets the interval between occurrences.voidinternalWritePropertiesToXml(EwsServiceXmlWriter writer)Write property to XML.voidsetInterval(int value)Sets the interval.booleantryReadElementFromXml(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
-
-
-
-
Constructor Detail
-
IntervalPattern
public IntervalPattern()
Initializes a new instance of the IntervalPattern class.
-
IntervalPattern
public 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:
internalWritePropertiesToXmlin classRecurrence- Parameters:
writer- the writer- Throws:
Exception- the exception
-
tryReadElementFromXml
public boolean tryReadElementFromXml(EwsServiceXmlReader reader) throws Exception
Tries to read element from XML.- Overrides:
tryReadElementFromXmlin classComplexProperty- 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
-
-