microsoft.exchange.webservices.data
Class SetRuleOperation

java.lang.Object
  extended by microsoft.exchange.webservices.data.ComplexProperty
      extended by microsoft.exchange.webservices.data.RuleOperation
          extended by microsoft.exchange.webservices.data.SetRuleOperation

public class SetRuleOperation
extends RuleOperation

Represents an operation to update an existing rule.


Field Summary
 
Fields inherited from class microsoft.exchange.webservices.data.RuleOperation
xmlElementName
 
Constructor Summary
SetRuleOperation()
          Initializes a new instance of the SetRuleOperation class.
SetRuleOperation(Rule rule)
          Initializes a new instance of the SetRuleOperation class.
 
Method Summary
 Rule getRule()
          Gets the rule to be updated.
protected  java.lang.String getXmlElementName()
          Gets the Xml element name of the SetRuleOperation object.
protected  void internalValidate()
          Validates this instance.
 void setRule(Rule value)
          Sets the rule to be updated.
protected  boolean tryReadElementFromXml(microsoft.exchange.webservices.data.EwsServiceXmlReader reader)
          Tries to read element from XML.
protected  void writeElementsToXml(microsoft.exchange.webservices.data.EwsServiceXmlWriter writer)
          Writes elements to XML.
 
Methods inherited from class microsoft.exchange.webservices.data.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

SetRuleOperation

public SetRuleOperation()
Initializes a new instance of the SetRuleOperation class.


SetRuleOperation

public SetRuleOperation(Rule rule)
Initializes a new instance of the SetRuleOperation class.

Parameters:
rule - The rule The inbox rule to update.
Method Detail

getRule

public Rule getRule()
Gets the rule to be updated.


setRule

public void setRule(Rule value)
Sets the rule to be updated.


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 - the exception

writeElementsToXml

protected void writeElementsToXml(microsoft.exchange.webservices.data.EwsServiceXmlWriter writer)
                           throws java.lang.Exception
Writes elements to XML.

Overrides:
writeElementsToXml in class ComplexProperty
Parameters:
writer - The writer.
Throws:
java.lang.Exception - the exception

internalValidate

protected void internalValidate()
                         throws java.lang.Exception
Validates this instance.

Overrides:
internalValidate in class ComplexProperty
Throws:
java.lang.Exception

getXmlElementName

protected java.lang.String getXmlElementName()
Gets the Xml element name of the SetRuleOperation object.

Overrides:
getXmlElementName in class RuleOperation