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  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, getNamespace, loadFromXml, loadFromXml, readAttributesFromXml, readTextValueFromXml, removeChangeEvent, setNamespace, 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 Exception
Tries to read element from XML.

Overrides:
tryReadElementFromXml in class ComplexProperty
Parameters:
reader - The reader
Returns:
True if element was read.
Throws:
Exception - the exception

writeElementsToXml

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

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

internalValidate

protected void internalValidate()
                         throws Exception
Validates this instance.

Overrides:
internalValidate in class ComplexProperty
Throws:
Exception
ServiceValidationException - the service validation exception

getXmlElementName

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

Overrides:
getXmlElementName in class RuleOperation


Copyright © 2012. All Rights Reserved.