Class PhysicalAddressEntry
- java.lang.Object
-
- microsoft.exchange.webservices.data.property.complex.ComplexProperty
-
- microsoft.exchange.webservices.data.property.complex.DictionaryEntryProperty<PhysicalAddressKey>
-
- microsoft.exchange.webservices.data.property.complex.PhysicalAddressEntry
-
- All Implemented Interfaces:
ISelfValidate,ComplexFunctionDelegate<EwsServiceXmlReader>,IPropertyBagChangedDelegate<String>
public final class PhysicalAddressEntry extends DictionaryEntryProperty<PhysicalAddressKey> implements IPropertyBagChangedDelegate<String>
Represents an entry of an PhysicalAddressDictionary.
-
-
Constructor Summary
Constructors Constructor Description PhysicalAddressEntry()Initializes a new instance of PhysicalAddressEntry.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclearChangeLog()Clears the change log.StringgetCity()Gets the city.StringgetCountryOrRegion()Gets the country or region.StringgetPostalCode()Gets the postal code.StringgetState()Gets the state.StringgetStreet()Gets the street.voidpropertyBagChanged(SimplePropertyBag<String> simplePropertyBag)Property was changed.voidsetCity(String value)Sets the city.voidsetCountryOrRegion(String value)Sets the country or region.voidsetPostalCode(String value)Sets the postal code.voidsetState(String value)Sets the state.voidsetStreet(String value)Sets the street.booleantryReadElementFromXml(EwsServiceXmlReader reader)Writes elements to XML.protected booleanwriteDeleteUpdateToXml(EwsServiceXmlWriter writer, ServiceObject ewsObject)Writes the delete update to XML.voidwriteElementsToXml(EwsServiceXmlWriter writer)Writes elements to XML.protected booleanwriteSetUpdateToXml(EwsServiceXmlWriter writer, ServiceObject ewsObject, String ownerDictionaryXmlElementName)Writes the update to XML.-
Methods inherited from class microsoft.exchange.webservices.data.property.complex.DictionaryEntryProperty
getKey, readAttributesFromXml, setKey, writeAttributesToXml
-
Methods inherited from class microsoft.exchange.webservices.data.property.complex.ComplexProperty
addOnChangeEvent, canSetFieldValue, changed, clearChangeEvents, func, getNamespace, internalValidate, loadFromXml, loadFromXml, readTextValueFromXml, removeChangeEvent, setNamespace, tryReadElementFromXmlToPatch, updateFromXml, updateFromXml, validate, writeToXml, writeToXml
-
-
-
-
Constructor Detail
-
PhysicalAddressEntry
public PhysicalAddressEntry()
Initializes a new instance of PhysicalAddressEntry.
-
-
Method Detail
-
propertyBagChanged
public void propertyBagChanged(SimplePropertyBag<String> simplePropertyBag)
Property was changed.- Specified by:
propertyBagChangedin interfaceIPropertyBagChangedDelegate<String>- Parameters:
simplePropertyBag- the simple property bag
-
getStreet
public String getStreet() throws Exception
Gets the street.- Returns:
- the street
- Throws:
Exception- the exception
-
setStreet
public void setStreet(String value) throws Exception
Sets the street.- Parameters:
value- the new street- Throws:
Exception- the exception
-
getCity
public String getCity() throws Exception
Gets the city.- Returns:
- the city
- Throws:
Exception- the exception
-
getState
public String getState() throws Exception
Gets the state.- Returns:
- the state
- Throws:
Exception- the exception
-
getCountryOrRegion
public String getCountryOrRegion() throws Exception
Gets the country or region.- Returns:
- the country or region
- Throws:
Exception- the exception
-
setCountryOrRegion
public void setCountryOrRegion(String value)
Sets the country or region.- Parameters:
value- the new country or region
-
getPostalCode
public String getPostalCode()
Gets the postal code.- Returns:
- the postal code
-
setPostalCode
public void setPostalCode(String value)
Sets the postal code.- Parameters:
value- the new postal code
-
clearChangeLog
public void clearChangeLog()
Clears the change log.- Overrides:
clearChangeLogin classComplexProperty
-
tryReadElementFromXml
public boolean tryReadElementFromXml(EwsServiceXmlReader reader) throws Exception
Writes elements to XML.- Overrides:
tryReadElementFromXmlin classComplexProperty- Parameters:
reader- the reader- Returns:
- true, if successful
- Throws:
Exception- the exception
-
writeElementsToXml
public void writeElementsToXml(EwsServiceXmlWriter writer) throws XMLStreamException, ServiceXmlSerializationException
Writes elements to XML.- Overrides:
writeElementsToXmlin classComplexProperty- Parameters:
writer- the writer- Throws:
XMLStreamException- the XML stream exceptionServiceXmlSerializationException- the service xml serialization exception
-
writeSetUpdateToXml
protected boolean writeSetUpdateToXml(EwsServiceXmlWriter writer, ServiceObject ewsObject, String ownerDictionaryXmlElementName) throws XMLStreamException, ServiceXmlSerializationException
Writes the update to XML.- Overrides:
writeSetUpdateToXmlin classDictionaryEntryProperty<PhysicalAddressKey>- Parameters:
writer- the writerewsObject- the ews objectownerDictionaryXmlElementName- the owner dictionary xml element name- Returns:
- true if update XML was written
- Throws:
XMLStreamException- the XML stream exceptionServiceXmlSerializationException- the service xml serialization exception
-
writeDeleteUpdateToXml
protected boolean writeDeleteUpdateToXml(EwsServiceXmlWriter writer, ServiceObject ewsObject) throws XMLStreamException, ServiceXmlSerializationException
Writes the delete update to XML.- Overrides:
writeDeleteUpdateToXmlin classDictionaryEntryProperty<PhysicalAddressKey>- Parameters:
writer- the writerewsObject- the ews object- Returns:
- true if update XML was written
- Throws:
XMLStreamException- the XML stream exceptionServiceXmlSerializationException- the service xml serialization exception
-
-