public class TimeZoneDefinition extends ComplexProperty implements Comparator<TimeZoneTransition>
| Modifier and Type | Field and Description |
|---|---|
protected String |
DaylightPeriodId
The Daylight period id.
|
protected String |
DaylightPeriodName
The Daylight period name.
|
String |
id
The id.
|
String |
name
The name.
|
protected String |
StandardPeriodId
The Standard period id.
|
protected String |
StandardPeriodName
The Standard period name.
|
| Constructor and Description |
|---|
TimeZoneDefinition()
Initializes a new instance of the TimeZoneDefinition class.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compare(TimeZoneTransition x,
TimeZoneTransition y)
Compares the transitions.
|
String |
getId()
Gets the Id of this time zone definition.
|
String |
getName()
Gets the name of this time zone definition.
|
Map<String,TimeZonePeriod> |
getPeriods()
Adds a transition group with a single transition to the specified period.
|
Map<String,TimeZoneTransitionGroup> |
getTransitionGroups()
Gets the transition groups associated with this time zone definition,
indexed by Id.
|
void |
loadFromXml(EwsServiceXmlReader reader)
Loads from XML.
|
void |
readAttributesFromXml(EwsServiceXmlReader reader)
Reads the attribute from XML.
|
void |
setId(String id)
Sets the id.
|
protected void |
setName(String name)
Sets the name.
|
boolean |
tryReadElementFromXml(EwsServiceXmlReader reader)
Tries to read element from XML.
|
void |
validate()
Validates this time zone definition.
|
void |
writeAttributesToXml(EwsServiceXmlWriter writer)
Writes the attribute to XML.
|
void |
writeElementsToXml(EwsServiceXmlWriter writer)
Writes elements to XML.
|
protected void |
writeToXml(EwsServiceXmlWriter writer)
Writes to XML.
|
void |
writeToXml(EwsServiceXmlWriter writer,
String xmlElementName)
Writes to XML.
|
addOnChangeEvent, canSetFieldValue, changed, clearChangeEvents, clearChangeLog, func, getNamespace, internalValidate, loadFromXml, loadFromXml, readTextValueFromXml, removeChangeEvent, setNamespace, tryReadElementFromXmlToPatch, updateFromXml, updateFromXml, writeToXmlclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcomparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLongprotected final String StandardPeriodId
protected final String StandardPeriodName
protected final String DaylightPeriodId
protected final String DaylightPeriodName
public TimeZoneDefinition()
public int compare(TimeZoneTransition x, TimeZoneTransition y)
compare in interface Comparator<TimeZoneTransition>x - The first transition.y - The second transition.public void readAttributesFromXml(EwsServiceXmlReader reader) throws Exception
readAttributesFromXml in class ComplexPropertyreader - the readerException - the exceptionpublic void writeAttributesToXml(EwsServiceXmlWriter writer) throws ServiceXmlSerializationException
writeAttributesToXml in class ComplexPropertywriter - the writerServiceXmlSerializationException - the service xml serialization exceptionpublic boolean tryReadElementFromXml(EwsServiceXmlReader reader) throws Exception
tryReadElementFromXml in class ComplexPropertyreader - the readerException - the exceptionpublic void loadFromXml(EwsServiceXmlReader reader) throws Exception
reader - the readerException - the exceptionpublic void writeElementsToXml(EwsServiceXmlWriter writer) throws Exception
writeElementsToXml in class ComplexPropertywriter - the writerException - the exceptionprotected void writeToXml(EwsServiceXmlWriter writer) throws Exception
writer - The writer.Exception - the exceptionpublic void validate() throws ServiceLocalException
validate in interface ISelfValidatevalidate in class ComplexPropertyInvalidOrUnsupportedTimeZoneDefinitionException - thrown when time zone definition is not valid.ServiceValidationException - the service validation exceptionServiceLocalExceptionpublic Map<String,TimeZonePeriod> getPeriods()
public Map<String,TimeZoneTransitionGroup> getTransitionGroups()
public void writeToXml(EwsServiceXmlWriter writer, String xmlElementName) throws Exception
writeToXml in class ComplexPropertywriter - accepts EwsServiceXmlWriterxmlElementName - accepts StringException - throws ExceptionCopyright © 2012–2015 Microsoft. All rights reserved.