|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmicrosoft.exchange.webservices.data.TimeWindow
public class TimeWindow
Represents a time period.
Constructor Summary | |
---|---|
protected |
TimeWindow()
Initializes a new instance of the "TimeWindow" class. |
|
TimeWindow(java.util.Date startTime,
java.util.Date endTime)
Initializes a new instance of the "TimeWindow" class. |
Method Summary | |
---|---|
protected long |
getDuration()
Gets the duration. |
java.util.Date |
getEndTime()
Gets the end time. |
java.util.Date |
getStartTime()
Gets the start time. |
protected void |
loadFromXml(microsoft.exchange.webservices.data.EwsServiceXmlReader reader)
Loads from XML. |
void |
setEndTime(java.util.Date endTime)
Sets the end time. |
void |
setStartTime(java.util.Date startTime)
Sets the start time. |
void |
validate()
Validates this instance. |
protected void |
writeToXml(microsoft.exchange.webservices.data.EwsServiceXmlWriter writer,
java.lang.String xmlElementName)
Writes to XML. |
protected void |
writeToXmlUnscopedDatesOnly(microsoft.exchange.webservices.data.EwsServiceXmlWriter writer,
java.lang.String xmlElementName)
Writes to XML without scoping the dates and without emitting times. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected TimeWindow()
public TimeWindow(java.util.Date startTime, java.util.Date endTime)
startTime
- the start timeendTime
- the end timeMethod Detail |
---|
public java.util.Date getStartTime()
public void setStartTime(java.util.Date startTime)
startTime
- the new start timepublic java.util.Date getEndTime()
public void setEndTime(java.util.Date endTime)
endTime
- the new end timeprotected void loadFromXml(microsoft.exchange.webservices.data.EwsServiceXmlReader reader) throws java.lang.Exception
reader
- the reader
java.lang.Exception
- the exceptionprotected void writeToXmlUnscopedDatesOnly(microsoft.exchange.webservices.data.EwsServiceXmlWriter writer, java.lang.String xmlElementName) throws javax.xml.stream.XMLStreamException, ServiceXmlSerializationException
writer
- the writerxmlElementName
- the xml element name
javax.xml.stream.XMLStreamException
- the xML stream exception
ServiceXmlSerializationException
- the service xml serialization exceptionprotected void writeToXml(microsoft.exchange.webservices.data.EwsServiceXmlWriter writer, java.lang.String xmlElementName) throws javax.xml.stream.XMLStreamException, ServiceXmlSerializationException
writer
- the writerxmlElementName
- the xml element name
javax.xml.stream.XMLStreamException
- the xML stream exception
ServiceXmlSerializationException
- the service xml serialization exceptionprotected long getDuration()
public void validate()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |