Class AbsoluteDateTransition
- java.lang.Object
-
- microsoft.exchange.webservices.data.property.complex.ComplexProperty
-
- microsoft.exchange.webservices.data.property.complex.time.TimeZoneTransition
-
- 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
Constructors Modifier Constructor Description protectedAbsoluteDateTransition(TimeZoneDefinition timeZoneDefinition)Initializes a new instance of the AbsoluteDateTransition class.protectedAbsoluteDateTransition(TimeZoneDefinition timeZoneDefinition, TimeZoneTransitionGroup targetGroup)Initializes a new instance of the AbsoluteDateTransition class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DategetDateTime()Gets the absolute date and time when the transition occurs.protected StringgetXmlElementName()Gets the XML element name associated with the transition.protected voidsetDateTime(Date dateTime)Sets the date time.booleantryReadElementFromXml(EwsServiceXmlReader reader)Tries to read element from XML.voidwriteElementsToXml(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
-
-
-
-
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:
getXmlElementNamein classTimeZoneTransition- 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:
tryReadElementFromXmlin classTimeZoneTransition- Parameters:
reader- the reader- Returns:
- True if element was read.
- Throws:
ParseException- the parse exceptionException- the exception
-
writeElementsToXml
public void writeElementsToXml(EwsServiceXmlWriter writer) throws ServiceXmlSerializationException, XMLStreamException
Writes elements to XML.- Overrides:
writeElementsToXmlin classTimeZoneTransition- Parameters:
writer- the writer- Throws:
ServiceXmlSerializationException- the service xml serialization exceptionXMLStreamException- 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
-
-