Class Recurrence.RelativeYearlyPattern
- 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.RelativeYearlyPattern
-
- All Implemented Interfaces:
ISelfValidate,ComplexFunctionDelegate<EwsServiceXmlReader>
- Enclosing class:
- Recurrence
public static final class Recurrence.RelativeYearlyPattern extends Recurrence
The Class RelativeYearlyPattern.
-
-
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 RelativeYearlyPattern()Instantiates a new relative yearly pattern.RelativeYearlyPattern(Date startDate, Month month, DayOfTheWeek dayOfTheWeek, DayOfTheWeekIndex dayOfTheWeekIndex)Instantiates a new relative yearly pattern.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DayOfTheWeekgetDayOfTheWeek()Gets the day of the week.DayOfTheWeekIndexgetDayOfTheWeekIndex()Gets the relative position of the day specified in DayOfTheWeek within the month.MonthgetMonth()Gets the month.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)Sets the relative position of the day specified in DayOfTheWeek within the month.voidsetMonth(Month value)Sets the month.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, 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
-
RelativeYearlyPattern
public RelativeYearlyPattern()
Instantiates a new relative yearly pattern.
-
RelativeYearlyPattern
public RelativeYearlyPattern(Date startDate, Month month, DayOfTheWeek dayOfTheWeek, DayOfTheWeekIndex dayOfTheWeekIndex)
Instantiates a new relative yearly pattern.- Parameters:
startDate- the start datemonth- the monthdayOfTheWeek- the day of the weekdayOfTheWeekIndex- the day of the week index
-
-
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- 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 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
Gets the relative position of the day specified in DayOfTheWeek within the month.- Returns:
- the day of the week index
- Throws:
ServiceValidationException- the service validation exception
-
setDayOfTheWeekIndex
public void setDayOfTheWeekIndex(DayOfTheWeekIndex value)
Sets the relative position of the day specified in DayOfTheWeek within the month.- Parameters:
value- the new day of the week index
-
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
-
getMonth
public Month getMonth() throws ServiceValidationException
Gets the month.- Returns:
- the month
- Throws:
ServiceValidationException- the service validation exception
-
-