|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectmicrosoft.exchange.webservices.data.ComplexProperty
microsoft.exchange.webservices.data.Recurrence
public abstract class Recurrence
Represents a recurrence pattern, as used by Appointment and Task items.
| Nested Class Summary | |
|---|---|
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 Summary | |
|---|---|
protected |
Recurrence()
Initializes a new instance. |
protected |
Recurrence(Date startDate)
Initializes a new instance. |
| Method Summary | ||
|---|---|---|
Date |
getEndDate()
Gets the date after which the recurrence ends. |
|
protected
|
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. |
|
protected 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. |
|
protected void |
internalValidate()
Validates this instance. |
|
protected void |
internalWritePropertiesToXml(microsoft.exchange.webservices.data.EwsServiceXmlWriter writer)
Write properties to XML. |
|
protected 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. |
|
protected void |
writeElementsToXml(microsoft.exchange.webservices.data.EwsServiceXmlWriter writer)
Writes elements to XML. |
|
| Methods inherited from class microsoft.exchange.webservices.data.ComplexProperty |
|---|
addOnChangeEvent, canSetFieldValue, changed, clearChangeEvents, clearChangeLog, getNamespace, loadFromXml, loadFromXml, readAttributesFromXml, readTextValueFromXml, removeChangeEvent, setNamespace, tryReadElementFromXml, validate, writeAttributesToXml, writeToXml, writeToXml |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected Recurrence()
protected Recurrence(Date startDate)
startDate - the start date| Method Detail |
|---|
protected abstract String getXmlElementName()
protected boolean isRegenerationPattern()
protected void internalWritePropertiesToXml(microsoft.exchange.webservices.data.EwsServiceXmlWriter writer)
throws XMLStreamException,
ServiceXmlSerializationException,
ServiceValidationException,
Exception
writer - the writer
XMLStreamException - the xML stream exception
ServiceXmlSerializationException - the service xml serialization exception
ServiceValidationException - the service validation exception
Exception - the exception
protected final void writeElementsToXml(microsoft.exchange.webservices.data.EwsServiceXmlWriter writer)
throws Exception
writeElementsToXml in class ComplexPropertywriter - the writer
Exception - the exception
protected <T> T getFieldValueOrThrowIfNull(Class<T> cls,
Object value,
String name)
throws ServiceValidationException
T - the generic typecls - the clsvalue - the valuename - the name
ServiceValidationException - the service validation exception
public Date getStartDate()
throws ServiceValidationException
ServiceValidationException - the service validation exceptionpublic void setStartDate(Date value)
value - the new start datepublic boolean hasEnd()
public void neverEnds()
protected void internalValidate()
throws Exception
internalValidate in class ComplexPropertyException
ServiceValidationException - the service validation exceptionpublic Integer getNumberOfOccurrences()
public void setNumberOfOccurrences(Integer value)
throws ArgumentException
value - the new number of occurrences
ArgumentException - the argument exceptionpublic Date getEndDate()
public void setEndDate(Date value)
value - the new end date
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||