public final class ExtendedPropertyCollection extends ComplexPropertyCollection<ExtendedProperty> implements ICustomXmlUpdateSerializer
| Constructor and Description |
|---|
ExtendedPropertyCollection() |
| Modifier and Type | Method and Description |
|---|---|
protected ExtendedProperty |
createComplexProperty(String xmlElementName)
Creates the complex property.
|
protected String |
getCollectionItemXmlElementName(ExtendedProperty complexProperty)
Gets the name of the collection item XML element.
|
void |
loadFromXml(EwsServiceXmlReader reader,
String localElementName)
Loads from XML.
|
boolean |
removeExtendedProperty(ExtendedPropertyDefinition propertyDefinition)
Removes a specific extended property definition from the collection.
|
void |
setExtendedProperty(ExtendedPropertyDefinition propertyDefinition,
Object value)
Sets an extended property.
|
<T> boolean |
tryGetValue(Class<T> cls,
ExtendedPropertyDefinition propertyDefinition,
OutParam<T> propertyValueOut)
Tries to get property value.
|
boolean |
writeDeleteUpdateToXml(EwsServiceXmlWriter writer,
ServiceObject ewsObject)
Writes the deletion update to XML.
|
boolean |
writeSetUpdateToXml(EwsServiceXmlWriter writer,
ServiceObject ewsObject,
PropertyDefinition propertyDefinition)
Writes the update to XML.
|
void |
writeToXml(EwsServiceXmlWriter writer,
String xmlElementName)
Writes to XML.
|
clearChangeLog, complexPropertyChanged, contains, getAddedItems, getCount, getItems, getModifiedItems, getPropertyAtIndex, getRemovedItems, indexOf, internalAdd, internalClear, internalRemove, internalRemoveAt, itemChanged, iterator, loadFromXml, removeFromChangeLog, shouldWriteToXml, updateFromXml, writeElementsToXml, writeToXmladdOnChangeEvent, canSetFieldValue, changed, clearChangeEvents, func, getNamespace, internalValidate, readAttributesFromXml, readTextValueFromXml, removeChangeEvent, setNamespace, tryReadElementFromXml, tryReadElementFromXmlToPatch, updateFromXml, validate, writeAttributesToXmlclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic ExtendedPropertyCollection()
protected ExtendedProperty createComplexProperty(String xmlElementName)
createComplexProperty in class ComplexPropertyCollection<ExtendedProperty>xmlElementName - Name of the XML element.protected String getCollectionItemXmlElementName(ExtendedProperty complexProperty)
getCollectionItemXmlElementName in class ComplexPropertyCollection<ExtendedProperty>complexProperty - The complex property.public void loadFromXml(EwsServiceXmlReader reader, String localElementName) throws Exception
loadFromXml in class ComplexPropertyCollection<ExtendedProperty>reader - The reader.localElementName - Name of the local element.Exception - the exceptionpublic void writeToXml(EwsServiceXmlWriter writer, String xmlElementName) throws Exception
writeToXml in class ComplexPropertywriter - The writer.xmlElementName - Name of the XML element.Exception - the exceptionpublic void setExtendedProperty(ExtendedPropertyDefinition propertyDefinition, Object value) throws Exception
propertyDefinition - The property definition.value - The value.Exception - the exceptionpublic boolean removeExtendedProperty(ExtendedPropertyDefinition propertyDefinition) throws Exception
propertyDefinition - The definition of the extended property to remove.Exception - the exceptionpublic <T> boolean tryGetValue(Class<T> cls, ExtendedPropertyDefinition propertyDefinition, OutParam<T> propertyValueOut) throws ArgumentException
propertyDefinition - The property definition.propertyValueOut - The property value.ArgumentExceptionpublic boolean writeSetUpdateToXml(EwsServiceXmlWriter writer, ServiceObject ewsObject, PropertyDefinition propertyDefinition) throws Exception
writeSetUpdateToXml in interface ICustomXmlUpdateSerializerwriteSetUpdateToXml in class ComplexPropertyCollection<ExtendedProperty>writer - The writer.ewsObject - The ews object.propertyDefinition - Property definition.Exception - the exceptionpublic boolean writeDeleteUpdateToXml(EwsServiceXmlWriter writer, ServiceObject ewsObject) throws XMLStreamException, ServiceXmlSerializationException
writeDeleteUpdateToXml in interface ICustomXmlUpdateSerializerwriteDeleteUpdateToXml in class ComplexPropertyCollection<ExtendedProperty>writer - the writerewsObject - the ews objectXMLStreamException - the XML stream exceptionServiceXmlSerializationException - the service xml serialization exceptionCopyright © 2012–2015 Microsoft. All rights reserved.