Class Recurrence.MonthlyPattern
- 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.MonthlyPattern
-
- All Implemented Interfaces:
ISelfValidate,ComplexFunctionDelegate<EwsServiceXmlReader>
- Enclosing class:
- Recurrence
public static final class Recurrence.MonthlyPattern extends Recurrence.IntervalPattern
Represents a recurrence pattern where each occurrence happens on a specific 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 MonthlyPattern()Initializes a new instance of the MonthlyPattern class.MonthlyPattern(Date startDate, int interval, int dayOfMonth)Initializes a new instance of the MonthlyPattern class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetDayOfMonth()Gets the day of month.StringgetXmlElementName()Gets the name of the XML element.voidinternalValidate()Validates this instance.voidinternalWritePropertiesToXml(EwsServiceXmlWriter writer)Write property to XML.voidsetDayOfMonth(int value)Sets the day of month.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
-
MonthlyPattern
public MonthlyPattern()
Initializes a new instance of the MonthlyPattern class.
-
MonthlyPattern
public MonthlyPattern(Date startDate, int interval, int dayOfMonth) throws ArgumentOutOfRangeException
Initializes a new instance of the MonthlyPattern class.- Parameters:
startDate- the start dateinterval- the intervaldayOfMonth- the day of month- Throws:
ArgumentOutOfRangeException- the argument out of range exception
-
-
Method Detail
-
getXmlElementName
public String getXmlElementName()
Description copied from class:RecurrenceGets 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
-
getDayOfMonth
public int getDayOfMonth() throws ServiceValidationException
Gets the day of month.- Returns:
- the day of month
- Throws:
ServiceValidationException- the service validation exception
-
setDayOfMonth
public void setDayOfMonth(int value) throws ArgumentOutOfRangeException
Sets the day of month.- Parameters:
value- the new day of month- Throws:
ArgumentOutOfRangeException- the argument out of range exception
-
-