Class EndDateRecurrenceRange
- java.lang.Object
-
- microsoft.exchange.webservices.data.property.complex.ComplexProperty
-
- microsoft.exchange.webservices.data.property.complex.recurrence.range.RecurrenceRange
-
- microsoft.exchange.webservices.data.property.complex.recurrence.range.EndDateRecurrenceRange
-
- All Implemented Interfaces:
ISelfValidate,ComplexFunctionDelegate<EwsServiceXmlReader>
public final class EndDateRecurrenceRange extends RecurrenceRange
Represents recurrent range with an end date.
-
-
Constructor Summary
Constructors Constructor Description EndDateRecurrenceRange()Initializes a new instance.EndDateRecurrenceRange(Date startDate, Date endDate)Initializes a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DategetEndDate()Gets the end date.StringgetXmlElementName()Gets the name of the XML element.voidsetEndDate(Date value)sets the end date.voidsetupRecurrence(Recurrence recurrence)Setups the recurrence.booleantryReadElementFromXml(EwsServiceXmlReader reader)Tries to read element from XML.voidwriteElementsToXml(EwsServiceXmlWriter writer)Writes the elements to XML.-
Methods inherited from class microsoft.exchange.webservices.data.property.complex.recurrence.range.RecurrenceRange
changed, getRecurrence, getStartDate, setRecurrence, setStartDate
-
Methods inherited from class microsoft.exchange.webservices.data.property.complex.ComplexProperty
addOnChangeEvent, canSetFieldValue, clearChangeEvents, clearChangeLog, func, getNamespace, internalValidate, loadFromXml, loadFromXml, readAttributesFromXml, readTextValueFromXml, removeChangeEvent, setNamespace, tryReadElementFromXmlToPatch, updateFromXml, updateFromXml, validate, writeAttributesToXml, writeToXml, writeToXml
-
-
-
-
Constructor Detail
-
EndDateRecurrenceRange
public EndDateRecurrenceRange()
Initializes a new instance.
-
EndDateRecurrenceRange
public EndDateRecurrenceRange(Date startDate, Date endDate)
Initializes a new instance.- Parameters:
startDate- the start dateendDate- the end date
-
-
Method Detail
-
getXmlElementName
public String getXmlElementName()
Gets the name of the XML element.- Specified by:
getXmlElementNamein classRecurrenceRange- Returns:
- The name of the XML element
-
setupRecurrence
public void setupRecurrence(Recurrence recurrence) throws Exception
Setups the recurrence.- Overrides:
setupRecurrencein classRecurrenceRange- Parameters:
recurrence- the new up recurrence- Throws:
Exception- the exception
-
writeElementsToXml
public void writeElementsToXml(EwsServiceXmlWriter writer) throws XMLStreamException, ServiceXmlSerializationException
Writes the elements to XML.- Overrides:
writeElementsToXmlin classRecurrenceRange- Parameters:
writer- the writer- Throws:
XMLStreamException- the XML stream exceptionServiceXmlSerializationException- the service xml serialization exception
-
tryReadElementFromXml
public boolean tryReadElementFromXml(EwsServiceXmlReader reader) throws Exception
Tries to read element from XML.- Overrides:
tryReadElementFromXmlin classRecurrenceRange- Parameters:
reader- the reader- Returns:
- True if element was read
- Throws:
Exception- the exception
-
getEndDate
public Date getEndDate()
Gets the end date.- Returns:
- endDate
-
setEndDate
public void setEndDate(Date value)
sets the end date.- Parameters:
value- the new end date
-
-