public final class Rule extends ComplexProperty
Constructor and Description |
---|
Rule()
Initializes a new instance of the Rule class.
|
Modifier and Type | Method and Description |
---|---|
RuleActions |
getActions()
Gets the actions that should be executed against incoming messages if the
conditions evaluate as true.
|
RulePredicates |
getConditions()
Gets the conditions that determine whether or not this rule should be
executed against incoming messages.
|
String |
getDisplayName()
Gets or sets the name of this rule as it should be displayed to the user.
|
RulePredicates |
getExceptions()
Gets the exception that determine
if this rule should be skipped even if
its conditions evaluate to true.
|
String |
getId()
Gets or sets the Id of this rule.
|
boolean |
getIsEnabled()
Gets or sets a value indicating whether this rule is enabled.
|
boolean |
getIsInError()
Gets or sets a value indicating whether
this rule has errors.
|
boolean |
getIsNotSupported()
Gets a value indicating whether this rule can be modified via EWS.
|
int |
getPriority()
Gets or sets the priority of this rule,
which determines its execution order.
|
protected void |
internalValidate()
Validates this instance.
|
void |
setDisplayName(String value) |
void |
setId(String value) |
void |
setIsEnabled(boolean value) |
void |
setIsInError(boolean value) |
void |
setPriority(int value) |
boolean |
tryReadElementFromXml(EwsServiceXmlReader reader)
Tries to read element from XML.
|
void |
writeElementsToXml(EwsServiceXmlWriter writer)
Writes elements to XML.
|
addOnChangeEvent, canSetFieldValue, changed, clearChangeEvents, clearChangeLog, func, getNamespace, loadFromXml, loadFromXml, readAttributesFromXml, readTextValueFromXml, removeChangeEvent, setNamespace, tryReadElementFromXmlToPatch, updateFromXml, updateFromXml, validate, writeAttributesToXml, writeToXml, writeToXml
public Rule()
public String getDisplayName()
public void setDisplayName(String value)
public int getPriority()
public void setPriority(int value)
public boolean getIsEnabled()
public void setIsEnabled(boolean value)
public boolean getIsNotSupported()
public boolean getIsInError()
public void setIsInError(boolean value)
public RulePredicates getConditions()
public RuleActions getActions()
public RulePredicates getExceptions()
public boolean tryReadElementFromXml(EwsServiceXmlReader reader) throws Exception
tryReadElementFromXml
in class ComplexProperty
reader
- The reader.Exception
public void writeElementsToXml(EwsServiceXmlWriter writer) throws Exception
writeElementsToXml
in class ComplexProperty
writer
- The writer.Exception
protected void internalValidate() throws Exception
internalValidate
in class ComplexProperty
Exception
- the exceptionCopyright © 2012–2015 Microsoft. All rights reserved.