Class TimeZoneTransitionGroup
- java.lang.Object
-
- microsoft.exchange.webservices.data.property.complex.ComplexProperty
-
- microsoft.exchange.webservices.data.property.complex.time.TimeZoneTransitionGroup
-
- All Implemented Interfaces:
ISelfValidate,ComplexFunctionDelegate<EwsServiceXmlReader>
public class TimeZoneTransitionGroup extends ComplexProperty
Represents a group of time zone period transitions.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static classTimeZoneTransitionGroup.CustomTimeZoneCreateParamsThe Class CustomTimeZoneCreateParams.
-
Constructor Summary
Constructors Constructor Description TimeZoneTransitionGroup(TimeZoneDefinition timeZoneDefinition)Initializes a new instance of the class.TimeZoneTransitionGroup(TimeZoneDefinition timeZoneDefinition, String id)Initializes a new instance of the class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected TimeZoneTransitionGroup.CustomTimeZoneCreateParamsgetCustomTimeZoneCreationParams()Gets the offset to UTC based on this group's transitions.StringgetId()Gets the id of this group.protected booleangetSupportsDaylight()Gets a value indicating whether this group contains a transition to the Daylight period.List<TimeZoneTransition>getTransitions()Gets the transitions in this group.voidloadFromXml(EwsServiceXmlReader reader)Loads from XML.voidreadAttributesFromXml(EwsServiceXmlReader reader)Reads the attribute from XML.voidsetId(String id)Sets the id.booleantryReadElementFromXml(EwsServiceXmlReader reader)Writes the attribute to XML.voidvalidate()Validates this transition group.voidwriteAttributesToXml(EwsServiceXmlWriter writer)Writes the attribute to XML.voidwriteElementsToXml(EwsServiceXmlWriter writer)Writes elements to XML.voidwriteToXml(EwsServiceXmlWriter writer)Writes 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, writeToXml, writeToXml
-
-
-
-
Constructor Detail
-
TimeZoneTransitionGroup
public TimeZoneTransitionGroup(TimeZoneDefinition timeZoneDefinition)
Initializes a new instance of the class.- Parameters:
timeZoneDefinition- the time zone definition
-
TimeZoneTransitionGroup
public TimeZoneTransitionGroup(TimeZoneDefinition timeZoneDefinition, String id)
Initializes a new instance of the class.- Parameters:
timeZoneDefinition- the time zone definitionid- the id
-
-
Method Detail
-
loadFromXml
public void loadFromXml(EwsServiceXmlReader reader) throws Exception
Loads from XML.- Parameters:
reader- the reader- Throws:
Exception- the exception
-
writeToXml
public void writeToXml(EwsServiceXmlWriter writer) throws Exception
Writes to XML.- Parameters:
writer- the writer- Throws:
Exception- the exception
-
readAttributesFromXml
public void readAttributesFromXml(EwsServiceXmlReader reader) throws Exception
Reads the attribute from XML.- Overrides:
readAttributesFromXmlin classComplexProperty- Parameters:
reader- the reader- Throws:
Exception- the exception
-
writeAttributesToXml
public void writeAttributesToXml(EwsServiceXmlWriter writer) throws ServiceXmlSerializationException
Writes the attribute to XML.- Overrides:
writeAttributesToXmlin classComplexProperty- Parameters:
writer- the writer- Throws:
ServiceXmlSerializationException- the service xml serialization exception
-
tryReadElementFromXml
public boolean tryReadElementFromXml(EwsServiceXmlReader reader) throws Exception
Writes the attribute to XML.- Overrides:
tryReadElementFromXmlin classComplexProperty- Parameters:
reader- the reader- Returns:
- true, if successful
- Throws:
Exception- the exception
-
writeElementsToXml
public void writeElementsToXml(EwsServiceXmlWriter writer) throws Exception
Writes elements to XML.- Overrides:
writeElementsToXmlin classComplexProperty- Parameters:
writer- the writer- Throws:
Exception- the exception
-
validate
public void validate() throws ServiceLocalException
Validates this transition group.- Specified by:
validatein interfaceISelfValidate- Overrides:
validatein classComplexProperty- Throws:
InvalidOrUnsupportedTimeZoneDefinitionException- thrown when time zone definition is not valid.ServiceValidationException- the service validation exceptionServiceLocalException
-
getSupportsDaylight
protected boolean getSupportsDaylight()
Gets a value indicating whether this group contains a transition to the Daylight period. true if this group contains a transition to daylight; otherwise, false.- Returns:
- the supports daylight
-
getCustomTimeZoneCreationParams
protected TimeZoneTransitionGroup.CustomTimeZoneCreateParams getCustomTimeZoneCreationParams()
Gets the offset to UTC based on this group's transitions.- Returns:
- the custom time zone creation params
-
getTransitions
public List<TimeZoneTransition> getTransitions()
Gets the transitions in this group.- Returns:
- the transitions
-
-