microsoft.exchange.webservices.data.property.complex.recurrence.pattern
Class Recurrence.WeeklyPattern

java.lang.Object
  extended by microsoft.exchange.webservices.data.property.complex.ComplexProperty
      extended by microsoft.exchange.webservices.data.property.complex.recurrence.pattern.Recurrence
          extended by microsoft.exchange.webservices.data.property.complex.recurrence.pattern.Recurrence.IntervalPattern
              extended by microsoft.exchange.webservices.data.property.complex.recurrence.pattern.Recurrence.WeeklyPattern
All Implemented Interfaces:
ISelfValidate, ComplexFunctionDelegate<EwsServiceXmlReader>, IComplexPropertyChangedDelegate
Enclosing class:
Recurrence

public static final class Recurrence.WeeklyPattern
extends Recurrence.IntervalPattern
implements IComplexPropertyChangedDelegate

Represents a recurrence pattern where each occurrence happens on specific days a specific number of weeks 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
Recurrence.WeeklyPattern()
          Initializes a new instance of the WeeklyPattern class.
Recurrence.WeeklyPattern(Date startDate, int interval, DayOfTheWeek... daysOfTheWeek)
          Initializes a new instance of the WeeklyPattern class.
 
Method Summary
 void complexPropertyChanged(ComplexProperty complexProperty)
          Complex property changed.
 DayOfTheWeekCollection getDaysOfTheWeek()
          Gets the list of the days of the week when occurrences happen.
 Calendar getFirstDayOfWeek()
           
 String getXmlElementName()
          Gets the name of the XML element.
 void internalValidate()
          Validates this instance.
 void internalWritePropertiesToXml(EwsServiceXmlWriter writer)
          Write property to XML.
 void setFirstDayOfWeek(Calendar value)
           
 boolean tryReadElementFromXml(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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Recurrence.WeeklyPattern

public Recurrence.WeeklyPattern()
Initializes a new instance of the WeeklyPattern class. specific days a specific number of weeks after the previous one.


Recurrence.WeeklyPattern

public Recurrence.WeeklyPattern(Date startDate,
                                int interval,
                                DayOfTheWeek... daysOfTheWeek)
                         throws ArgumentOutOfRangeException
Initializes a new instance of the WeeklyPattern class.

Parameters:
startDate - the start date
interval - the interval
daysOfTheWeek - the days of the week
Throws:
ArgumentOutOfRangeException - the argument out of range exception
Method Detail

getXmlElementName

public String getXmlElementName()
Gets the name of the XML element. The name of the XML element.

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

internalWritePropertiesToXml

public void internalWritePropertiesToXml(EwsServiceXmlWriter writer)
                                  throws Exception
Write property to XML.

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

tryReadElementFromXml

public boolean tryReadElementFromXml(EwsServiceXmlReader reader)
                              throws 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:
Exception - the exception

internalValidate

public void internalValidate()
                      throws Exception
Validates this instance.

Overrides:
internalValidate in class Recurrence
Throws:
Exception

getDaysOfTheWeek

public DayOfTheWeekCollection getDaysOfTheWeek()
Gets the list of the days of the week when occurrences happen.

Returns:
the days of the week

getFirstDayOfWeek

public Calendar getFirstDayOfWeek()
                           throws ServiceValidationException
Throws:
ServiceValidationException

setFirstDayOfWeek

public void setFirstDayOfWeek(Calendar value)

complexPropertyChanged

public void complexPropertyChanged(ComplexProperty complexProperty)
Description copied from interface: IComplexPropertyChangedDelegate
Complex property changed.

Specified by:
complexPropertyChanged in interface IComplexPropertyChangedDelegate
Parameters:
complexProperty - the complex property


Copyright © 2012–2015 Microsoft. All rights reserved.