Class RuleCollection
- java.lang.Object
-
- microsoft.exchange.webservices.data.property.complex.ComplexProperty
-
- microsoft.exchange.webservices.data.property.complex.RuleCollection
-
- All Implemented Interfaces:
Iterable<Rule>,ISelfValidate,ComplexFunctionDelegate<EwsServiceXmlReader>
public final class RuleCollection extends ComplexProperty implements Iterable<Rule>
Represents a collection of rules.
-
-
Constructor Summary
Constructors Constructor Description RuleCollection()Initializes a new instance of the RuleCollection class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetCount()Gets the number of rules in this collection.booleangetOutlookRuleBlobExists()Gets a value indicating whether an Outlook rule blob exists in the user's mailbox.RulegetRule(int index)Gets the rule at the specified index in the collection.Iterator<Rule>iterator()Get an enumerator for the collectionvoidsetOutlookRuleBlobExists(boolean value)booleantryReadElementFromXml(EwsServiceXmlReader reader)Tries to read element from XML.-
Methods inherited from class microsoft.exchange.webservices.data.property.complex.ComplexProperty
addOnChangeEvent, canSetFieldValue, changed, clearChangeEvents, clearChangeLog, func, getNamespace, internalValidate, loadFromXml, loadFromXml, readAttributesFromXml, readTextValueFromXml, removeChangeEvent, setNamespace, tryReadElementFromXmlToPatch, updateFromXml, updateFromXml, validate, writeAttributesToXml, writeElementsToXml, writeToXml, writeToXml
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Constructor Detail
-
RuleCollection
public RuleCollection()
Initializes a new instance of the RuleCollection class.
-
-
Method Detail
-
getOutlookRuleBlobExists
public boolean getOutlookRuleBlobExists()
Gets a value indicating whether an Outlook rule blob exists in the user's mailbox. To update rules with EWS when the Outlook rule blob exists, call SetInboxRules passing true as the value of the removeOutlookBlob parameter.
-
setOutlookRuleBlobExists
public void setOutlookRuleBlobExists(boolean value)
-
getCount
public int getCount()
Gets the number of rules in this collection.
-
getRule
public Rule getRule(int index) throws ArgumentOutOfRangeException
Gets the rule at the specified index in the collection.- Parameters:
index- The index of the rule to get.- Returns:
- The rule at the specified index.
- Throws:
ArgumentOutOfRangeException
-
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
-
-