Class MeetingTimeZone
- java.lang.Object
-
- microsoft.exchange.webservices.data.property.complex.ComplexProperty
-
- microsoft.exchange.webservices.data.property.complex.MeetingTimeZone
-
- All Implemented Interfaces:
ISelfValidate,ComplexFunctionDelegate<EwsServiceXmlReader>
public final class MeetingTimeZone extends ComplexProperty
Represents a time zone in which a meeting is defined.
-
-
Constructor Summary
Constructors Constructor Description MeetingTimeZone()Initializes a new instance of the MeetingTimeZone class.MeetingTimeZone(String name)Initializes a new instance of the MeetingTimeZone class.MeetingTimeZone(TimeZoneDefinition timeZone)Initializes a new instance of the MeetingTimeZone class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TimeSpangetBaseOffset()Gets the base offset of the time zone from the UTC time zone.TimeChangegetDaylight()Gets a TimeChange defining when the time changes to Daylight Saving Time.StringgetName()Gets the name of the time zone.TimeChangegetStandard()Gets a TimeChange defining when the time changes to Standard Time.voidreadAttributesFromXml(EwsServiceXmlReader reader)Reads the attribute from XML.voidsetBaseOffset(TimeSpan value)Sets the base offset.voidsetDaylight(TimeChange value)Sets the daylight.voidsetName(String value)Sets the name.voidsetStandard(TimeChange value)Sets the standard.TimeZoneDefinitiontoTimeZoneInfo()Converts this meeting time zone into a TimeZoneInfo structure.booleantryReadElementFromXml(EwsServiceXmlReader reader)Gets the minimum required server version.voidwriteAttributesToXml(EwsServiceXmlWriter writer)Writes the attribute to XML.voidwriteElementsToXml(EwsServiceXmlWriter writer)Writes the attribute 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, validate, writeToXml, writeToXml
-
-
-
-
Constructor Detail
-
MeetingTimeZone
public MeetingTimeZone(TimeZoneDefinition timeZone)
Initializes a new instance of the MeetingTimeZone class.- Parameters:
timeZone- The time zone used to initialize this instance.
-
MeetingTimeZone
public MeetingTimeZone()
Initializes a new instance of the MeetingTimeZone class.
-
MeetingTimeZone
public MeetingTimeZone(String name)
Initializes a new instance of the MeetingTimeZone class.- Parameters:
name- The name of the time zone.
-
-
Method Detail
-
tryReadElementFromXml
public boolean tryReadElementFromXml(EwsServiceXmlReader reader) throws Exception
Gets the minimum required server version.- Overrides:
tryReadElementFromXmlin classComplexProperty- Parameters:
reader- the reader- Returns:
- Earliest Exchange version in which this service object type is supported.
- 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
-
writeElementsToXml
public void writeElementsToXml(EwsServiceXmlWriter writer) throws Exception
Writes the attribute to XML.- Overrides:
writeElementsToXmlin classComplexProperty- Parameters:
writer- the writer- Throws:
Exception- the exception
-
toTimeZoneInfo
public TimeZoneDefinition toTimeZoneInfo()
Converts this meeting time zone into a TimeZoneInfo structure.- Returns:
- the time zone
-
getBaseOffset
public TimeSpan getBaseOffset()
Gets the base offset of the time zone from the UTC time zone.- Returns:
- the base offset
-
setBaseOffset
public void setBaseOffset(TimeSpan value)
Sets the base offset.- Parameters:
value- the new base offset
-
getStandard
public TimeChange getStandard()
Gets a TimeChange defining when the time changes to Standard Time.- Returns:
- the standard
-
setStandard
public void setStandard(TimeChange value)
Sets the standard.- Parameters:
value- the new standard
-
getDaylight
public TimeChange getDaylight()
Gets a TimeChange defining when the time changes to Daylight Saving Time.- Returns:
- the daylight
-
setDaylight
public void setDaylight(TimeChange value)
Sets the daylight.- Parameters:
value- the new daylight
-
-