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

java.lang.Object
  extended by microsoft.exchange.webservices.data.property.complex.ComplexProperty
      extended by microsoft.exchange.webservices.data.property.complex.UniqueBody
All Implemented Interfaces:
ISelfValidate, ComplexFunctionDelegate<EwsServiceXmlReader>

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
UniqueBody()
          Initializes a new instance.
 
Method Summary
 BodyType getBodyType()
          Gets the type of the unique body's text.
static String getStringFromUniqueBody(UniqueBody messageBody)
          Defines an implicit conversion of UniqueBody into a string.
 String getText()
          Gets the text of the unique body.
 void readAttributesFromXml(EwsServiceXmlReader reader)
          Reads attribute from XML.
 void readTextValueFromXml(EwsServiceXmlReader reader)
          Reads attribute from XML.
 String toString()
           
 void writeAttributesToXml(EwsServiceXmlWriter writer)
          Writes attributes from XML.
 void writeElementsToXml(EwsServiceXmlWriter writer)
          Writes elements to XML.
 
Methods inherited from class microsoft.exchange.webservices.data.property.complex.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

public UniqueBody()
Initializes a new instance.

Method Detail

getStringFromUniqueBody

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

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

readAttributesFromXml

public void readAttributesFromXml(EwsServiceXmlReader reader)
                           throws Exception
Reads attribute from XML.

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

readTextValueFromXml

public void readTextValueFromXml(EwsServiceXmlReader reader)
                          throws XMLStreamException,
                                 ServiceXmlDeserializationException
Reads attribute from XML.

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

writeAttributesToXml

public void writeAttributesToXml(EwsServiceXmlWriter writer)
                          throws ServiceXmlSerializationException
Writes attributes from XML.

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

writeElementsToXml

public void writeElementsToXml(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 String getText()
Gets the text of the unique body.

Returns:
text

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2012–2015 Microsoft. All rights reserved.