public final class UserConfigurationDictionary extends ComplexProperty implements Iterable<Object>
Constructor and Description |
---|
UserConfigurationDictionary()
Initializes a new instance of "UserConfigurationDictionary" class.
|
Modifier and Type | Method and Description |
---|---|
void |
addElement(Object key,
Object value)
Adds an element with the provided key and value to the user configuration
dictionary.
|
void |
changed()
Instance was changed.
|
void |
clear()
Removes all item from the user configuration dictionary.
|
boolean |
containsKey(Object key)
Determines whether the user configuration dictionary contains an element
with the specified key.
|
int |
getCount()
Gets the number of elements in the user configuration dictionary.
|
Object |
getElements(Object key)
Gets the element with the specified key.
|
Iterator<Object> |
getEnumerator()
Returns an enumerator that iterates through
the user configuration dictionary.
|
boolean |
getIsDirty()
Gets the isDirty flag.
|
Iterator<Object> |
iterator() |
void |
loadFromXml(EwsServiceXmlReader reader,
XmlNamespace xmlNamespace,
String xmlElementName)
Loads from XML.
|
boolean |
remove(Object key)
Removes the element with the specified key from the user configuration
dictionary.
|
void |
setElements(Object key,
Object value)
Sets the element with the specified key.
|
void |
setIsDirty(boolean value)
Sets the isDirty flag.
|
boolean |
tryGetValue(Object key,
OutParam<Object> value)
Gets the value associated with the specified key.
|
boolean |
tryReadElementFromXml(EwsServiceXmlReader reader)
Tries to read element from XML.
|
void |
writeElementsToXml(EwsServiceXmlWriter writer)
Writes elements to XML.
|
addOnChangeEvent, canSetFieldValue, clearChangeEvents, clearChangeLog, func, getNamespace, internalValidate, loadFromXml, readAttributesFromXml, readTextValueFromXml, removeChangeEvent, setNamespace, tryReadElementFromXmlToPatch, updateFromXml, updateFromXml, validate, writeAttributesToXml, writeToXml, writeToXml
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public UserConfigurationDictionary()
public Object getElements(Object key)
key
- The key of the element to get or set.public void setElements(Object key, Object value) throws Exception
key
- The key of the element to get or setvalue
- the valueException
- the exceptionpublic void addElement(Object key, Object value) throws Exception
key
- The object to use as the key of the element to add.value
- The object to use as the value of the element to add.Exception
- the exceptionpublic boolean containsKey(Object key)
key
- The key to locate in the user configuration dictionary.public boolean remove(Object key)
key
- The key of the element to remove.public boolean tryGetValue(Object key, OutParam<Object> value)
key
- The key whose value to get.value
- When this method returns, the value associated with the
specified key, if the key is found; otherwise, null.public int getCount()
public void clear()
public Iterator<Object> getEnumerator()
public boolean getIsDirty()
public void setIsDirty(boolean value)
value
- the new checks if is dirtypublic void changed()
changed
in class ComplexProperty
public void writeElementsToXml(EwsServiceXmlWriter writer) throws XMLStreamException, ServiceXmlSerializationException
writeElementsToXml
in class ComplexProperty
writer
- accepts EwsServiceXmlWriterXMLStreamException
- the XML stream exceptionServiceXmlSerializationException
- the service xml serialization exceptionpublic void loadFromXml(EwsServiceXmlReader reader, XmlNamespace xmlNamespace, String xmlElementName) throws Exception
ComplexProperty
loadFromXml
in class ComplexProperty
reader
- The reader.xmlNamespace
- the xml namespacexmlElementName
- Name of the XML element.Exception
- the exceptionpublic boolean tryReadElementFromXml(EwsServiceXmlReader reader) throws Exception
ComplexProperty
tryReadElementFromXml
in class ComplexProperty
reader
- The reader.Exception
- the exceptionCopyright © 2012–2015 Microsoft. All rights reserved.