microsoft.exchange.webservices.data.property.complex.time
Class AbsoluteDateTransition

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

public class AbsoluteDateTransition
extends TimeZoneTransition

Represents a time zone period transition that occurs on a fixed (absolute) date.


Constructor Summary
protected AbsoluteDateTransition(TimeZoneDefinition timeZoneDefinition)
          Initializes a new instance of the AbsoluteDateTransition class.
protected AbsoluteDateTransition(TimeZoneDefinition timeZoneDefinition, TimeZoneTransitionGroup targetGroup)
          Initializes a new instance of the AbsoluteDateTransition class.
 
Method Summary
 Date getDateTime()
          Gets the absolute date and time when the transition occurs.
protected  String getXmlElementName()
          Gets the XML element name associated with the transition.
protected  void setDateTime(Date dateTime)
          Sets the date time.
 boolean tryReadElementFromXml(EwsServiceXmlReader reader)
          Tries to read element from XML.
 void writeElementsToXml(EwsServiceXmlWriter writer)
          Writes elements to XML.
 
Methods inherited from class microsoft.exchange.webservices.data.property.complex.time.TimeZoneTransition
create, getTargetGroup, getTargetPeriod, loadFromXml, writeToXml
 
Methods inherited from class microsoft.exchange.webservices.data.property.complex.ComplexProperty
addOnChangeEvent, canSetFieldValue, changed, clearChangeEvents, clearChangeLog, func, getNamespace, internalValidate, loadFromXml, loadFromXml, readAttributesFromXml, readTextValueFromXml, removeChangeEvent, setNamespace, tryReadElementFromXmlToPatch, updateFromXml, updateFromXml, validate, writeAttributesToXml, writeToXml, writeToXml
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbsoluteDateTransition

protected AbsoluteDateTransition(TimeZoneDefinition timeZoneDefinition)
Initializes a new instance of the AbsoluteDateTransition class.

Parameters:
timeZoneDefinition - , The time zone definition the transition will belong to.

AbsoluteDateTransition

protected AbsoluteDateTransition(TimeZoneDefinition timeZoneDefinition,
                                 TimeZoneTransitionGroup targetGroup)
Initializes a new instance of the AbsoluteDateTransition class.

Parameters:
timeZoneDefinition - The time zone definition the transition will belong to.
targetGroup - the target group
Method Detail

getXmlElementName

protected String getXmlElementName()
Gets the XML element name associated with the transition.

Overrides:
getXmlElementName in class TimeZoneTransition
Returns:
The XML element name associated with the transition.

tryReadElementFromXml

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

Overrides:
tryReadElementFromXml in class TimeZoneTransition
Parameters:
reader - the reader
Returns:
True if element was read.
Throws:
ParseException - the parse exception
Exception - the exception

writeElementsToXml

public void writeElementsToXml(EwsServiceXmlWriter writer)
                        throws ServiceXmlSerializationException,
                               XMLStreamException
Writes elements to XML.

Overrides:
writeElementsToXml in class TimeZoneTransition
Parameters:
writer - the writer
Throws:
ServiceXmlSerializationException - the service xml serialization exception
XMLStreamException - the XML stream exception

getDateTime

public Date getDateTime()
Gets the absolute date and time when the transition occurs.

Returns:
the date time

setDateTime

protected void setDateTime(Date dateTime)
Sets the date time.

Parameters:
dateTime - the new date time


Copyright © 2012–2015 Microsoft. All rights reserved.