|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectmicrosoft.exchange.webservices.data.property.complex.ComplexProperty
microsoft.exchange.webservices.data.property.complex.DictionaryProperty<TKey,TEntry>
TKey - the generic typeTEntry - the generic typepublic abstract class DictionaryProperty<TKey,TEntry extends DictionaryEntryProperty<TKey>>
Represents a generic dictionary that can be sent to or retrieved from EWS. TKey The type of key. TEntry The type of entry.
| Constructor Summary | |
|---|---|
DictionaryProperty()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class microsoft.exchange.webservices.data.property.complex.ComplexProperty |
|---|
addOnChangeEvent, canSetFieldValue, changed, clearChangeEvents, func, getNamespace, internalValidate, loadFromXml, readAttributesFromXml, readTextValueFromXml, removeChangeEvent, setNamespace, tryReadElementFromXml, tryReadElementFromXmlToPatch, updateFromXml, updateFromXml, validate, writeAttributesToXml, writeToXml |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DictionaryProperty()
| Method Detail |
|---|
protected String getFieldIndex(TKey key)
key - the key
protected String getFieldURI()
protected TEntry createEntry(EwsServiceXmlReader reader)
reader - the reader
protected abstract TEntry createEntryInstance()
protected String getEntryXmlElementName(TEntry entry)
entry - the entry
public void clearChangeLog()
clearChangeLog in class ComplexPropertyprotected 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 key
public void loadFromXml(EwsServiceXmlReader reader,
String localElementName)
throws Exception
loadFromXml in class ComplexPropertyreader - the readerlocalElementName - the local element name
Exception - the exception
public void writeToXml(EwsServiceXmlWriter writer,
XmlNamespace xmlNamespace,
String xmlElementName)
throws Exception
writeToXml in class ComplexPropertywriter - The writerxmlNamespace - The XML namespace.xmlElementName - Name of the XML element.
Exception
public void writeElementsToXml(EwsServiceXmlWriter writer)
throws Exception
writeElementsToXml in class ComplexPropertywriter - the writer
Exception - the exceptionprotected Map<TKey,TEntry> getEntries()
public boolean contains(TKey key)
key - the key
public boolean writeSetUpdateToXml(EwsServiceXmlWriter writer,
ServiceObject ewsObject,
PropertyDefinition propertyDefinition)
throws Exception
writeSetUpdateToXml in interface ICustomXmlUpdateSerializerwriter - the writerewsObject - the ews objectpropertyDefinition - the property definition
Exception - the exception
public boolean writeDeleteUpdateToXml(EwsServiceXmlWriter writer,
ServiceObject ewsObject)
writeDeleteUpdateToXml in interface ICustomXmlUpdateSerializerwriter - the writerewsObject - the ews object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||