microsoft.exchange.webservices.data
Class DeleteRuleOperation

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

public final class DeleteRuleOperation
extends RuleOperation

Represents an operation to delete an existing rule.


Field Summary
 
Fields inherited from class microsoft.exchange.webservices.data.RuleOperation
xmlElementName
 
Constructor Summary
DeleteRuleOperation()
          Initializes a new instance of the class.
DeleteRuleOperation(java.lang.String ruleId)
          Initializes a new instance of the class.
 
Method Summary
 java.lang.String getRuleId()
          Gets or sets the Id of the rule to delete.
protected  java.lang.String getXmlElementName()
          Gets the Xml element name of the DeleteRuleOperation object.
protected  void internalValidate()
          Validates this instance.
 void setRuleId(java.lang.String 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

DeleteRuleOperation

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


DeleteRuleOperation

public DeleteRuleOperation(java.lang.String ruleId)
Initializes a new instance of the class.

Parameters:
ruleId - The Id of the inbox rule to delete.
Method Detail

getRuleId

public java.lang.String getRuleId()
Gets or sets the Id of the rule to delete.


setRuleId

public void setRuleId(java.lang.String value)

writeElementsToXml

protected void writeElementsToXml(microsoft.exchange.webservices.data.EwsServiceXmlWriter writer)
                           throws ServiceXmlSerializationException,
                                  javax.xml.stream.XMLStreamException
Writes elements to XML.

Overrides:
writeElementsToXml in class ComplexProperty
Parameters:
writer - The writer.
Throws:
ServiceXmlSerializationException
javax.xml.stream.XMLStreamException

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

Overrides:
getXmlElementName in class RuleOperation