Class SetRuleOperation
- java.lang.Object
-
- microsoft.exchange.webservices.data.property.complex.ComplexProperty
-
- microsoft.exchange.webservices.data.property.complex.RuleOperation
-
- microsoft.exchange.webservices.data.property.complex.SetRuleOperation
-
- All Implemented Interfaces:
ISelfValidate,ComplexFunctionDelegate<EwsServiceXmlReader>
public class SetRuleOperation extends RuleOperation
Represents an operation to update an existing rule.
-
-
Field Summary
-
Fields inherited from class microsoft.exchange.webservices.data.property.complex.RuleOperation
xmlElementName
-
-
Constructor Summary
Constructors Constructor Description SetRuleOperation()Initializes a new instance of the SetRuleOperation class.SetRuleOperation(Rule rule)Initializes a new instance of the SetRuleOperation class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RulegetRule()Gets the rule to be updated.StringgetXmlElementName()Gets the Xml element name of the SetRuleOperation object.protected voidinternalValidate()Validates this instance.voidsetRule(Rule value)Sets the rule to be updated.booleantryReadElementFromXml(EwsServiceXmlReader reader)Tries to read element from XML.voidwriteElementsToXml(EwsServiceXmlWriter writer)Writes elements to XML.-
Methods inherited from class microsoft.exchange.webservices.data.property.complex.ComplexProperty
addOnChangeEvent, canSetFieldValue, changed, clearChangeEvents, clearChangeLog, func, getNamespace, loadFromXml, loadFromXml, readAttributesFromXml, readTextValueFromXml, removeChangeEvent, setNamespace, tryReadElementFromXmlToPatch, updateFromXml, updateFromXml, validate, writeAttributesToXml, writeToXml, writeToXml
-
-
-
-
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
-
tryReadElementFromXml
public boolean tryReadElementFromXml(EwsServiceXmlReader reader) throws Exception
Tries to read element from XML.- Overrides:
tryReadElementFromXmlin classComplexProperty- Parameters:
reader- The reader- Returns:
- True if element was read.
- Throws:
Exception- the exception
-
writeElementsToXml
public void writeElementsToXml(EwsServiceXmlWriter writer) throws Exception
Writes elements to XML.- Overrides:
writeElementsToXmlin classComplexProperty- Parameters:
writer- The writer.- Throws:
Exception- the exception
-
internalValidate
protected void internalValidate() throws Exception
Validates this instance.- Overrides:
internalValidatein classComplexProperty- Throws:
Exception
-
getXmlElementName
public String getXmlElementName()
Gets the Xml element name of the SetRuleOperation object.- Overrides:
getXmlElementNamein classRuleOperation
-
-