Class UniqueBody
- java.lang.Object
-
- microsoft.exchange.webservices.data.property.complex.ComplexProperty
-
- 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
Constructors Constructor Description UniqueBody()Initializes a new instance.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description BodyTypegetBodyType()Gets the type of the unique body's text.static StringgetStringFromUniqueBody(UniqueBody messageBody)Defines an implicit conversion of UniqueBody into a string.StringgetText()Gets the text of the unique body.voidreadAttributesFromXml(EwsServiceXmlReader reader)Reads attribute from XML.voidreadTextValueFromXml(EwsServiceXmlReader reader)Reads attribute from XML.StringtoString()voidwriteAttributesToXml(EwsServiceXmlWriter writer)Writes attributes from XML.voidwriteElementsToXml(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
-
-
-
-
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:
readAttributesFromXmlin classComplexProperty- Parameters:
reader- the reader- Throws:
Exception- the exception
-
readTextValueFromXml
public void readTextValueFromXml(EwsServiceXmlReader reader) throws XMLStreamException, ServiceXmlDeserializationException
Reads attribute from XML.- Overrides:
readTextValueFromXmlin classComplexProperty- Parameters:
reader- the reader- Throws:
XMLStreamException- the xml stream exceptionServiceXmlDeserializationException- the service xml deserialization exception
-
writeAttributesToXml
public void writeAttributesToXml(EwsServiceXmlWriter writer) throws ServiceXmlSerializationException
Writes attributes from XML.- Overrides:
writeAttributesToXmlin classComplexProperty- Parameters:
writer- the writer- Throws:
ServiceXmlSerializationException- the service xml serialization exception
-
writeElementsToXml
public void writeElementsToXml(EwsServiceXmlWriter writer) throws ServiceXmlSerializationException
Writes elements to XML.- Overrides:
writeElementsToXmlin classComplexProperty- 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
-
-