microsoft.exchange.webservices.data.property.complex
Class TimeChange

java.lang.Object
  extended by microsoft.exchange.webservices.data.property.complex.ComplexProperty
      extended by microsoft.exchange.webservices.data.property.complex.TimeChange
All Implemented Interfaces:
ISelfValidate, ComplexFunctionDelegate<EwsServiceXmlReader>

public final class TimeChange
extends ComplexProperty

Represents a change of time for a time zone.


Constructor Summary
TimeChange()
          Initializes a new instance of the "TimeChange" class.
TimeChange(TimeSpan offset)
          Initializes a new instance of the class.
TimeChange(TimeSpan offset, Time time)
          Initializes a new instance of the "TimeChange" class.
 
Method Summary
 Date getAbsoluteDate()
          Gets the absolute date.
 TimeSpan getOffset()
          Gets the offset since the beginning of the year when the change occurs.
 microsoft.exchange.webservices.data.property.complex.TimeChangeRecurrence getRecurrence()
          Gets the recurrence.
 Time getTime()
          Gets the time.
 String getTimeZoneName()
          Gets the name of the associated time zone.
 void readAttributesFromXml(EwsServiceXmlReader reader)
          Reads the attribute from XML.
 void setAbsoluteDate(Date absoluteDate)
          Sets the absolute date.
 void setOffset(TimeSpan offset)
          Sets the offset since the beginning of the year when the change occurs.
 void setRecurrence(microsoft.exchange.webservices.data.property.complex.TimeChangeRecurrence recurrence)
          Sets the recurrence.
 void setTime(Time time)
          Sets the time.
 void setTimeZoneName(String timeZoneName)
          Sets the name of the associated time zone.
 boolean tryReadElementFromXml(EwsServiceXmlReader reader)
          Tries to read element from XML.
 void writeAttributesToXml(EwsServiceXmlWriter writer)
          Writes the attribute to XML.
 void writeElementsToXml(EwsServiceXmlWriter writer)
          Writes elements to XML.
 
Methods inherited from class microsoft.exchange.webservices.data.property.complex.ComplexProperty
addOnChangeEvent, canSetFieldValue, changed, clearChangeEvents, clearChangeLog, func, getNamespace, internalValidate, loadFromXml, loadFromXml, readTextValueFromXml, removeChangeEvent, setNamespace, tryReadElementFromXmlToPatch, updateFromXml, updateFromXml, validate, writeToXml, writeToXml
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TimeChange

public TimeChange()
Initializes a new instance of the "TimeChange" class.


TimeChange

public TimeChange(TimeSpan offset)
Initializes a new instance of the class.

Parameters:
offset - The offset since the beginning of the year when the change occurs.

TimeChange

public TimeChange(TimeSpan offset,
                  Time time)
Initializes a new instance of the "TimeChange" class.

Parameters:
offset - The offset since the beginning of the year when the change occurs.
time - The time at which the change occurs.
Method Detail

getTimeZoneName

public String getTimeZoneName()
Gets the name of the associated time zone.

Returns:
the timeZoneName

setTimeZoneName

public void setTimeZoneName(String timeZoneName)
Sets the name of the associated time zone.

Parameters:
timeZoneName - the timeZoneName to set

getOffset

public TimeSpan getOffset()
Gets the offset since the beginning of the year when the change occurs.

Returns:
the offset

setOffset

public void setOffset(TimeSpan offset)
Sets the offset since the beginning of the year when the change occurs.

Parameters:
offset - the offset to set

getTime

public Time getTime()
Gets the time.

Returns:
the time

setTime

public void setTime(Time time)
Sets the time.

Parameters:
time - the time to set

getAbsoluteDate

public Date getAbsoluteDate()
Gets the absolute date.

Returns:
the absoluteDate

setAbsoluteDate

public void setAbsoluteDate(Date absoluteDate)
Sets the absolute date.

Parameters:
absoluteDate - the absoluteDate to set

getRecurrence

public microsoft.exchange.webservices.data.property.complex.TimeChangeRecurrence getRecurrence()
Gets the recurrence.

Returns:
the recurrence

setRecurrence

public void setRecurrence(microsoft.exchange.webservices.data.property.complex.TimeChangeRecurrence recurrence)
Sets the recurrence.

Parameters:
recurrence - the recurrence to set

tryReadElementFromXml

public boolean tryReadElementFromXml(EwsServiceXmlReader reader)
                              throws Exception
Tries to read element from XML.

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

readAttributesFromXml

public void readAttributesFromXml(EwsServiceXmlReader reader)
                           throws Exception
Reads the attribute from XML.

Overrides:
readAttributesFromXml in class ComplexProperty
Parameters:
reader - accepts EwsServiceXmlReader
Throws:
Exception - throws Exception

writeAttributesToXml

public void writeAttributesToXml(EwsServiceXmlWriter writer)
Writes the attribute to XML.

Overrides:
writeAttributesToXml in class ComplexProperty
Parameters:
writer - accepts EwsServiceXmlWriter

writeElementsToXml

public void writeElementsToXml(EwsServiceXmlWriter writer)
                        throws Exception
Writes elements to XML.

Overrides:
writeElementsToXml in class ComplexProperty
Parameters:
writer - accepts EwsServiceXmlWriter
Throws:
Exception - throws Exception


Copyright © 2012–2015 Microsoft. All rights reserved.