microsoft.exchange.webservices.data.misc.availability
Class OofReply

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

public final class OofReply
extends Object

Represents an Out of Office response.


Constructor Summary
OofReply()
          Initializes a new instance of the class.
OofReply(String message)
          Initializes a new instance of the class.
 
Method Summary
 String getCulture()
          Gets the culture of the reply.
 String getMessage()
          Gets the the reply message.
static OofReply getOofReplyFromString(String message)
          Initializes a new instance of the class.
static String getStringFromOofReply(OofReply oofReply)
          Gets the string from oof reply.
 void loadFromXml(EwsServiceXmlReader reader, String xmlElementName)
          Loads from XML.
 void setCulture(String culture)
          Sets the culture.
 void setMessage(String message)
          Sets the message.
 String toString()
          Obtains a string representation of the reply.
static void writeEmptyReplyToXml(EwsServiceXmlWriter writer, String xmlElementName)
          Writes an empty OofReply to XML.
 void writeToXml(EwsServiceXmlWriter writer, 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(String message)
Initializes a new instance of the class.

Parameters:
message - the message
Method Detail

writeEmptyReplyToXml

public static void writeEmptyReplyToXml(EwsServiceXmlWriter writer,
                                        String xmlElementName)
                                 throws XMLStreamException
Writes an empty OofReply to XML.

Parameters:
writer - the writer
xmlElementName - the xml element name
Throws:
XMLStreamException - the XML stream exception

getOofReplyFromString

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

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

getStringFromOofReply

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

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

loadFromXml

public void loadFromXml(EwsServiceXmlReader reader,
                        String xmlElementName)
                 throws Exception
Loads from XML.

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

writeToXml

public void writeToXml(EwsServiceXmlWriter writer,
                       String xmlElementName)
                throws XMLStreamException,
                       ServiceXmlSerializationException
Writes to XML.

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

toString

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

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

getCulture

public String getCulture()
Gets the culture of the reply.

Returns:
the culture

setCulture

public void setCulture(String culture)
Sets the culture.

Parameters:
culture - the new culture

getMessage

public String getMessage()
Gets the the reply message.

Returns:
the message

setMessage

public void setMessage(String message)
Sets the message.

Parameters:
message - the new message


Copyright © 2012–2015 Microsoft. All rights reserved.