Class TimeChange
- java.lang.Object
-
- microsoft.exchange.webservices.data.property.complex.ComplexProperty
-
- 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
Constructors Constructor Description TimeChange()Initializes a new instance of theTimeChangeclass.TimeChange(TimeSpan offset)Initializes a new instance of theTimeChangeclass.TimeChange(TimeSpan offset, Time time)Initializes a new instance of the "TimeChange" class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DategetAbsoluteDate()Gets the absolute date.TimeSpangetOffset()Gets the offset since the beginning of the year when the change occurs.microsoft.exchange.webservices.data.property.complex.TimeChangeRecurrencegetRecurrence()Gets the recurrence.TimegetTime()Gets the time.StringgetTimeZoneName()Gets the name of the associated time zone.voidreadAttributesFromXml(EwsServiceXmlReader reader)Reads the attribute from XML.voidsetAbsoluteDate(Date absoluteDate)Sets the absolute date.voidsetOffset(TimeSpan offset)Sets the offset since the beginning of the year when the change occurs.voidsetRecurrence(microsoft.exchange.webservices.data.property.complex.TimeChangeRecurrence recurrence)Sets the recurrence.voidsetTime(Time time)Sets the time.voidsetTimeZoneName(String timeZoneName)Sets the name of the associated time zone.booleantryReadElementFromXml(EwsServiceXmlReader reader)Tries to read element from XML.voidwriteAttributesToXml(EwsServiceXmlWriter writer)Writes the attribute to XML.voidwriteElementsToXml(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
-
-
-
-
Constructor Detail
-
TimeChange
public TimeChange()
Initializes a new instance of theTimeChangeclass.
-
TimeChange
public TimeChange(TimeSpan offset)
Initializes a new instance of theTimeChangeclass.- 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
-
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:
tryReadElementFromXmlin classComplexProperty- 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:
readAttributesFromXmlin classComplexProperty- Parameters:
reader- accepts EwsServiceXmlReader- Throws:
Exception- throws Exception
-
writeAttributesToXml
public void writeAttributesToXml(EwsServiceXmlWriter writer)
Writes the attribute to XML.- Overrides:
writeAttributesToXmlin classComplexProperty- Parameters:
writer- accepts EwsServiceXmlWriter
-
writeElementsToXml
public void writeElementsToXml(EwsServiceXmlWriter writer) throws Exception
Writes elements to XML.- Overrides:
writeElementsToXmlin classComplexProperty- Parameters:
writer- accepts EwsServiceXmlWriter- Throws:
Exception- throws Exception
-
-