Class OofReply
- java.lang.Object
-
- microsoft.exchange.webservices.data.misc.availability.OofReply
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetCulture()Gets the culture of the reply.StringgetMessage()Gets the the reply message.static OofReplygetOofReplyFromString(String message)Initializes a new instance of the class.static StringgetStringFromOofReply(OofReply oofReply)Gets the string from oof reply.voidloadFromXml(EwsServiceXmlReader reader, String xmlElementName)Loads from XML.voidsetCulture(String culture)Sets the culture.voidsetMessage(String message)Sets the message.StringtoString()Obtains a string representation of the reply.static voidwriteEmptyReplyToXml(EwsServiceXmlWriter writer, String xmlElementName)Writes an empty OofReply to XML.voidwriteToXml(EwsServiceXmlWriter writer, String xmlElementName)Writes to XML.
-
-
-
Method Detail
-
writeEmptyReplyToXml
public static void writeEmptyReplyToXml(EwsServiceXmlWriter writer, String xmlElementName) throws XMLStreamException
Writes an empty OofReply to XML.- Parameters:
writer- the writerxmlElementName- 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 readerxmlElementName- 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 writerxmlElementName- the xml element name- Throws:
XMLStreamException- the XML stream exceptionServiceXmlSerializationException- the service xml serialization exception
-
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
-
-