microsoft.exchange.webservices.data.property.complex
Class PhoneNumberDictionary

java.lang.Object
  extended by microsoft.exchange.webservices.data.property.complex.ComplexProperty
      extended by microsoft.exchange.webservices.data.property.complex.DictionaryProperty<PhoneNumberKey,PhoneNumberEntry>
          extended by microsoft.exchange.webservices.data.property.complex.PhoneNumberDictionary
All Implemented Interfaces:
ICustomXmlUpdateSerializer, ISelfValidate, ComplexFunctionDelegate<EwsServiceXmlReader>, IComplexPropertyChangedDelegate<PhoneNumberEntry>

public final class PhoneNumberDictionary
extends DictionaryProperty<PhoneNumberKey,PhoneNumberEntry>

Represents a dictionary of phone numbers.


Constructor Summary
PhoneNumberDictionary()
           
 
Method Summary
protected  PhoneNumberEntry createEntryInstance()
          Creates instance of dictionary entry.
protected  String getFieldURI()
          Gets the field URI.
 String getPhoneNumber(PhoneNumberKey key)
          Gets the phone number at the specified key.
 void setPhoneNumber(PhoneNumberKey key, String value)
          Sets the phone number.
 boolean tryGetValue(PhoneNumberKey key, OutParam<String> outparam)
          Tries to get the phone number associated with the specified key.
 
Methods inherited from class microsoft.exchange.webservices.data.property.complex.DictionaryProperty
clearChangeLog, complexPropertyChanged, contains, createEntry, getEntries, getEntryXmlElementName, getFieldIndex, internalAdd, internalAddOrReplace, internalRemove, loadFromXml, writeDeleteUpdateToXml, writeElementsToXml, writeSetUpdateToXml, writeToXml
 
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

PhoneNumberDictionary

public PhoneNumberDictionary()
Method Detail

getFieldURI

protected String getFieldURI()
Gets the field URI.

Overrides:
getFieldURI in class DictionaryProperty<PhoneNumberKey,PhoneNumberEntry>
Returns:
Field URI.

createEntryInstance

protected PhoneNumberEntry createEntryInstance()
Creates instance of dictionary entry.

Specified by:
createEntryInstance in class DictionaryProperty<PhoneNumberKey,PhoneNumberEntry>
Returns:
New instance.

getPhoneNumber

public String getPhoneNumber(PhoneNumberKey key)
Gets the phone number at the specified key.

Parameters:
key - The phone number key.
Returns:
The phone number at the specified key if found; otherwise null.

setPhoneNumber

public void setPhoneNumber(PhoneNumberKey key,
                           String value)
Sets the phone number.

Parameters:
key - the key
value - the value

tryGetValue

public boolean tryGetValue(PhoneNumberKey key,
                           OutParam<String> outparam)
Tries to get the phone number associated with the specified key.

Parameters:
key - the key
outparam - the outparam
Returns:
true if the Dictionary contains a phone number associated with the specified key; otherwise, false.


Copyright © 2012–2015 Microsoft. All rights reserved.