Class SearchFilter.Not
- java.lang.Object
-
- microsoft.exchange.webservices.data.property.complex.ComplexProperty
-
- microsoft.exchange.webservices.data.search.filter.SearchFilter
-
- microsoft.exchange.webservices.data.search.filter.SearchFilter.Not
-
- All Implemented Interfaces:
ISelfValidate,ComplexFunctionDelegate<EwsServiceXmlReader>,IComplexPropertyChangedDelegate
- Enclosing class:
- SearchFilter
public static class SearchFilter.Not extends SearchFilter implements IComplexPropertyChangedDelegate
Represents a search filter that negates another. Applications can use NotFilter to define conditions such as "NOT(other filter)".
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class microsoft.exchange.webservices.data.search.filter.SearchFilter
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 Summary
Constructors Constructor Description Not()Initializes a new instance of the class.Not(SearchFilter searchFilter)Initializes a new instance of the class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcomplexPropertyChanged(ComplexProperty complexProperty)Complex property changed.SearchFiltergetSearchFilter()Gets the search filter to negate.protected StringgetXmlElementName()Gets the name of the XML element.protected voidinternalValidate()validates the instance.voidsetSearchFilter(SearchFilter searchFilter)Sets the search filter to negate.booleantryReadElementFromXml(EwsServiceXmlReader reader)Tries to read element from XML.voidwriteElementsToXml(EwsServiceXmlWriter writer)Writes the elements to XML.-
Methods inherited from class microsoft.exchange.webservices.data.search.filter.SearchFilter
loadFromXml, writeToXml
-
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
-
Not
public Not()
Initializes a new instance of the class.
-
Not
public Not(SearchFilter searchFilter)
Initializes a new instance of the class.- Parameters:
searchFilter- the search filter
-
-
Method Detail
-
internalValidate
protected void internalValidate() throws ServiceValidationException
validates the instance.- Overrides:
internalValidatein classComplexProperty- Throws:
ServiceValidationException- the service validation exception
-
getXmlElementName
protected String getXmlElementName()
Gets the name of the XML element.- Specified by:
getXmlElementNamein classSearchFilter- Returns:
- the xml element name
-
tryReadElementFromXml
public boolean tryReadElementFromXml(EwsServiceXmlReader reader) throws Exception
Tries to read element from XML.- Overrides:
tryReadElementFromXmlin classComplexProperty- Parameters:
reader- the reader- Returns:
- true if the element was read
- Throws:
Exception- the exception
-
writeElementsToXml
public void writeElementsToXml(EwsServiceXmlWriter writer) throws Exception
Writes the elements to XML.- Overrides:
writeElementsToXmlin classComplexProperty- Parameters:
writer- the writer- Throws:
Exception- the exception
-
getSearchFilter
public SearchFilter getSearchFilter()
Gets the search filter to negate. Available search filter classes include SearchFilter.IsEqualTo, SearchFilter.ContainsSubstring and SearchFilter.SearchFilterCollection.- Returns:
- SearchFilter
-
setSearchFilter
public void setSearchFilter(SearchFilter searchFilter)
Sets the search filter to negate. Available search filter classes include SearchFilter.IsEqualTo, SearchFilter.ContainsSubstring and SearchFilter.SearchFilterCollection.- Parameters:
searchFilter- the new search filter
-
complexPropertyChanged
public void complexPropertyChanged(ComplexProperty complexProperty)
Description copied from interface:IComplexPropertyChangedDelegateComplex property changed.- Specified by:
complexPropertyChangedin interfaceIComplexPropertyChangedDelegate- Parameters:
complexProperty- the complex property
-
-