Class DictionaryEntryProperty<TKey>
- java.lang.Object
-
- microsoft.exchange.webservices.data.property.complex.ComplexProperty
-
- microsoft.exchange.webservices.data.property.complex.DictionaryEntryProperty<TKey>
-
- Type Parameters:
TKey- the generic type
- All Implemented Interfaces:
ISelfValidate,ComplexFunctionDelegate<EwsServiceXmlReader>
- Direct Known Subclasses:
EmailAddressEntry,ImAddressEntry,PhoneNumberEntry,PhysicalAddressEntry
public abstract class DictionaryEntryProperty<TKey> extends ComplexProperty
Represents an entry of a DictionaryProperty object. All descendants of DictionaryEntryProperty must implement a parameterless constructor. That constructor does not have to be public. That constructor does not have to be public.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedDictionaryEntryProperty(Class<TKey> cls)Initializes a new instance of the "DictionaryEntryProperty<TKey>" class.protectedDictionaryEntryProperty(Class<TKey> cls, TKey key)Initializes a new instance of the "DictionaryEntryProperty<TKey>" class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected TKeygetKey()Gets the key.voidreadAttributesFromXml(EwsServiceXmlReader reader)Reads the attribute from XML.protected voidsetKey(TKey value)Sets the key.voidwriteAttributesToXml(EwsServiceXmlWriter writer)Writes the attribute to XML.protected booleanwriteDeleteUpdateToXml(EwsServiceXmlWriter writer, ServiceObject ewsObject)Writes the delete update to XML.protected booleanwriteSetUpdateToXml(EwsServiceXmlWriter writer, ServiceObject ewsObject, String ownerDictionaryXmlElementName)Writes the set update to XML.-
Methods inherited from class microsoft.exchange.webservices.data.property.complex.ComplexProperty
addOnChangeEvent, canSetFieldValue, changed, clearChangeEvents, clearChangeLog, func, getNamespace, internalValidate, loadFromXml, loadFromXml, readTextValueFromXml, removeChangeEvent, setNamespace, tryReadElementFromXml, tryReadElementFromXmlToPatch, updateFromXml, updateFromXml, validate, writeElementsToXml, writeToXml, writeToXml
-
-
-
-
Constructor Detail
-
DictionaryEntryProperty
protected DictionaryEntryProperty(Class<TKey> cls)
Initializes a new instance of the "DictionaryEntryProperty<TKey>" class.
-
DictionaryEntryProperty
protected DictionaryEntryProperty(Class<TKey> cls, TKey key)
Initializes a new instance of the "DictionaryEntryProperty<TKey>" class.- Parameters:
key- The key.
-
-
Method Detail
-
readAttributesFromXml
public void readAttributesFromXml(EwsServiceXmlReader reader) throws Exception
Reads the attribute from XML.- Overrides:
readAttributesFromXmlin classComplexProperty- Parameters:
reader- accepts EwsServiceXmlReader- Throws:
Exception- throws Exception
-
writeAttributesToXml
public void writeAttributesToXml(EwsServiceXmlWriter writer) throws ServiceXmlSerializationException
Writes the attribute to XML.- Overrides:
writeAttributesToXmlin classComplexProperty- Parameters:
writer- accepts EwsServiceXmlWriter- Throws:
ServiceXmlSerializationException- throws ServiceXmlSerializationException
-
writeSetUpdateToXml
protected boolean writeSetUpdateToXml(EwsServiceXmlWriter writer, ServiceObject ewsObject, String ownerDictionaryXmlElementName) throws XMLStreamException, ServiceXmlSerializationException
Writes the set update to XML.- Parameters:
writer- the writerewsObject- the ews objectownerDictionaryXmlElementName- name of the owner dictionary XML element- Returns:
- true if update XML was written
- Throws:
XMLStreamException- the XML stream exceptionServiceXmlSerializationException- the service xml serialization exception
-
writeDeleteUpdateToXml
protected boolean writeDeleteUpdateToXml(EwsServiceXmlWriter writer, ServiceObject ewsObject) throws XMLStreamException, ServiceXmlSerializationException
Writes the delete update to XML.- Parameters:
writer- the writerewsObject- the ews object- Returns:
- true if update XML was written
- Throws:
XMLStreamException- the XML stream exceptionServiceXmlSerializationException- the service xml serialization exception
-
-