Class Recurrence.WeeklyPattern
- 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.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
Constructors Constructor Description WeeklyPattern()Initializes a new instance of the WeeklyPattern class.WeeklyPattern(Date startDate, int interval, DayOfTheWeek... daysOfTheWeek)Initializes a new instance of the WeeklyPattern class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcomplexPropertyChanged(ComplexProperty complexProperty)Complex property changed.DayOfTheWeekCollectiongetDaysOfTheWeek()Gets the list of the days of the week when occurrences happen.CalendargetFirstDayOfWeek()StringgetXmlElementName()Gets the name of the XML element.voidinternalValidate()Validates this instance.voidinternalWritePropertiesToXml(EwsServiceXmlWriter writer)Write property to XML.voidsetFirstDayOfWeek(Calendar value)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
-
WeeklyPattern
public WeeklyPattern()
Initializes a new instance of the WeeklyPattern class. specific days a specific number of weeks after the previous one.
-
WeeklyPattern
public WeeklyPattern(Date startDate, int interval, DayOfTheWeek... daysOfTheWeek) throws ArgumentOutOfRangeException
Initializes a new instance of the WeeklyPattern class.- Parameters:
startDate- the start dateinterval- the intervaldaysOfTheWeek- 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.- 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
-
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:IComplexPropertyChangedDelegateComplex property changed.- Specified by:
complexPropertyChangedin interfaceIComplexPropertyChangedDelegate- Parameters:
complexProperty- the complex property
-
-