public static final class Recurrence.YearlyPattern extends Recurrence
Recurrence.DailyPattern, Recurrence.DailyRegenerationPattern, Recurrence.IntervalPattern, Recurrence.MonthlyPattern, Recurrence.MonthlyRegenerationPattern, Recurrence.RelativeMonthlyPattern, Recurrence.RelativeYearlyPattern, Recurrence.WeeklyPattern, Recurrence.WeeklyRegenerationPattern, Recurrence.YearlyPattern, Recurrence.YearlyRegenerationPattern
Constructor and Description |
---|
YearlyPattern()
Initializes a new instance of the YearlyPattern class.
|
YearlyPattern(Date startDate,
Month month,
int dayOfMonth)
Initializes a new instance of the YearlyPattern class.
|
Modifier and Type | Method and Description |
---|---|
int |
getDayOfMonth()
Gets the day of the month when each occurrence happens.
|
Month |
getMonth()
Gets the month of the year when each occurrence happens.
|
String |
getXmlElementName()
Gets the name of the XML element.
|
void |
internalValidate()
Validates this instance.
|
void |
internalWritePropertiesToXml(EwsServiceXmlWriter writer)
Write property to XML.
|
void |
setDayOfMonth(int value)
Sets the day of the month when each occurrence happens.
|
void |
setMonth(Month value)
Sets the month.
|
boolean |
tryReadElementFromXml(EwsServiceXmlReader reader)
Tries to read element from XML.
|
getEndDate, getFieldValueOrThrowIfNull, getNumberOfOccurrences, getStartDate, hasEnd, isRegenerationPattern, neverEnds, setEndDate, setNumberOfOccurrences, setStartDate, writeElementsToXml
addOnChangeEvent, canSetFieldValue, changed, clearChangeEvents, clearChangeLog, func, getNamespace, loadFromXml, loadFromXml, readAttributesFromXml, readTextValueFromXml, removeChangeEvent, setNamespace, tryReadElementFromXmlToPatch, updateFromXml, updateFromXml, validate, writeAttributesToXml, writeToXml, writeToXml
public YearlyPattern()
public YearlyPattern(Date startDate, Month month, int dayOfMonth)
startDate
- the start datemonth
- the monthdayOfMonth
- the day of monthpublic String getXmlElementName()
getXmlElementName
in class Recurrence
public void internalWritePropertiesToXml(EwsServiceXmlWriter writer) throws Exception
internalWritePropertiesToXml
in class Recurrence
writer
- the writerException
- the exceptionpublic boolean tryReadElementFromXml(EwsServiceXmlReader reader) throws Exception
tryReadElementFromXml
in class ComplexProperty
reader
- the readerException
- the exceptionpublic void internalValidate() throws Exception
internalValidate
in class Recurrence
Exception
public Month getMonth() throws ServiceValidationException
ServiceValidationException
- the service validation exceptionpublic int getDayOfMonth() throws ServiceValidationException
ServiceValidationException
- the service validation exceptionpublic void setDayOfMonth(int value) throws ArgumentOutOfRangeException
value
- the new day of monthArgumentOutOfRangeException
- the argument out of range exceptionCopyright © 2012–2015 Microsoft. All rights reserved.