|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectmicrosoft.exchange.webservices.data.property.complex.ComplexProperty
microsoft.exchange.webservices.data.property.complex.time.TimeZoneDefinition
public class TimeZoneDefinition
Represents a time zone as defined by the EWS schema.
| Field Summary | |
|---|---|
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 Summary | |
|---|---|
TimeZoneDefinition()
Initializes a new instance of the TimeZoneDefinition class. |
|
| Method Summary | |
|---|---|
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. |
| 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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface java.util.Comparator |
|---|
equals |
| Field Detail |
|---|
protected final String StandardPeriodId
protected final String StandardPeriodName
protected final String DaylightPeriodId
protected final String DaylightPeriodName
public String name
public String id
| Constructor Detail |
|---|
public TimeZoneDefinition()
| Method Detail |
|---|
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 reader
Exception - the exception
public void writeAttributesToXml(EwsServiceXmlWriter writer)
throws ServiceXmlSerializationException
writeAttributesToXml in class ComplexPropertywriter - the writer
ServiceXmlSerializationException - the service xml serialization exception
public boolean tryReadElementFromXml(EwsServiceXmlReader reader)
throws Exception
tryReadElementFromXml in class ComplexPropertyreader - the reader
Exception - the exception
public void loadFromXml(EwsServiceXmlReader reader)
throws Exception
reader - the reader
Exception - the exception
public void writeElementsToXml(EwsServiceXmlWriter writer)
throws Exception
writeElementsToXml in class ComplexPropertywriter - the writer
Exception - the exception
protected void writeToXml(EwsServiceXmlWriter writer)
throws Exception
writer - The writer.
Exception - the exception
public void validate()
throws ServiceLocalException
validate in interface ISelfValidatevalidate in class ComplexPropertyInvalidOrUnsupportedTimeZoneDefinitionException - thrown when time zone definition is not valid.
ServiceValidationException - the service validation exception
ServiceLocalExceptionpublic String getName()
protected void setName(String name)
name - the new namepublic String getId()
public void setId(String id)
id - the new idpublic 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 String
Exception - throws Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||