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

java.lang.Object
  extended by microsoft.exchange.webservices.data.property.complex.ComplexProperty
      extended by 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
protected static class TimeZoneTransitionGroup.CustomTimeZoneCreateParams
          The Class CustomTimeZoneCreateParams.
 
Constructor Summary
TimeZoneTransitionGroup(TimeZoneDefinition timeZoneDefinition)
          Initializes a new instance of the class.
TimeZoneTransitionGroup(TimeZoneDefinition timeZoneDefinition, String id)
          Initializes a new instance of the class.
 
Method Summary
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.
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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 definition
id - 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:
readAttributesFromXml in class ComplexProperty
Parameters:
reader - the reader
Throws:
Exception - the exception

writeAttributesToXml

public void writeAttributesToXml(EwsServiceXmlWriter writer)
                          throws ServiceXmlSerializationException
Writes the attribute to XML.

Overrides:
writeAttributesToXml in class ComplexProperty
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:
tryReadElementFromXml in class ComplexProperty
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:
writeElementsToXml in class ComplexProperty
Parameters:
writer - the writer
Throws:
Exception - the exception

validate

public void validate()
              throws ServiceLocalException
Validates this transition group.

Specified by:
validate in interface ISelfValidate
Overrides:
validate in class ComplexProperty
Throws:
InvalidOrUnsupportedTimeZoneDefinitionException - thrown when time zone definition is not valid.
ServiceValidationException - the service validation exception
ServiceLocalException

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

getId

public String getId()
Gets the id of this group.

Returns:
the id

setId

public void setId(String id)
Sets the id.

Parameters:
id - the new id

getTransitions

public List<TimeZoneTransition> getTransitions()
Gets the transitions in this group.

Returns:
the transitions


Copyright © 2012–2015 Microsoft. All rights reserved.