TKey
- the generic typeTEntry
- the generic typepublic abstract class DictionaryProperty<TKey,TEntry extends DictionaryEntryProperty<TKey>> extends ComplexProperty implements ICustomXmlUpdateSerializer, IComplexPropertyChangedDelegate<TEntry>
Constructor and Description |
---|
DictionaryProperty() |
Modifier and Type | Method and Description |
---|---|
void |
clearChangeLog()
Clears the change log.
|
void |
complexPropertyChanged(TEntry complexProperty)
Complex property changed.
|
boolean |
contains(TKey key)
Determines whether this instance contains the specified key.
|
protected TEntry |
createEntry(EwsServiceXmlReader reader)
Creates the entry.
|
protected abstract TEntry |
createEntryInstance()
Creates instance of dictionary entry.
|
protected Map<TKey,TEntry> |
getEntries()
Gets the entries.
|
protected String |
getEntryXmlElementName(TEntry entry)
Gets the name of the entry XML element.
|
protected String |
getFieldIndex(TKey key)
Gets the index of the field.
|
protected String |
getFieldURI()
Gets the field URI.
|
protected void |
internalAdd(TEntry entry)
Add entry.
|
protected void |
internalAddOrReplace(TEntry entry)
Add or replace entry.
|
protected void |
internalRemove(TKey key)
Remove entry based on key.
|
void |
loadFromXml(EwsServiceXmlReader reader,
String localElementName)
Loads from XML.
|
boolean |
writeDeleteUpdateToXml(EwsServiceXmlWriter writer,
ServiceObject ewsObject)
Writes deletion update to XML.
|
void |
writeElementsToXml(EwsServiceXmlWriter writer)
Writes elements to XML.
|
boolean |
writeSetUpdateToXml(EwsServiceXmlWriter writer,
ServiceObject ewsObject,
PropertyDefinition propertyDefinition)
Writes updates to XML.
|
void |
writeToXml(EwsServiceXmlWriter writer,
XmlNamespace xmlNamespace,
String xmlElementName)
Writes to XML.
|
addOnChangeEvent, canSetFieldValue, changed, clearChangeEvents, func, getNamespace, internalValidate, loadFromXml, readAttributesFromXml, readTextValueFromXml, removeChangeEvent, setNamespace, tryReadElementFromXml, tryReadElementFromXmlToPatch, updateFromXml, updateFromXml, validate, writeAttributesToXml, writeToXml
public DictionaryProperty()
protected String getFieldIndex(TKey key)
key
- the keyprotected String getFieldURI()
protected TEntry createEntry(EwsServiceXmlReader reader)
reader
- the readerprotected abstract TEntry createEntryInstance()
protected String getEntryXmlElementName(TEntry entry)
entry
- the entrypublic void clearChangeLog()
clearChangeLog
in class ComplexProperty
protected void internalAdd(TEntry entry)
entry
- the entrypublic void complexPropertyChanged(TEntry complexProperty)
complexPropertyChanged
in interface IComplexPropertyChangedDelegate<TEntry extends DictionaryEntryProperty<TKey>>
complexProperty
- accepts ComplexPropertyprotected void internalAddOrReplace(TEntry entry)
entry
- the entryprotected void internalRemove(TKey key)
key
- the keypublic void loadFromXml(EwsServiceXmlReader reader, String localElementName) throws Exception
loadFromXml
in class ComplexProperty
reader
- the readerlocalElementName
- the local element nameException
- the exceptionpublic void writeToXml(EwsServiceXmlWriter writer, XmlNamespace xmlNamespace, String xmlElementName) throws Exception
writeToXml
in class ComplexProperty
writer
- The writerxmlNamespace
- The XML namespace.xmlElementName
- Name of the XML element.Exception
public void writeElementsToXml(EwsServiceXmlWriter writer) throws Exception
writeElementsToXml
in class ComplexProperty
writer
- the writerException
- the exceptionprotected Map<TKey,TEntry> getEntries()
public boolean contains(TKey key)
key
- the keypublic boolean writeSetUpdateToXml(EwsServiceXmlWriter writer, ServiceObject ewsObject, PropertyDefinition propertyDefinition) throws Exception
writeSetUpdateToXml
in interface ICustomXmlUpdateSerializer
writer
- the writerewsObject
- the ews objectpropertyDefinition
- the property definitionException
- the exceptionpublic boolean writeDeleteUpdateToXml(EwsServiceXmlWriter writer, ServiceObject ewsObject)
writeDeleteUpdateToXml
in interface ICustomXmlUpdateSerializer
writer
- the writerewsObject
- the ews objectCopyright © 2012–2015 Microsoft. All rights reserved.