Class SearchFilter
- java.lang.Object
-
- microsoft.exchange.webservices.data.property.complex.ComplexProperty
-
- microsoft.exchange.webservices.data.search.filter.SearchFilter
-
- All Implemented Interfaces:
ISelfValidate,ComplexFunctionDelegate<EwsServiceXmlReader>
- Direct Known Subclasses:
SearchFilter.Not,SearchFilter.PropertyBasedFilter,SearchFilter.SearchFilterCollection
public abstract class SearchFilter extends ComplexProperty
Represents the base search filter class. Use descendant search filter classes such as SearchFilter.IsEqualTo, SearchFilter.ContainsSubstring and SearchFilter.SearchFilterCollection to define search filter.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSearchFilter.ContainsSubstringRepresents a search filter that checks for the presence of a substring inside a text property.static classSearchFilter.ExcludesBitmaskRepresents a bitmask exclusion search filter.static classSearchFilter.ExistsRepresents a search filter checking if a field is set.static classSearchFilter.IsEqualToRepresents a search filter that checks if a property is equal to a given value or other property.static classSearchFilter.IsGreaterThanRepresents a search filter that checks if a property is greater than a given value or other property.static classSearchFilter.IsGreaterThanOrEqualToRepresents a search filter that checks if a property is greater than or equal to a given value or other property.static classSearchFilter.IsLessThanRepresents a search filter that checks if a property is less than a given value or other property.static classSearchFilter.IsLessThanOrEqualToRepresents a search filter that checks if a property is less than or equal to a given value or other property.static classSearchFilter.IsNotEqualToRepresents a search filter that checks if a property is not equal to a given value or other property.static classSearchFilter.NotRepresents a search filter that negates another.static classSearchFilter.PropertyBasedFilterRepresents a search filter where an item or folder property is involved.static classSearchFilter.RelationalFilterRepresents the base class for relational filter (for example, IsEqualTo, IsGreaterThan or IsLessThanOrEqualTo).static classSearchFilter.SearchFilterCollectionRepresents a collection of search filter linked by a logical operator.
-
Constructor Summary
Constructors Modifier Constructor Description protectedSearchFilter()Initializes a new instance of the SearchFilter class.
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract StringgetXmlElementName()Gets the name of the XML element.static SearchFilterloadFromXml(EwsServiceXmlReader reader)Loads from XML.voidwriteToXml(EwsServiceXmlWriter writer)Writes to XML.-
Methods inherited from class microsoft.exchange.webservices.data.property.complex.ComplexProperty
addOnChangeEvent, canSetFieldValue, changed, clearChangeEvents, clearChangeLog, func, getNamespace, internalValidate, loadFromXml, loadFromXml, readAttributesFromXml, readTextValueFromXml, removeChangeEvent, setNamespace, tryReadElementFromXml, tryReadElementFromXmlToPatch, updateFromXml, updateFromXml, validate, writeAttributesToXml, writeElementsToXml, writeToXml, writeToXml
-
-
-
-
Constructor Detail
-
SearchFilter
protected SearchFilter()
Initializes a new instance of the SearchFilter class.
-
-
Method Detail
-
loadFromXml
public static SearchFilter loadFromXml(EwsServiceXmlReader reader) throws Exception
Loads from XML.- Parameters:
reader- the reader- Returns:
- SearchFilter
- Throws:
Exception- the exception
-
getXmlElementName
protected abstract String getXmlElementName()
Gets the name of the XML element.- Returns:
- the xml element name
-
writeToXml
public void writeToXml(EwsServiceXmlWriter writer) throws Exception
Writes to XML.- Parameters:
writer- the writer- Throws:
Exception- the exception
-
-