microsoft.exchange.webservices.data
Class Recurrence.MonthlyPattern

java.lang.Object
  extended by microsoft.exchange.webservices.data.ComplexProperty
      extended by microsoft.exchange.webservices.data.Recurrence
          extended by microsoft.exchange.webservices.data.Recurrence.IntervalPattern
              extended by microsoft.exchange.webservices.data.Recurrence.MonthlyPattern
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.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
Recurrence.MonthlyPattern()
          Initializes a new instance of the MonthlyPattern class.
Recurrence.MonthlyPattern(java.util.Date startDate, int interval, int dayOfMonth)
          Initializes a new instance of the MonthlyPattern class.
 
Method Summary
 int getDayOfMonth()
          Gets the day of month.
protected  java.lang.String getXmlElementName()
          Gets the name of the XML element.
protected  void internalValidate()
          Validates this instance.
protected  void internalWritePropertiesToXml(microsoft.exchange.webservices.data.EwsServiceXmlWriter writer)
          Write properties to XML.
 void setDayOfMonth(int value)
          Sets the day of month.
protected  boolean tryReadElementFromXml(microsoft.exchange.webservices.data.EwsServiceXmlReader reader)
          Tries to read element from XML.
 
Methods inherited from class microsoft.exchange.webservices.data.Recurrence.IntervalPattern
getInterval, setInterval
 
Methods inherited from class microsoft.exchange.webservices.data.Recurrence
getEndDate, getFieldValueOrThrowIfNull, getNumberOfOccurrences, getStartDate, hasEnd, isRegenerationPattern, neverEnds, setEndDate, setNumberOfOccurrences, setStartDate, writeElementsToXml
 
Methods inherited from class microsoft.exchange.webservices.data.ComplexProperty
addOnChangeEvent, canSetFieldValue, changed, clearChangeEvents, clearChangeLog, func, getNamespace, loadFromXml, loadFromXml, readAttributesFromXml, readTextValueFromXml, removeChangeEvent, setNamespace, tryReadElementFromXmlToPatch, updateFromXml, updateFromXml, validate, writeAttributesToXml, writeToXml, writeToXml
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Recurrence.MonthlyPattern

public Recurrence.MonthlyPattern()
Initializes a new instance of the MonthlyPattern class.


Recurrence.MonthlyPattern

public Recurrence.MonthlyPattern(java.util.Date startDate,
                                 int interval,
                                 int dayOfMonth)
                          throws ArgumentOutOfRangeException
Initializes a new instance of the MonthlyPattern class.

Parameters:
startDate - the start date
interval - the interval
dayOfMonth - the day of month
Throws:
ArgumentOutOfRangeException - the argument out of range exception
Method Detail

getXmlElementName

protected java.lang.String getXmlElementName()
Description copied from class: Recurrence
Gets the name of the XML element.

Specified by:
getXmlElementName in class Recurrence
Returns:
the xml element name

internalWritePropertiesToXml

protected void internalWritePropertiesToXml(microsoft.exchange.webservices.data.EwsServiceXmlWriter writer)
                                     throws java.lang.Exception
Write properties to XML.

Overrides:
internalWritePropertiesToXml in class Recurrence.IntervalPattern
Parameters:
writer - the writer
Throws:
java.lang.Exception - the exception

tryReadElementFromXml

protected boolean tryReadElementFromXml(microsoft.exchange.webservices.data.EwsServiceXmlReader reader)
                                 throws java.lang.Exception
Tries to read element from XML.

Overrides:
tryReadElementFromXml in class Recurrence.IntervalPattern
Parameters:
reader - the reader
Returns:
True if appropriate element was read.
Throws:
java.lang.Exception - the exception

internalValidate

protected void internalValidate()
                         throws java.lang.Exception
Validates this instance.

Overrides:
internalValidate in class Recurrence
Throws:
java.lang.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