microsoft.exchange.webservices.data
Class UserConfigurationDictionary

java.lang.Object
  extended by microsoft.exchange.webservices.data.ComplexProperty
      extended by microsoft.exchange.webservices.data.UserConfigurationDictionary
All Implemented Interfaces:
java.lang.Iterable<java.lang.Object>

public final class UserConfigurationDictionary
extends ComplexProperty
implements java.lang.Iterable<java.lang.Object>

Represents a user configuration's Dictionary property.


Constructor Summary
protected UserConfigurationDictionary()
          Initializes a new instance of "UserConfigurationDictionary" class.
 
Method Summary
 void addElement(java.lang.Object key, java.lang.Object value)
          Adds an element with the provided key and value to the user configuration dictionary.
protected  void changed()
          Instance was changed.
 void clear()
          Removes all items from the user configuration dictionary.
 boolean containsKey(java.lang.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.
 java.lang.Object getElements(java.lang.Object key)
          Gets the element with the specified key.
 java.util.Iterator getEnumerator()
          Gets the enumerator.
protected  boolean getIsDirty()
          Gets the isDirty flag.
 java.util.Iterator<java.lang.Object> iterator()
           
protected  void loadFromXml(microsoft.exchange.webservices.data.EwsServiceXmlReader reader, microsoft.exchange.webservices.data.XmlNamespace xmlNamespace, java.lang.String xmlElementName)
          * Loads from XML.
 boolean remove(java.lang.Object key)
          Removes the element with the specified key from the user configuration dictionary.
 void setElements(java.lang.Object key, java.lang.Object value)
          Sets the element with the specified key.
protected  void setIsDirty(boolean value)
          Sets the isDirty flag.
 boolean tryGetValue(java.lang.Object key, OutParam<java.lang.Object> value)
          Gets the value associated with the specified key.
protected  boolean tryReadElementFromXml(microsoft.exchange.webservices.data.EwsServiceXmlReader reader)
          * Tries to read element from XML.
protected  void writeElementsToXml(microsoft.exchange.webservices.data.EwsServiceXmlWriter writer)
          * Writes elements to XML.
 
Methods inherited from class microsoft.exchange.webservices.data.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
 

Constructor Detail

UserConfigurationDictionary

protected UserConfigurationDictionary()
Initializes a new instance of "UserConfigurationDictionary" class.

Method Detail

getElements

public java.lang.Object getElements(java.lang.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(java.lang.Object key,
                        java.lang.Object value)
                 throws java.lang.Exception
Sets the element with the specified key.

Parameters:
key - The key of the element to get or set
value - the value
Throws:
java.lang.Exception - the exception

addElement

public void addElement(java.lang.Object key,
                       java.lang.Object value)
                throws java.lang.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:
java.lang.Exception - the exception

containsKey

public boolean containsKey(java.lang.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(java.lang.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(java.lang.Object key,
                           OutParam<java.lang.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 items from the user configuration dictionary.


getEnumerator

public java.util.Iterator getEnumerator()
Gets the enumerator.

Returns:
the enumerator

getIsDirty

protected boolean getIsDirty()
Gets the isDirty flag.

Returns:
the checks if is dirty

setIsDirty

protected void setIsDirty(boolean value)
Sets the isDirty flag.

Parameters:
value - the new checks if is dirty

changed

protected void changed()
Instance was changed.

Overrides:
changed in class ComplexProperty

writeElementsToXml

protected void writeElementsToXml(microsoft.exchange.webservices.data.EwsServiceXmlWriter writer)
                           throws javax.xml.stream.XMLStreamException,
                                  ServiceXmlSerializationException
* Writes elements to XML.

Overrides:
writeElementsToXml in class ComplexProperty
Parameters:
writer - accepts EwsServiceXmlWriter
Throws:
javax.xml.stream.XMLStreamException - the xML stream exception
ServiceXmlSerializationException - the service xml serialization exception

loadFromXml

protected void loadFromXml(microsoft.exchange.webservices.data.EwsServiceXmlReader reader,
                           microsoft.exchange.webservices.data.XmlNamespace xmlNamespace,
                           java.lang.String xmlElementName)
                    throws java.lang.Exception
Description copied from class: ComplexProperty
* Loads from XML.

Overrides:
loadFromXml in class ComplexProperty
Parameters:
reader - The reader.
xmlNamespace - the xml namespace
xmlElementName - Name of the XML element.
Throws:
java.lang.Exception - the exception

tryReadElementFromXml

protected boolean tryReadElementFromXml(microsoft.exchange.webservices.data.EwsServiceXmlReader reader)
                                 throws java.lang.Exception
Description copied from class: ComplexProperty
* Tries to read element from XML.

Overrides:
tryReadElementFromXml in class ComplexProperty
Parameters:
reader - The reader.
Returns:
True if element was read.
Throws:
java.lang.Exception - the exception

iterator

public java.util.Iterator<java.lang.Object> iterator()
Specified by:
iterator in interface java.lang.Iterable<java.lang.Object>