microsoft.exchange.webservices.data
Class PhysicalAddressEntry

java.lang.Object
  extended by microsoft.exchange.webservices.data.ComplexProperty
      extended by microsoft.exchange.webservices.data.DictionaryEntryProperty<PhysicalAddressKey>
          extended by microsoft.exchange.webservices.data.PhysicalAddressEntry

public final class PhysicalAddressEntry
extends DictionaryEntryProperty<PhysicalAddressKey>

Represents an entry of an PhysicalAddressDictionary.


Constructor Summary
PhysicalAddressEntry()
          Initializes a new instance of PhysicalAddressEntry.
 
Method Summary
protected  void clearChangeLog()
          Clears the change log.
 java.lang.String getCity()
          Gets the city.
 java.lang.String getCountryOrRegion()
          Gets the country or region.
 java.lang.String getPostalCode()
          Gets the postal code.
 java.lang.String getState()
          Gets the state.
 java.lang.String getStreet()
          Gets the street.
 void propertyBagChanged(microsoft.exchange.webservices.data.SimplePropertyBag simplePropertyBag)
          * Property was changed.
 void setCity(java.lang.String value)
          Sets the city.
 void setCountryOrRegion(java.lang.String value)
          Sets the country or region.
 void setPostalCode(java.lang.String value)
          Sets the postal code.
 void setState(java.lang.String value)
          Sets the state.
 void setStreet(java.lang.String value)
          Sets the street.
protected  boolean tryReadElementFromXml(microsoft.exchange.webservices.data.EwsServiceXmlReader reader)
          Writes elements to XML.
protected  boolean writeDeleteUpdateToXml(microsoft.exchange.webservices.data.EwsServiceXmlWriter writer, ServiceObject ewsObject)
          Writes the delete update to XML.
protected  void writeElementsToXml(microsoft.exchange.webservices.data.EwsServiceXmlWriter writer)
          Writes elements to XML.
protected  boolean writeSetUpdateToXml(microsoft.exchange.webservices.data.EwsServiceXmlWriter writer, ServiceObject ewsObject, java.lang.String ownerDictionaryXmlElementName)
          Writes the update to XML.
 
Methods inherited from class microsoft.exchange.webservices.data.DictionaryEntryProperty
getKey, readAttributesFromXml, setKey, writeAttributesToXml
 
Methods inherited from class microsoft.exchange.webservices.data.ComplexProperty
addOnChangeEvent, canSetFieldValue, changed, clearChangeEvents, func, getNamespace, internalValidate, loadFromXml, loadFromXml, readTextValueFromXml, removeChangeEvent, setNamespace, tryReadElementFromXmlToPatch, updateFromXml, updateFromXml, validate, writeToXml, writeToXml
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PhysicalAddressEntry

public PhysicalAddressEntry()
Initializes a new instance of PhysicalAddressEntry.

Method Detail

propertyBagChanged

public void propertyBagChanged(microsoft.exchange.webservices.data.SimplePropertyBag simplePropertyBag)
* Property was changed.

Parameters:
simplePropertyBag - the simple property bag

getStreet

public java.lang.String getStreet()
                           throws java.lang.Exception
Gets the street.

Returns:
the street
Throws:
java.lang.Exception - the exception

setStreet

public void setStreet(java.lang.String value)
               throws java.lang.Exception
Sets the street.

Parameters:
value - the new street
Throws:
java.lang.Exception - the exception

getCity

public java.lang.String getCity()
                         throws java.lang.Exception
Gets the city.

Returns:
the city
Throws:
java.lang.Exception - the exception

setCity

public void setCity(java.lang.String value)
Sets the city.

Parameters:
value - the new city

getState

public java.lang.String getState()
                          throws java.lang.Exception
Gets the state.

Returns:
the state
Throws:
java.lang.Exception - the exception

setState

public void setState(java.lang.String value)
Sets the state.

Parameters:
value - the new state

getCountryOrRegion

public java.lang.String getCountryOrRegion()
                                    throws java.lang.Exception
Gets the country or region.

Returns:
the country or region
Throws:
java.lang.Exception - the exception

setCountryOrRegion

public void setCountryOrRegion(java.lang.String value)
Sets the country or region.

Parameters:
value - the new country or region

getPostalCode

public java.lang.String getPostalCode()
Gets the postal code.

Returns:
the postal code

setPostalCode

public void setPostalCode(java.lang.String value)
Sets the postal code.

Parameters:
value - the new postal code

clearChangeLog

protected void clearChangeLog()
Clears the change log.

Overrides:
clearChangeLog in class ComplexProperty

tryReadElementFromXml

protected boolean tryReadElementFromXml(microsoft.exchange.webservices.data.EwsServiceXmlReader reader)
                                 throws java.lang.Exception
Writes elements to XML.

Overrides:
tryReadElementFromXml in class ComplexProperty
Parameters:
reader - the reader
Returns:
true, if successful
Throws:
java.lang.Exception - the exception

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 - the writer
Throws:
javax.xml.stream.XMLStreamException - the xML stream exception
ServiceXmlSerializationException - the service xml serialization exception

writeSetUpdateToXml

protected boolean writeSetUpdateToXml(microsoft.exchange.webservices.data.EwsServiceXmlWriter writer,
                                      ServiceObject ewsObject,
                                      java.lang.String ownerDictionaryXmlElementName)
                               throws javax.xml.stream.XMLStreamException,
                                      ServiceXmlSerializationException
Writes the update to XML.

Overrides:
writeSetUpdateToXml in class DictionaryEntryProperty<PhysicalAddressKey>
Parameters:
writer - the writer
ewsObject - the ews object
ownerDictionaryXmlElementName - the owner dictionary xml element name
Returns:
True if update XML was written.
Throws:
javax.xml.stream.XMLStreamException - the xML stream exception
ServiceXmlSerializationException - the service xml serialization exception

writeDeleteUpdateToXml

protected boolean writeDeleteUpdateToXml(microsoft.exchange.webservices.data.EwsServiceXmlWriter writer,
                                         ServiceObject ewsObject)
                                  throws javax.xml.stream.XMLStreamException,
                                         ServiceXmlSerializationException
Writes the delete update to XML.

Overrides:
writeDeleteUpdateToXml in class DictionaryEntryProperty<PhysicalAddressKey>
Parameters:
writer - the writer
ewsObject - the ews object
Returns:
True if update XML was written.
Throws:
javax.xml.stream.XMLStreamException - the xML stream exception
ServiceXmlSerializationException - the service xml serialization exception