public static final class SearchFilter.ContainsSubstring extends SearchFilter.PropertyBasedFilter
SearchFilter.ContainsSubstring, SearchFilter.ExcludesBitmask, SearchFilter.Exists, SearchFilter.IsEqualTo, SearchFilter.IsGreaterThan, SearchFilter.IsGreaterThanOrEqualTo, SearchFilter.IsLessThan, SearchFilter.IsLessThanOrEqualTo, SearchFilter.IsNotEqualTo, SearchFilter.Not, SearchFilter.PropertyBasedFilter, SearchFilter.RelationalFilter, SearchFilter.SearchFilterCollection
Constructor and Description |
---|
ContainsSubstring()
Initializes a new instance of the class.
|
ContainsSubstring(PropertyDefinitionBase propertyDefinition,
String value)
Initializes a new instance of the class.
|
ContainsSubstring(PropertyDefinitionBase propertyDefinition,
String value,
ContainmentMode containmentMode,
ComparisonMode comparisonMode)
Initializes a new instance of the class.
|
Modifier and Type | Method and Description |
---|---|
ComparisonMode |
getComparisonMode()
Gets the comparison mode.
|
ContainmentMode |
getContainmentMode()
Gets the containment mode.
|
String |
getValue()
gets the value to compare the specified property with.
|
protected String |
getXmlElementName()
Gets the name of the XML element.
|
protected void |
internalValidate()
validates instance.
|
void |
readAttributesFromXml(EwsServiceXmlReader reader)
Reads the attribute of Xml.
|
void |
setComparisonMode(ComparisonMode comparisonMode)
sets the comparison mode.
|
void |
setContainmentMode(ContainmentMode containmentMode)
sets the ContainmentMode.
|
void |
setValue(String value)
sets the value to compare the specified property with.
|
boolean |
tryReadElementFromXml(EwsServiceXmlReader reader)
Tries to read element from XML.
|
void |
writeAttributesToXml(EwsServiceXmlWriter writer)
Writes the attribute to XML.
|
void |
writeElementsToXml(EwsServiceXmlWriter writer)
Writes the elements to Xml.
|
getPropertyDefinition, setPropertyDefinition
loadFromXml, writeToXml
addOnChangeEvent, canSetFieldValue, changed, clearChangeEvents, clearChangeLog, func, getNamespace, loadFromXml, loadFromXml, readTextValueFromXml, removeChangeEvent, setNamespace, tryReadElementFromXmlToPatch, updateFromXml, updateFromXml, validate, writeToXml, writeToXml
public ContainsSubstring()
public ContainsSubstring(PropertyDefinitionBase propertyDefinition, String value)
propertyDefinition
- The definition of the property that is being compared.value
- The value to compare with.public ContainsSubstring(PropertyDefinitionBase propertyDefinition, String value, ContainmentMode containmentMode, ComparisonMode comparisonMode)
propertyDefinition
- The definition of the property that is being compared.value
- The value to compare with.containmentMode
- The containment mode.comparisonMode
- The comparison mode.protected void internalValidate() throws ServiceValidationException
internalValidate
in class SearchFilter.PropertyBasedFilter
ServiceValidationException
- the service validation exceptionprotected String getXmlElementName()
getXmlElementName
in class SearchFilter
public boolean tryReadElementFromXml(EwsServiceXmlReader reader) throws Exception
tryReadElementFromXml
in class SearchFilter.PropertyBasedFilter
reader
- the readerException
- the exceptionpublic void readAttributesFromXml(EwsServiceXmlReader reader) throws Exception
readAttributesFromXml
in class ComplexProperty
reader
- the readerException
- the exceptionpublic void writeAttributesToXml(EwsServiceXmlWriter writer) throws ServiceXmlSerializationException
writeAttributesToXml
in class ComplexProperty
writer
- the writerServiceXmlSerializationException
- the service xml serialization exceptionpublic void writeElementsToXml(EwsServiceXmlWriter writer) throws XMLStreamException, ServiceXmlSerializationException
writeElementsToXml
in class SearchFilter.PropertyBasedFilter
writer
- the writerXMLStreamException
- the XML stream exceptionServiceXmlSerializationException
- the service xml serialization exceptionpublic ContainmentMode getContainmentMode()
public void setContainmentMode(ContainmentMode containmentMode)
containmentMode
- the new containment modepublic ComparisonMode getComparisonMode()
public void setComparisonMode(ComparisonMode comparisonMode)
comparisonMode
- the new comparison modepublic String getValue()
Copyright © 2012–2015 Microsoft. All rights reserved.