public final class DayOfTheWeekCollection extends ComplexProperty implements Iterable<DayOfTheWeek>
| Constructor and Description |
|---|
DayOfTheWeekCollection()
Initializes a new instance of the class.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(DayOfTheWeek dayOfTheWeek)
Adds a day to the collection if it is not already present.
|
void |
addRange(Iterator<DayOfTheWeek> daysOfTheWeek)
Adds multiple days to the collection if they are not already present.
|
void |
clear()
Clears the collection.
|
int |
getCount()
Gets the number of days in the collection.
|
DayOfTheWeek |
getWeekCollectionAtIndex(int index)
Gets the DayOfTheWeek at a specific index in the collection.
|
Iterator<DayOfTheWeek> |
iterator() |
void |
loadFromXml(EwsServiceXmlReader reader,
String xmlElementName)
Loads from XML.
|
boolean |
remove(DayOfTheWeek dayOfTheWeek)
Remove a specific day from the collection.
|
void |
removeAt(int index)
Removes the day at a specific index.
|
String |
toString()
Builds string representation of the collection.
|
void |
writeToXml(EwsServiceXmlWriter writer,
String xmlElementName)
Gets the request version.
|
addOnChangeEvent, canSetFieldValue, changed, clearChangeEvents, clearChangeLog, func, getNamespace, internalValidate, loadFromXml, readAttributesFromXml, readTextValueFromXml, removeChangeEvent, setNamespace, tryReadElementFromXml, tryReadElementFromXmlToPatch, updateFromXml, updateFromXml, validate, writeAttributesToXml, writeElementsToXml, writeToXmlclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitforEach, spliteratorpublic DayOfTheWeekCollection()
public void loadFromXml(EwsServiceXmlReader reader, String xmlElementName) throws Exception
loadFromXml in class ComplexPropertyreader - The reader.xmlElementName - Name of the XML element.Exception - the exceptionpublic void writeToXml(EwsServiceXmlWriter writer, String xmlElementName) throws XMLStreamException, ServiceXmlSerializationException
writeToXml in class ComplexPropertywriter - the writerxmlElementName - the xml element nameXMLStreamException - the XML stream exceptionServiceXmlSerializationException - the service xml serialization exceptionpublic void add(DayOfTheWeek dayOfTheWeek)
dayOfTheWeek - The day to add.public void addRange(Iterator<DayOfTheWeek> daysOfTheWeek)
daysOfTheWeek - The days to add.public void clear()
public boolean remove(DayOfTheWeek dayOfTheWeek)
dayOfTheWeek - the day of the weekpublic void removeAt(int index) throws ArgumentOutOfRangeException
index - the indexArgumentOutOfRangeException - the argument out of range exceptionpublic DayOfTheWeek getWeekCollectionAtIndex(int index)
index - the indexpublic int getCount()
public Iterator<DayOfTheWeek> iterator()
iterator in interface Iterable<DayOfTheWeek>Copyright © 2012–2015 Microsoft. All rights reserved.