microsoft.exchange.webservices.data
Class CreateRuleOperation

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

public final class CreateRuleOperation
extends RuleOperation

Represents an operation to create a new rule.


Field Summary
 
Fields inherited from class microsoft.exchange.webservices.data.RuleOperation
xmlElementName
 
Constructor Summary
CreateRuleOperation()
          Initializes a new instance of the class.
CreateRuleOperation(Rule rule)
          Initializes a new instance of the class.
 
Method Summary
 Rule getRule()
          Gets or sets the rule to be created.
protected  java.lang.String getXmlElementName()
          Gets the Xml element name of the CreateRuleOperation object.
protected  void internalValidate()
          Validates this instance.
 void setRule(Rule value)
           
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, tryReadElementFromXml, 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

CreateRuleOperation

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


CreateRuleOperation

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

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

getRule

public Rule getRule()
Gets or sets the rule to be created.


setRule

public void setRule(Rule value)

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

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 CreateRuleOperation object.

Overrides:
getXmlElementName in class RuleOperation