Class PhoneNumberDictionary
- java.lang.Object
-
- microsoft.exchange.webservices.data.property.complex.ComplexProperty
-
- microsoft.exchange.webservices.data.property.complex.DictionaryProperty<PhoneNumberKey,PhoneNumberEntry>
-
- 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
Constructors Constructor Description PhoneNumberDictionary()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected PhoneNumberEntrycreateEntryInstance()Creates instance of dictionary entry.protected StringgetFieldURI()Gets the field URI.StringgetPhoneNumber(PhoneNumberKey key)Gets the phone number at the specified key.voidsetPhoneNumber(PhoneNumberKey key, String value)Sets the phone number.booleantryGetValue(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
-
-
-
-
Constructor Detail
-
PhoneNumberDictionary
public PhoneNumberDictionary()
-
-
Method Detail
-
getFieldURI
protected String getFieldURI()
Gets the field URI.- Overrides:
getFieldURIin classDictionaryProperty<PhoneNumberKey,PhoneNumberEntry>- Returns:
- Field URI.
-
createEntryInstance
protected PhoneNumberEntry createEntryInstance()
Creates instance of dictionary entry.- Specified by:
createEntryInstancein classDictionaryProperty<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 keyvalue- 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 keyoutparam- the outparam- Returns:
- true if the Dictionary contains a phone number associated with the specified key; otherwise, false.
-
-