Class NumberedRecurrenceRange
- 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.NumberedRecurrenceRange
-
- All Implemented Interfaces:
ISelfValidate,ComplexFunctionDelegate<EwsServiceXmlReader>
public final class NumberedRecurrenceRange extends RecurrenceRange
The Class NumberedRecurrenceRange.
-
-
Constructor Summary
Constructors Constructor Description NumberedRecurrenceRange()Initializes a new instance.NumberedRecurrenceRange(Date startDate, Integer numberOfOccurrences)Initializes a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IntegergetNumberOfOccurrences()Gets the number of occurrences.StringgetXmlElementName()Gets the name of the XML element.voidsetNumberOfOccurrences(Integer value)sets the number of occurrences.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
-
NumberedRecurrenceRange
public NumberedRecurrenceRange()
Initializes a new instance.
-
NumberedRecurrenceRange
public NumberedRecurrenceRange(Date startDate, Integer numberOfOccurrences)
Initializes a new instance.- Parameters:
startDate- the start datenumberOfOccurrences- the number of occurrences
-
-
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
-
getNumberOfOccurrences
public Integer getNumberOfOccurrences()
Gets the number of occurrences.- Returns:
- numberOfOccurrences
-
setNumberOfOccurrences
public void setNumberOfOccurrences(Integer value)
sets the number of occurrences.- Parameters:
value- the new number of occurrences
-
-