microsoft.exchange.webservices.data.property.complex
Class RulePredicateDateRange

java.lang.Object
  extended by microsoft.exchange.webservices.data.property.complex.ComplexProperty
      extended by microsoft.exchange.webservices.data.property.complex.RulePredicateDateRange
All Implemented Interfaces:
ISelfValidate, ComplexFunctionDelegate<EwsServiceXmlReader>

public final class RulePredicateDateRange
extends ComplexProperty

Represents the date and time range within which messages have been received.


Constructor Summary
protected RulePredicateDateRange()
          Initializes a new instance of the RulePredicateDateRange class.
 
Method Summary
 Date getEnd()
          Gets or sets the range end date and time.
 Date getStart()
          Gets or sets the range start date and time.
protected  void internalValidate()
          Validates this instance.
 void setEnd(Date value)
           
 void setStart(Date value)
           
 boolean tryReadElementFromXml(EwsServiceXmlReader reader)
          Tries to read element from XML.
 void writeElementsToXml(EwsServiceXmlWriter writer)
          Writes elements to XML.
 
Methods inherited from class microsoft.exchange.webservices.data.property.complex.ComplexProperty
addOnChangeEvent, canSetFieldValue, changed, clearChangeEvents, clearChangeLog, func, getNamespace, loadFromXml, loadFromXml, readAttributesFromXml, readTextValueFromXml, removeChangeEvent, setNamespace, tryReadElementFromXmlToPatch, updateFromXml, updateFromXml, validate, writeAttributesToXml, writeToXml, writeToXml
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RulePredicateDateRange

protected RulePredicateDateRange()
Initializes a new instance of the RulePredicateDateRange class.

Method Detail

getStart

public Date getStart()
Gets or sets the range start date and time. If Start is set to null, no start date applies.


setStart

public void setStart(Date value)

getEnd

public Date getEnd()
Gets or sets the range end date and time. If End is set to null, no end date applies.


setEnd

public void setEnd(Date value)

tryReadElementFromXml

public boolean tryReadElementFromXml(EwsServiceXmlReader reader)
                              throws Exception
Tries to read element from XML.

Overrides:
tryReadElementFromXml in class ComplexProperty
Parameters:
reader - The reader.
Returns:
True if element was read.
Throws:
Exception - the exception

writeElementsToXml

public void writeElementsToXml(EwsServiceXmlWriter writer)
                        throws ServiceXmlSerializationException,
                               XMLStreamException
Writes elements to XML.

Overrides:
writeElementsToXml in class ComplexProperty
Parameters:
writer - the writer
Throws:
XMLStreamException - the XML stream exception
ServiceXmlSerializationException

internalValidate

protected void internalValidate()
                         throws ServiceValidationException,
                                Exception
Validates this instance.

Overrides:
internalValidate in class ComplexProperty
Throws:
Exception - the exception
ServiceValidationException


Copyright © 2012–2015 Microsoft. All rights reserved.