microsoft.exchange.webservices.data
Class RuleOperationError

java.lang.Object
  extended by microsoft.exchange.webservices.data.ComplexProperty
      extended by microsoft.exchange.webservices.data.RuleOperationError
All Implemented Interfaces:
java.lang.Iterable<RuleError>

public final class RuleOperationError
extends ComplexProperty
implements java.lang.Iterable<RuleError>

Defines the RuleOperationError class.


Constructor Summary
protected RuleOperationError()
          Initializes a new instance of the RuleOperationError class.
 
Method Summary
 int getCount()
          Gets the number of rule errors in the list.
 RuleOperation getOperation()
          Gets the operation that resulted in an error.
 RuleError getRuleError(int index)
          Gets the rule error at the specified index.
 java.util.Iterator<RuleError> iterator()
          Gets an iterator that iterates through the elements of the collection.
protected  void setOperationByIndex(java.util.Iterator<RuleOperation> operations)
          Set operation property by the index of a given opeation enumerator.
protected  boolean tryReadElementFromXml(microsoft.exchange.webservices.data.EwsServiceXmlReader reader)
          Tries to read element from XML.
 
Methods inherited from class microsoft.exchange.webservices.data.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
 

Constructor Detail

RuleOperationError

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

Method Detail

getOperation

public RuleOperation getOperation()
Gets the operation that resulted in an error.

Returns:
operation

getCount

public int getCount()
Gets the number of rule errors in the list.

Returns:
count

getRuleError

public RuleError getRuleError(int index)
                       throws ArgumentOutOfRangeException
Gets the rule error at the specified index.

Returns:
Index
Throws:
ArgumentOutOfRangeException

tryReadElementFromXml

protected boolean tryReadElementFromXml(microsoft.exchange.webservices.data.EwsServiceXmlReader reader)
                                 throws java.lang.Exception
Tries to read element from XML.

Overrides:
tryReadElementFromXml in class ComplexProperty
Parameters:
reader - The reader.
Returns:
true
Throws:
java.lang.Exception

setOperationByIndex

protected void setOperationByIndex(java.util.Iterator<RuleOperation> operations)
Set operation property by the index of a given opeation enumerator.


iterator

public java.util.Iterator<RuleError> iterator()
Gets an iterator that iterates through the elements of the collection.

Specified by:
iterator in interface java.lang.Iterable<RuleError>
Returns:
An Iterator for the collection.