|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmicrosoft.exchange.webservices.data.ComplexProperty
microsoft.exchange.webservices.data.MessageBody
public final class MessageBody
Represents the body of a message.
Constructor Summary | |
---|---|
MessageBody()
* Initializes a new instance. |
|
MessageBody(BodyType bodyType,
java.lang.String text)
* Initializes a new instance. |
|
MessageBody(java.lang.String text)
* Initializes a new instance. |
Method Summary | |
---|---|
BodyType |
getBodyType()
Gets the type of the message body's text. |
static MessageBody |
getMessageBodyFromText(java.lang.String textBody)
Defines an implicit conversation between a string and MessageBody. |
static java.lang.String |
getStringFromMessageBody(MessageBody messageBody)
* Defines an implicit conversion of MessageBody into a string. |
protected void |
readAttributesFromXml(microsoft.exchange.webservices.data.EwsServiceXmlReader reader)
* Reads attributes from XML. |
protected void |
readTextValueFromXml(microsoft.exchange.webservices.data.EwsServiceXmlReader reader)
* Reads text value from XML. |
void |
setBodyType(BodyType bodyType)
Sets the type of the message body's text. |
void |
setText(java.lang.String text)
Sets the text of the message body. |
java.lang.String |
toString()
Returns a String that represents the current Object. |
protected void |
writeAttributesToXml(microsoft.exchange.webservices.data.EwsServiceXmlWriter writer)
* Writes attributes to 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 |
---|
public MessageBody()
public MessageBody(BodyType bodyType, java.lang.String text)
bodyType
- The type of the message body's text.text
- The text of the message body.public MessageBody(java.lang.String text)
text
- The text of the message body, assumed to be HTML.Method Detail |
---|
public static MessageBody getMessageBodyFromText(java.lang.String textBody)
textBody
- The string to convert to MessageBody, assumed to be HTML.
public static java.lang.String getStringFromMessageBody(MessageBody messageBody) throws java.lang.Exception
messageBody
- The MessageBody to convert to a string.
java.lang.Exception
- the exceptionprotected void readAttributesFromXml(microsoft.exchange.webservices.data.EwsServiceXmlReader reader) throws java.lang.Exception
readAttributesFromXml
in class ComplexProperty
reader
- The reader.
java.lang.Exception
- the exceptionprotected void readTextValueFromXml(microsoft.exchange.webservices.data.EwsServiceXmlReader reader) throws javax.xml.stream.XMLStreamException, ServiceXmlDeserializationException
readTextValueFromXml
in class ComplexProperty
reader
- The reader.
javax.xml.stream.XMLStreamException
- the xML stream exception
ServiceXmlDeserializationException
- the service xml deserialization exceptionprotected void writeAttributesToXml(microsoft.exchange.webservices.data.EwsServiceXmlWriter writer) throws ServiceXmlSerializationException
writeAttributesToXml
in class ComplexProperty
writer
- The writer.
ServiceXmlSerializationException
- the service xml serialization exceptionprotected void writeElementsToXml(microsoft.exchange.webservices.data.EwsServiceXmlWriter writer) throws ServiceXmlSerializationException
writeElementsToXml
in class ComplexProperty
writer
- The writer.
ServiceXmlSerializationException
- the service xml serialization exceptionpublic BodyType getBodyType()
public void setBodyType(BodyType bodyType)
bodyType
- BodyType enumpublic void setText(java.lang.String text)
text
- message body textpublic java.lang.String toString()
toString
in class java.lang.Object
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |