Class TimeZonePeriod
- java.lang.Object
-
- microsoft.exchange.webservices.data.property.complex.ComplexProperty
-
- microsoft.exchange.webservices.data.property.complex.time.TimeZonePeriod
-
- All Implemented Interfaces:
ISelfValidate,ComplexFunctionDelegate<EwsServiceXmlReader>
public class TimeZonePeriod extends ComplexProperty
Represents a time zone period as defined in the EWS schema.
-
-
Field Summary
Fields Modifier and Type Field Description protected static StringDaylightPeriodIdThe Constant DaylightPeriodId.protected static StringDaylightPeriodNameThe Constant DaylightPeriodName.protected static StringStandardPeriodIdThe Constant StandardPeriodId.protected static StringStandardPeriodNameThe Constant StandardPeriodName.
-
Constructor Summary
Constructors Constructor Description TimeZonePeriod()Initializes a new instance of the TimeZonePeriod class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected TimeSpangetBias()Gets the bias to UTC associated with this period.StringgetId()Gets the id of this period.protected StringgetName()Gets the name of this period.protected booleanisStandardPeriod()Gets a value indicating whether this period represents the Standard period.voidloadFromXml(EwsServiceXmlReader reader)Loads from XML.voidreadAttributesFromXml(EwsServiceXmlReader reader)Reads the attribute from XML.protected voidsetBias(TimeSpan bias)Sets the bias.protected voidsetId(String id)Sets the id.protected voidsetName(String name)Sets the name.voidwriteAttributesToXml(EwsServiceXmlWriter writer)Writes the attribute 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, tryReadElementFromXml, tryReadElementFromXmlToPatch, updateFromXml, updateFromXml, validate, writeElementsToXml, writeToXml, writeToXml
-
-
-
-
Field Detail
-
StandardPeriodId
protected static final String StandardPeriodId
The Constant StandardPeriodId.- See Also:
- Constant Field Values
-
StandardPeriodName
protected static final String StandardPeriodName
The Constant StandardPeriodName.- See Also:
- Constant Field Values
-
DaylightPeriodId
protected static final String DaylightPeriodId
The Constant DaylightPeriodId.- See Also:
- Constant Field Values
-
DaylightPeriodName
protected static final String DaylightPeriodName
The Constant DaylightPeriodName.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
TimeZonePeriod
public TimeZonePeriod()
Initializes a new instance of the TimeZonePeriod class.
-
-
Method Detail
-
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
-
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
-
isStandardPeriod
protected boolean isStandardPeriod()
Gets a value indicating whether this period represents the Standard period.- Returns:
- true if this instance is standard period; otherwise, false
-
getBias
protected TimeSpan getBias()
Gets the bias to UTC associated with this period.- Returns:
- the bias
-
-