Class CreateRuleOperation
- java.lang.Object
-
- microsoft.exchange.webservices.data.property.complex.ComplexProperty
-
- microsoft.exchange.webservices.data.property.complex.RuleOperation
-
- microsoft.exchange.webservices.data.property.complex.CreateRuleOperation
-
- All Implemented Interfaces:
ISelfValidate,ComplexFunctionDelegate<EwsServiceXmlReader>
public final class CreateRuleOperation extends RuleOperation
Represents an operation to create a new rule.
-
-
Field Summary
-
Fields inherited from class microsoft.exchange.webservices.data.property.complex.RuleOperation
xmlElementName
-
-
Constructor Summary
Constructors Constructor Description CreateRuleOperation()Initializes a new instance of theCreateRuleOperationclass.CreateRuleOperation(Rule rule)Initializes a new instance of theCreateRuleOperationclass.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RulegetRule()Gets or sets the rule to be created.StringgetXmlElementName()Gets the Xml element name of the CreateRuleOperation object.protected voidinternalValidate()Validates this instance.voidsetRule(Rule value)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, tryReadElementFromXml, tryReadElementFromXmlToPatch, updateFromXml, updateFromXml, validate, writeAttributesToXml, writeToXml, writeToXml
-
-
-
-
Constructor Detail
-
CreateRuleOperation
public CreateRuleOperation()
Initializes a new instance of theCreateRuleOperationclass.
-
CreateRuleOperation
public CreateRuleOperation(Rule rule)
Initializes a new instance of theCreateRuleOperationclass.- Parameters:
rule- The inbox rule to create.
-
-
Method Detail
-
writeElementsToXml
public void writeElementsToXml(EwsServiceXmlWriter writer) throws Exception
Writes elements to XML.- Overrides:
writeElementsToXmlin classComplexProperty- Parameters:
writer- The writer.- Throws:
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 CreateRuleOperation object.- Overrides:
getXmlElementNamein classRuleOperation
-
-