microsoft.exchange.webservices.data
Class OofReply

java.lang.Object
  extended by microsoft.exchange.webservices.data.OofReply

public final class OofReply
extends java.lang.Object

Represents an Out of Office response.


Constructor Summary
OofReply()
          * Initializes a new instance of the class.
OofReply(java.lang.String message)
          * Initializes a new instance of the class.
 
Method Summary
 java.lang.String getCulture()
          * Gets the culture of the reply.
 java.lang.String getMessage()
          * Gets the the reply message.
static OofReply getOofReplyFromString(java.lang.String message)
          * Initializes a new instance of the class.
static java.lang.String getStringFromOofReply(OofReply oofReply)
          Gets the string from oof reply.
protected  void loadFromXml(microsoft.exchange.webservices.data.EwsServiceXmlReader reader, java.lang.String xmlElementName)
          * Loads from XML.
 void setCulture(java.lang.String culture)
          Sets the culture.
 void setMessage(java.lang.String message)
          Sets the message.
 java.lang.String toString()
          Obtains a string representation of the reply.
protected static void writeEmptyReplyToXml(microsoft.exchange.webservices.data.EwsServiceXmlWriter writer, java.lang.String xmlElementName)
          * Writes an empty OofReply to XML.
protected  void writeToXml(microsoft.exchange.webservices.data.EwsServiceXmlWriter writer, java.lang.String xmlElementName)
          * Writes to XML.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

OofReply

public OofReply()
* Initializes a new instance of the class.


OofReply

public OofReply(java.lang.String message)
* Initializes a new instance of the class.

Parameters:
message - the message
Method Detail

writeEmptyReplyToXml

protected static void writeEmptyReplyToXml(microsoft.exchange.webservices.data.EwsServiceXmlWriter writer,
                                           java.lang.String xmlElementName)
                                    throws javax.xml.stream.XMLStreamException
* Writes an empty OofReply to XML.

Parameters:
writer - the writer
xmlElementName - the xml element name
Throws:
javax.xml.stream.XMLStreamException - the xML stream exception

getOofReplyFromString

public static OofReply getOofReplyFromString(java.lang.String message)
* Initializes a new instance of the class.

Parameters:
message - the message
Returns:
the oof reply from string

getStringFromOofReply

public static java.lang.String getStringFromOofReply(OofReply oofReply)
                                              throws java.lang.Exception
Gets the string from oof reply.

Parameters:
oofReply - the oof reply
Returns:
the string from oof reply
Throws:
java.lang.Exception - the exception

loadFromXml

protected void loadFromXml(microsoft.exchange.webservices.data.EwsServiceXmlReader reader,
                           java.lang.String xmlElementName)
                    throws java.lang.Exception
* Loads from XML.

Parameters:
reader - the reader
xmlElementName - the xml element name
Throws:
java.lang.Exception - the exception

writeToXml

protected void writeToXml(microsoft.exchange.webservices.data.EwsServiceXmlWriter writer,
                          java.lang.String xmlElementName)
                   throws javax.xml.stream.XMLStreamException,
                          ServiceXmlSerializationException
* Writes to XML.

Parameters:
writer - the writer
xmlElementName - the xml element name
Throws:
javax.xml.stream.XMLStreamException - the xML stream exception
ServiceXmlSerializationException - the service xml serialization exception

toString

public java.lang.String toString()
Obtains a string representation of the reply.

Overrides:
toString in class java.lang.Object
Returns:
A string containing the reply message.

getCulture

public java.lang.String getCulture()
* Gets the culture of the reply.

Returns:
the culture

setCulture

public void setCulture(java.lang.String culture)
Sets the culture.

Parameters:
culture - the new culture

getMessage

public java.lang.String getMessage()
* Gets the the reply message.

Returns:
the message

setMessage

public void setMessage(java.lang.String message)
Sets the message.

Parameters:
message - the new message