microsoft.exchange.webservices.data
Class UniqueBody

java.lang.Object
  extended by microsoft.exchange.webservices.data.ComplexProperty
      extended by microsoft.exchange.webservices.data.UniqueBody

public final class UniqueBody
extends ComplexProperty

Represents the body part of an item that is unique to the conversation the item is part of.


Constructor Summary
protected UniqueBody()
          * Initializes a new instance.
 
Method Summary
 BodyType getBodyType()
          Gets the type of the unique body's text.
static java.lang.String getStringFromUniqueBody(UniqueBody messageBody)
          * Defines an implicit conversion of UniqueBody into a string.
 java.lang.String getText()
          Gets the text of the unique body.
protected  void readAttributesFromXml(microsoft.exchange.webservices.data.EwsServiceXmlReader reader)
          * Reads attributes from XML.
protected  void readTextValueFromXml(microsoft.exchange.webservices.data.EwsServiceXmlReader reader)
          * Reads attributes from XML.
 java.lang.String toString()
           
protected  void writeAttributesToXml(microsoft.exchange.webservices.data.EwsServiceXmlWriter writer)
          * Reads attributes 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, changed, clearChangeEvents, clearChangeLog, func, getNamespace, internalValidate, loadFromXml, loadFromXml, removeChangeEvent, setNamespace, tryReadElementFromXml, tryReadElementFromXmlToPatch, updateFromXml, updateFromXml, validate, writeToXml, writeToXml
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UniqueBody

protected UniqueBody()
* Initializes a new instance.

Method Detail

getStringFromUniqueBody

public static java.lang.String getStringFromUniqueBody(UniqueBody messageBody)
                                                throws java.lang.Exception
* Defines an implicit conversion of UniqueBody into a string.

Parameters:
messageBody - the message body
Returns:
string containing the text of the UniqueBody
Throws:
java.lang.Exception - the exception

readAttributesFromXml

protected void readAttributesFromXml(microsoft.exchange.webservices.data.EwsServiceXmlReader reader)
                              throws java.lang.Exception
* Reads attributes from XML.

Overrides:
readAttributesFromXml in class ComplexProperty
Parameters:
reader - the reader
Throws:
java.lang.Exception - the exception

readTextValueFromXml

protected void readTextValueFromXml(microsoft.exchange.webservices.data.EwsServiceXmlReader reader)
                             throws javax.xml.stream.XMLStreamException,
                                    ServiceXmlDeserializationException
* Reads attributes from XML.

Overrides:
readTextValueFromXml in class ComplexProperty
Parameters:
reader - the reader
Throws:
javax.xml.stream.XMLStreamException - the xML stream exception
ServiceXmlDeserializationException - the service xml deserialization exception

writeAttributesToXml

protected void writeAttributesToXml(microsoft.exchange.webservices.data.EwsServiceXmlWriter writer)
                             throws ServiceXmlSerializationException
* Reads attributes from XML.

Overrides:
writeAttributesToXml in class ComplexProperty
Parameters:
writer - the writer
Throws:
ServiceXmlSerializationException - the service xml serialization exception

writeElementsToXml

protected void writeElementsToXml(microsoft.exchange.webservices.data.EwsServiceXmlWriter writer)
                           throws ServiceXmlSerializationException
* Writes elements to XML.

Overrides:
writeElementsToXml in class ComplexProperty
Parameters:
writer - the writer
Throws:
ServiceXmlSerializationException - the service xml serialization exception

getBodyType

public BodyType getBodyType()
Gets the type of the unique body's text.

Returns:
bodytype

getText

public java.lang.String getText()
Gets the text of the unique body.

Returns:
text

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object