Class Recurrence.RelativeMonthlyPattern
- 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
-
- microsoft.exchange.webservices.data.property.complex.recurrence.pattern.Recurrence.RelativeMonthlyPattern
-
- All Implemented Interfaces:
ISelfValidate,ComplexFunctionDelegate<EwsServiceXmlReader>
- Enclosing class:
- Recurrence
public static final class Recurrence.RelativeMonthlyPattern extends Recurrence.IntervalPattern
Represents a recurrence pattern where each occurrence happens on a relative day a specific number of months after the previous one.
-
-
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 RelativeMonthlyPattern()Instantiates a new relative monthly pattern.RelativeMonthlyPattern(Date startDate, int interval, DayOfTheWeek dayOfTheWeek, DayOfTheWeekIndex dayOfTheWeekIndex)Instantiates a new relative monthly pattern.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DayOfTheWeekgetDayOfTheWeek()Gets the day of the week.DayOfTheWeekIndexgetDayOfTheWeekIndex()Day of the week index.StringgetXmlElementName()Gets the name of the XML element.voidinternalValidate()Validates this instance.voidinternalWritePropertiesToXml(EwsServiceXmlWriter writer)Write property to XML.voidsetDayOfTheWeek(DayOfTheWeek value)Sets the day of the week.voidsetDayOfTheWeekIndex(DayOfTheWeekIndex value)Day of the week index.booleantryReadElementFromXml(EwsServiceXmlReader reader)Tries to read element from XML.-
Methods inherited from class microsoft.exchange.webservices.data.property.complex.recurrence.pattern.Recurrence.IntervalPattern
getInterval, setInterval
-
Methods inherited from class microsoft.exchange.webservices.data.property.complex.recurrence.pattern.Recurrence
getEndDate, getFieldValueOrThrowIfNull, getNumberOfOccurrences, getStartDate, hasEnd, 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
-
RelativeMonthlyPattern
public RelativeMonthlyPattern()
Instantiates a new relative monthly pattern.
-
RelativeMonthlyPattern
public RelativeMonthlyPattern(Date startDate, int interval, DayOfTheWeek dayOfTheWeek, DayOfTheWeekIndex dayOfTheWeekIndex) throws ArgumentOutOfRangeException
Instantiates a new relative monthly pattern.- Parameters:
startDate- the start dateinterval- the intervaldayOfTheWeek- the day of the weekdayOfTheWeekIndex- the day of the week index- Throws:
ArgumentOutOfRangeException- the argument out of range exception
-
-
Method Detail
-
getXmlElementName
public String getXmlElementName()
Gets the name of the XML element.- Specified by:
getXmlElementNamein classRecurrence- Returns:
- the xml element name
-
internalWritePropertiesToXml
public void internalWritePropertiesToXml(EwsServiceXmlWriter writer) throws Exception
Write property to XML.- Overrides:
internalWritePropertiesToXmlin classRecurrence.IntervalPattern- Parameters:
writer- the writer- Throws:
Exception- the exception
-
tryReadElementFromXml
public boolean tryReadElementFromXml(EwsServiceXmlReader reader) throws Exception
Tries to read element from XML.- Overrides:
tryReadElementFromXmlin classRecurrence.IntervalPattern- Parameters:
reader- the reader- Returns:
- True if appropriate element was read.
- Throws:
Exception- the exception
-
internalValidate
public void internalValidate() throws Exception
Validates this instance.- Overrides:
internalValidatein classRecurrence- Throws:
Exception
-
getDayOfTheWeekIndex
public DayOfTheWeekIndex getDayOfTheWeekIndex() throws ServiceValidationException
Day of the week index.- Returns:
- the day of the week index
- Throws:
ServiceValidationException- the service validation exception
-
setDayOfTheWeekIndex
public void setDayOfTheWeekIndex(DayOfTheWeekIndex value)
Day of the week index.- Parameters:
value- the value
-
getDayOfTheWeek
public DayOfTheWeek getDayOfTheWeek() throws ServiceValidationException
Gets the day of the week.- Returns:
- the day of the week
- Throws:
ServiceValidationException- the service validation exception
-
setDayOfTheWeek
public void setDayOfTheWeek(DayOfTheWeek value)
Sets the day of the week.- Parameters:
value- the new day of the week
-
-