Class UserConfigurationDictionary
- java.lang.Object
-
- microsoft.exchange.webservices.data.property.complex.ComplexProperty
-
- microsoft.exchange.webservices.data.property.complex.UserConfigurationDictionary
-
- All Implemented Interfaces:
Iterable<Object>,ISelfValidate,ComplexFunctionDelegate<EwsServiceXmlReader>
public final class UserConfigurationDictionary extends ComplexProperty implements Iterable<Object>
Represents a user configuration's Dictionary property.
-
-
Constructor Summary
Constructors Constructor Description UserConfigurationDictionary()Initializes a new instance of "UserConfigurationDictionary" class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddElement(Object key, Object value)Adds an element with the provided key and value to the user configuration dictionary.voidchanged()Instance was changed.voidclear()Removes all item from the user configuration dictionary.booleancontainsKey(Object key)Determines whether the user configuration dictionary contains an element with the specified key.intgetCount()Gets the number of elements in the user configuration dictionary.ObjectgetElements(Object key)Gets the element with the specified key.Iterator<Object>getEnumerator()Returns an enumerator that iterates through the user configuration dictionary.booleangetIsDirty()Gets the isDirty flag.Iterator<Object>iterator()voidloadFromXml(EwsServiceXmlReader reader, XmlNamespace xmlNamespace, String xmlElementName)Loads from XML.booleanremove(Object key)Removes the element with the specified key from the user configuration dictionary.voidsetElements(Object key, Object value)Sets the element with the specified key.voidsetIsDirty(boolean value)Sets the isDirty flag.booleantryGetValue(Object key, OutParam<Object> value)Gets the value associated with the specified key.booleantryReadElementFromXml(EwsServiceXmlReader reader)Tries to read element from XML.voidwriteElementsToXml(EwsServiceXmlWriter writer)Writes elements to XML.-
Methods inherited from class microsoft.exchange.webservices.data.property.complex.ComplexProperty
addOnChangeEvent, canSetFieldValue, clearChangeEvents, clearChangeLog, func, getNamespace, internalValidate, loadFromXml, readAttributesFromXml, readTextValueFromXml, removeChangeEvent, setNamespace, tryReadElementFromXmlToPatch, updateFromXml, updateFromXml, validate, writeAttributesToXml, writeToXml, writeToXml
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Constructor Detail
-
UserConfigurationDictionary
public UserConfigurationDictionary()
Initializes a new instance of "UserConfigurationDictionary" class.
-
-
Method Detail
-
getElements
public Object getElements(Object key)
Gets the element with the specified key.- Parameters:
key- The key of the element to get or set.- Returns:
- The element with the specified key.
-
setElements
public void setElements(Object key, Object value) throws Exception
Sets the element with the specified key.- Parameters:
key- The key of the element to get or setvalue- the value- Throws:
Exception- the exception
-
addElement
public void addElement(Object key, Object value) throws Exception
Adds an element with the provided key and value to the user configuration dictionary.- Parameters:
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.- Throws:
Exception- the exception
-
containsKey
public boolean containsKey(Object key)
Determines whether the user configuration dictionary contains an element with the specified key.- Parameters:
key- The key to locate in the user configuration dictionary.- Returns:
- true if the user configuration dictionary contains an element with the key; otherwise false.
-
remove
public boolean remove(Object key)
Removes the element with the specified key from the user configuration dictionary.- Parameters:
key- The key of the element to remove.- Returns:
- true if the element is successfully removed; otherwise false.
-
tryGetValue
public boolean tryGetValue(Object key, OutParam<Object> value)
Gets the value associated with the specified key.- Parameters:
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.- Returns:
- true if the user configuration dictionary contains the key; otherwise false.
-
getCount
public int getCount()
Gets the number of elements in the user configuration dictionary.- Returns:
- the count
-
clear
public void clear()
Removes all item from the user configuration dictionary.
-
getEnumerator
public Iterator<Object> getEnumerator()
Returns an enumerator that iterates through the user configuration dictionary.- Returns:
- An IEnumerator that can be used to iterate through the user configuration dictionary.
-
getIsDirty
public boolean getIsDirty()
Gets the isDirty flag.- Returns:
- the checks if is dirty
-
setIsDirty
public void setIsDirty(boolean value)
Sets the isDirty flag.- Parameters:
value- the new checks if is dirty
-
changed
public void changed()
Instance was changed.- Overrides:
changedin classComplexProperty
-
writeElementsToXml
public void writeElementsToXml(EwsServiceXmlWriter writer) throws XMLStreamException, ServiceXmlSerializationException
Writes elements to XML.- Overrides:
writeElementsToXmlin classComplexProperty- Parameters:
writer- accepts EwsServiceXmlWriter- Throws:
XMLStreamException- the XML stream exceptionServiceXmlSerializationException- the service xml serialization exception
-
loadFromXml
public void loadFromXml(EwsServiceXmlReader reader, XmlNamespace xmlNamespace, String xmlElementName) throws Exception
Description copied from class:ComplexPropertyLoads from XML.- Overrides:
loadFromXmlin classComplexProperty- Parameters:
reader- The reader.xmlNamespace- the xml namespacexmlElementName- Name of the XML element.- Throws:
Exception- the exception
-
tryReadElementFromXml
public boolean tryReadElementFromXml(EwsServiceXmlReader reader) throws Exception
Description copied from class:ComplexPropertyTries to read element from XML.- Overrides:
tryReadElementFromXmlin classComplexProperty- Parameters:
reader- The reader.- Returns:
- True if element was read.
- Throws:
Exception- the exception
-
-