microsoft.exchange.webservices.data
Class WorkingHours

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

public final class WorkingHours
extends ComplexProperty

Represents the working hours for a specific time zone.


Constructor Summary
protected WorkingHours()
          Instantiates a new working hours.
 
Method Summary
 java.util.Collection<DayOfTheWeek> getDaysOfTheWeek()
          Gets the working days of the attendees.
 long getEndTime()
          Gets the time of the day the attendee stops working.
 long getStartTime()
          Gets the time of the day the attendee starts working.
 TimeZoneDefinition getTimeZone()
          Gets the time zone to which the working hours apply.
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

WorkingHours

protected WorkingHours()
Instantiates a new working hours.

Method Detail

tryReadElementFromXml

protected boolean tryReadElementFromXml(microsoft.exchange.webservices.data.EwsServiceXmlReader reader)
                                 throws java.lang.Exception
Tries to read element from XML.

Overrides:
tryReadElementFromXml in class ComplexProperty
Parameters:
reader - accepts EwsServiceXmlReader
Returns:
True if element was read
Throws:
java.lang.Exception - throws Exception

getTimeZone

public TimeZoneDefinition getTimeZone()
Gets the time zone to which the working hours apply.

Returns:
the time zone

getDaysOfTheWeek

public java.util.Collection<DayOfTheWeek> getDaysOfTheWeek()
Gets the working days of the attendees.

Returns:
the days of the week

getStartTime

public long getStartTime()
Gets the time of the day the attendee starts working.

Returns:
the start time

getEndTime

public long getEndTime()
Gets the time of the day the attendee stops working.

Returns:
the end time