microsoft.exchange.webservices.data
Class RuleError

java.lang.Object
  extended by microsoft.exchange.webservices.data.ComplexProperty
      extended by microsoft.exchange.webservices.data.RuleError

public final class RuleError
extends ComplexProperty

Defines the RuleError class.


Constructor Summary
protected RuleError()
          The Initializes a new instance of the RuleError class.
 
Method Summary
 RuleErrorCode getErrorCode()
          Gets the validation error code.
 java.lang.String getErrorMessage()
          Gets the error message.
 RuleProperty getRuleProperty()
          Gets the property which failed validation.
 java.lang.String getValue()
          Gets the value that failed validation.
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

RuleError

protected RuleError()
The Initializes a new instance of the RuleError class.

Method Detail

getRuleProperty

public RuleProperty getRuleProperty()
Gets the property which failed validation.

Returns:
ruleProperty

getErrorCode

public RuleErrorCode getErrorCode()
Gets the validation error code.

Returns:
ruleProperty

getErrorMessage

public java.lang.String getErrorMessage()
Gets the error message.

Returns:
ruleProperty

getValue

public java.lang.String getValue()
Gets the value that failed validation.


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 if element was read
Throws:
java.lang.Exception