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

java.lang.Object
  extended by microsoft.exchange.webservices.data.property.complex.ComplexProperty
      extended by 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
protected static String DaylightPeriodId
          The Constant DaylightPeriodId.
protected static String DaylightPeriodName
          The Constant DaylightPeriodName.
protected static String StandardPeriodId
          The Constant StandardPeriodId.
protected static String StandardPeriodName
          The Constant StandardPeriodName.
 
Constructor Summary
TimeZonePeriod()
          Initializes a new instance of the TimeZonePeriod class.
 
Method Summary
protected  TimeSpan getBias()
          Gets the bias to UTC associated with this period.
 String getId()
          Gets the id of this period.
protected  String getName()
          Gets the name of this period.
protected  boolean isStandardPeriod()
          Gets a value indicating whether this period represents the Standard period.
 void loadFromXml(EwsServiceXmlReader reader)
          Loads from XML.
 void readAttributesFromXml(EwsServiceXmlReader reader)
          Reads the attribute from XML.
protected  void setBias(TimeSpan bias)
          Sets the bias.
protected  void setId(String id)
          Sets the id.
protected  void setName(String name)
          Sets the name.
 void writeAttributesToXml(EwsServiceXmlWriter writer)
          Writes the attribute 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, tryReadElementFromXml, tryReadElementFromXmlToPatch, updateFromXml, updateFromXml, validate, writeElementsToXml, writeToXml, writeToXml
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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:
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

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

setBias

protected void setBias(TimeSpan bias)
Sets the bias.

Parameters:
bias - the new bias

getName

protected String getName()
Gets the name of this period.

Returns:
the name

setName

protected void setName(String name)
Sets the name.

Parameters:
name - the new name

getId

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

Returns:
the id

setId

protected void setId(String id)
Sets the id.

Parameters:
id - the new id


Copyright © 2012–2015 Microsoft. All rights reserved.