public class TimeZoneTransitionGroup extends ComplexProperty
Modifier and Type | Class and Description |
---|---|
protected static class |
TimeZoneTransitionGroup.CustomTimeZoneCreateParams
The Class CustomTimeZoneCreateParams.
|
Constructor and Description |
---|
TimeZoneTransitionGroup(TimeZoneDefinition timeZoneDefinition)
Initializes a new instance of the class.
|
TimeZoneTransitionGroup(TimeZoneDefinition timeZoneDefinition,
String id)
Initializes a new instance of the class.
|
Modifier and Type | Method and Description |
---|---|
protected TimeZoneTransitionGroup.CustomTimeZoneCreateParams |
getCustomTimeZoneCreationParams()
Gets the offset to UTC based on this group's transitions.
|
String |
getId()
Gets the id of this group.
|
protected boolean |
getSupportsDaylight()
Gets a value indicating whether this group contains a transition to the
Daylight period.
|
List<TimeZoneTransition> |
getTransitions()
Gets the transitions in this group.
|
void |
loadFromXml(EwsServiceXmlReader reader)
Loads from XML.
|
void |
readAttributesFromXml(EwsServiceXmlReader reader)
Reads the attribute from XML.
|
void |
setId(String id)
Sets the id.
|
boolean |
tryReadElementFromXml(EwsServiceXmlReader reader)
Writes the attribute to XML.
|
void |
validate()
Validates this transition group.
|
void |
writeAttributesToXml(EwsServiceXmlWriter writer)
Writes the attribute to XML.
|
void |
writeElementsToXml(EwsServiceXmlWriter writer)
Writes elements to XML.
|
void |
writeToXml(EwsServiceXmlWriter writer)
Writes to XML.
|
addOnChangeEvent, canSetFieldValue, changed, clearChangeEvents, clearChangeLog, func, getNamespace, internalValidate, loadFromXml, loadFromXml, readTextValueFromXml, removeChangeEvent, setNamespace, tryReadElementFromXmlToPatch, updateFromXml, updateFromXml, writeToXml, writeToXml
public TimeZoneTransitionGroup(TimeZoneDefinition timeZoneDefinition)
timeZoneDefinition
- the time zone definitionpublic TimeZoneTransitionGroup(TimeZoneDefinition timeZoneDefinition, String id)
timeZoneDefinition
- the time zone definitionid
- the idpublic void loadFromXml(EwsServiceXmlReader reader) throws Exception
reader
- the readerException
- the exceptionpublic void writeToXml(EwsServiceXmlWriter writer) throws Exception
writer
- the writerException
- the exceptionpublic void readAttributesFromXml(EwsServiceXmlReader reader) throws Exception
readAttributesFromXml
in class ComplexProperty
reader
- the readerException
- the exceptionpublic void writeAttributesToXml(EwsServiceXmlWriter writer) throws ServiceXmlSerializationException
writeAttributesToXml
in class ComplexProperty
writer
- the writerServiceXmlSerializationException
- the service xml serialization exceptionpublic boolean tryReadElementFromXml(EwsServiceXmlReader reader) throws Exception
tryReadElementFromXml
in class ComplexProperty
reader
- the readerException
- the exceptionpublic void writeElementsToXml(EwsServiceXmlWriter writer) throws Exception
writeElementsToXml
in class ComplexProperty
writer
- the writerException
- the exceptionpublic void validate() throws ServiceLocalException
validate
in interface ISelfValidate
validate
in class ComplexProperty
InvalidOrUnsupportedTimeZoneDefinitionException
- thrown when time zone definition is not valid.ServiceValidationException
- the service validation exceptionServiceLocalException
protected boolean getSupportsDaylight()
protected TimeZoneTransitionGroup.CustomTimeZoneCreateParams getCustomTimeZoneCreationParams()
public List<TimeZoneTransition> getTransitions()
Copyright © 2012–2015 Microsoft. All rights reserved.