Class RulePredicateDateRange
- java.lang.Object
-
- microsoft.exchange.webservices.data.property.complex.ComplexProperty
-
- 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
Constructors Modifier Constructor Description protectedRulePredicateDateRange()Initializes a new instance of the RulePredicateDateRange class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DategetEnd()Gets or sets the range end date and time.DategetStart()Gets or sets the range start date and time.protected voidinternalValidate()Validates this instance.voidsetEnd(Date value)voidsetStart(Date value)booleantryReadElementFromXml(EwsServiceXmlReader reader)Tries to read element from XML.voidwriteElementsToXml(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
-
-
-
-
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.
-
getEnd
public Date getEnd()
Gets or sets the range end date and time. If End is set to null, no end date applies.
-
tryReadElementFromXml
public boolean tryReadElementFromXml(EwsServiceXmlReader reader) throws Exception
Tries to read element from XML.- Overrides:
tryReadElementFromXmlin classComplexProperty- 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:
writeElementsToXmlin classComplexProperty- Parameters:
writer- the writer- Throws:
XMLStreamException- the XML stream exceptionServiceXmlSerializationException
-
internalValidate
protected void internalValidate() throws ServiceValidationException, Exception
Validates this instance.- Overrides:
internalValidatein classComplexProperty- Throws:
Exception- the exceptionServiceValidationException
-
-