microsoft.exchange.webservices.data
Class Suggestion

java.lang.Object
  extended by microsoft.exchange.webservices.data.ComplexProperty
      extended by microsoft.exchange.webservices.data.Suggestion

public final class Suggestion
extends ComplexProperty

Represents a suggestion for a specific date.


Constructor Summary
protected Suggestion()
          Initializes a new instance of the Suggestion class.
 
Method Summary
 java.util.Date getDate()
          Gets the date and time of the suggestion.
 SuggestionQuality getQuality()
          Gets the quality of the suggestion.
 java.util.Collection<TimeSuggestion> getTimeSuggestions()
          Gets a collection of suggested times within the suggested day.
protected  boolean tryReadElementFromXml(microsoft.exchange.webservices.data.EwsServiceXmlReader reader)
          Tries to read element from XML.
 
Methods inherited from class microsoft.exchange.webservices.data.ComplexProperty
addOnChangeEvent, canSetFieldValue, changed, clearChangeEvents, clearChangeLog, func, getNamespace, internalValidate, loadFromXml, loadFromXml, readAttributesFromXml, readTextValueFromXml, removeChangeEvent, setNamespace, tryReadElementFromXmlToPatch, updateFromXml, updateFromXml, validate, writeAttributesToXml, writeElementsToXml, writeToXml, writeToXml
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Suggestion

protected Suggestion()
Initializes a new instance of the Suggestion class.

Method Detail

tryReadElementFromXml

protected boolean tryReadElementFromXml(microsoft.exchange.webservices.data.EwsServiceXmlReader reader)
                                 throws javax.xml.stream.XMLStreamException,
                                        ServiceXmlDeserializationException,
                                        java.lang.Exception
Tries to read element from XML.

Overrides:
tryReadElementFromXml in class ComplexProperty
Parameters:
reader - the reader
Returns:
True if appropriate element was read.
Throws:
javax.xml.stream.XMLStreamException - the xML stream exception
ServiceXmlDeserializationException - the service xml deserialization exception
java.lang.Exception - the exception

getDate

public java.util.Date getDate()
Gets the date and time of the suggestion.

Returns:
the date

getQuality

public SuggestionQuality getQuality()
Gets the quality of the suggestion.

Returns:
the quality

getTimeSuggestions

public java.util.Collection<TimeSuggestion> getTimeSuggestions()
Gets a collection of suggested times within the suggested day.

Returns:
the time suggestions