public abstract class Recurrence extends ComplexProperty
Modifier and Type | Class and Description |
---|---|
static class |
Recurrence.DailyPattern
Represents a recurrence pattern where each occurrence happens a specific
number of days after the previous one.
|
static class |
Recurrence.DailyRegenerationPattern
Represents a regeneration pattern, as used with recurring tasks, where
each occurrence happens a specified number of days after the previous one
is completed.
|
static class |
Recurrence.IntervalPattern
Represents a recurrence pattern where each occurrence happens at a
specific interval after the previous one.
|
static class |
Recurrence.MonthlyPattern
Represents a recurrence pattern where each occurrence happens on a
specific day a specific number of months after the previous one.
|
static class |
Recurrence.MonthlyRegenerationPattern
Represents a regeneration pattern, as used with recurring tasks, where
each occurrence happens a specified number of months after the previous
one is completed.
|
static class |
Recurrence.RelativeMonthlyPattern
Represents a recurrence pattern where each occurrence happens on a
relative day a specific number of months after the previous one.
|
static class |
Recurrence.RelativeYearlyPattern
The Class RelativeYearlyPattern.
|
static class |
Recurrence.WeeklyPattern
Represents a recurrence pattern where each occurrence happens on specific
days a specific number of weeks after the previous one.
|
static class |
Recurrence.WeeklyRegenerationPattern
Represents a regeneration pattern, as used with recurring tasks, where
each occurrence happens a specified number of weeks after the previous
one is completed.
|
static class |
Recurrence.YearlyPattern
Represents a recurrence pattern where each occurrence happens on a
specific day every year.
|
static class |
Recurrence.YearlyRegenerationPattern
Represents a regeneration pattern, as used with recurring tasks, where
each occurrence happens a specified number of years after the previous
one is completed.
|
Constructor and Description |
---|
Recurrence()
Initializes a new instance.
|
Recurrence(Date startDate)
Initializes a new instance.
|
Modifier and Type | Method and Description |
---|---|
Date |
getEndDate()
Gets the date after which the recurrence ends.
|
<T> T |
getFieldValueOrThrowIfNull(Class<T> cls,
Object value,
String name)
Gets a property value or throw if null
|
Integer |
getNumberOfOccurrences()
Gets the number of occurrences after which the recurrence ends.
|
Date |
getStartDate()
Gets the date and time when the recurrence start.
|
abstract String |
getXmlElementName()
Gets the name of the XML element.
|
boolean |
hasEnd()
Gets a value indicating whether the pattern has a fixed number of
occurrences or an end date.
|
void |
internalValidate()
Validates this instance.
|
void |
internalWritePropertiesToXml(EwsServiceXmlWriter writer)
Write property to XML.
|
boolean |
isRegenerationPattern()
Gets a value indicating whether this instance is regeneration pattern.
|
void |
neverEnds()
Sets up this recurrence so that it never ends.
|
void |
setEndDate(Date value)
sets the date after which the recurrence ends.
|
void |
setNumberOfOccurrences(Integer value)
Gets the number of occurrences after which the recurrence ends.
|
void |
setStartDate(Date value)
sets the date and time when the recurrence start.
|
void |
writeElementsToXml(EwsServiceXmlWriter writer)
Writes elements to XML.
|
addOnChangeEvent, canSetFieldValue, changed, clearChangeEvents, clearChangeLog, func, getNamespace, loadFromXml, loadFromXml, readAttributesFromXml, readTextValueFromXml, removeChangeEvent, setNamespace, tryReadElementFromXml, tryReadElementFromXmlToPatch, updateFromXml, updateFromXml, validate, writeAttributesToXml, writeToXml, writeToXml
public Recurrence()
public Recurrence(Date startDate)
startDate
- the start datepublic abstract String getXmlElementName()
public boolean isRegenerationPattern()
public void internalWritePropertiesToXml(EwsServiceXmlWriter writer) throws Exception
writer
- the writerException
- the exceptionpublic final void writeElementsToXml(EwsServiceXmlWriter writer) throws Exception
writeElementsToXml
in class ComplexProperty
writer
- the writerException
- the exceptionpublic <T> T getFieldValueOrThrowIfNull(Class<T> cls, Object value, String name) throws ServiceValidationException
T
- the generic typecls
- the clsvalue
- the valuename
- the nameServiceValidationException
- the service validation exceptionpublic Date getStartDate() throws ServiceValidationException
ServiceValidationException
- the service validation exceptionpublic void setStartDate(Date value)
value
- the new start datepublic boolean hasEnd()
public void neverEnds()
public void internalValidate() throws Exception
internalValidate
in class ComplexProperty
Exception
public Integer getNumberOfOccurrences()
public void setNumberOfOccurrences(Integer value) throws ArgumentException
value
- the new number of occurrencesArgumentException
- the argument exceptionpublic Date getEndDate()
public void setEndDate(Date value)
value
- the new end dateCopyright © 2012–2015 Microsoft. All rights reserved.